Title: [212299] trunk/LayoutTests
- Revision
- 212299
- Author
- [email protected]
- Date
- 2017-02-14 08:48:45 -0800 (Tue, 14 Feb 2017)
Log Message
LayoutTest media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=167589
Unreviewed test gardening.
Patch by Antoine Quint <[email protected]> on 2017-02-14
* media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles-expected.txt:
* media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (212298 => 212299)
--- trunk/LayoutTests/ChangeLog 2017-02-14 16:46:49 UTC (rev 212298)
+++ trunk/LayoutTests/ChangeLog 2017-02-14 16:48:45 UTC (rev 212299)
@@ -1,5 +1,15 @@
2017-02-14 Antoine Quint <[email protected]>
+ LayoutTest media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html is a flaky timeout
+ https://bugs.webkit.org/show_bug.cgi?id=167589
+
+ Unreviewed test gardening.
+
+ * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles-expected.txt:
+ * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html:
+
+2017-02-14 Antoine Quint <[email protected]>
+
LayoutTest media/modern-media-controls/ios-inline-media-controls/ios-inline-media-controls-buttons-styles.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=168125
Modified: trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles-expected.txt (212298 => 212299)
--- trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles-expected.txt 2017-02-14 16:46:49 UTC (rev 212298)
+++ trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles-expected.txt 2017-02-14 16:48:45 UTC (rev 212299)
@@ -2,6 +2,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+PASS buttons.some(button => button.element.style.width == '') became false
PASS centerContainerBounds.left is 311
PASS centerContainerBounds.top is 500
Modified: trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html (212298 => 212299)
--- trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html 2017-02-14 16:46:49 UTC (rev 212298)
+++ trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html 2017-02-14 16:48:45 UTC (rev 212299)
@@ -4,8 +4,16 @@
<div id="container"></div>
<style type="text/css" media="screen">
+body {
+ margin: 0;
+}
+
+body > * {
+ position: absolute;
+}
+
#container {
- position: absolute;
+ position: relative;
top: 0;
left: 0;
width: 800px;
@@ -24,19 +32,16 @@
const rightContainer = mediaControls.controlsBar.children[3];
const buttons = centerContainer.buttons.concat(rightContainer.buttons);
+document.getElementById("container").appendChild(mediaControls.element);
+
let centerContainerBounds, rightContainerBounds;
-scheduler.frameDidFire = function()
-{
- if (buttons.some(button => button.width == 0))
- return;
-
+shouldBecomeEqual("buttons.some(button => button.element.style.width == '')", "false", () => {
// All buttons have been loaded, we wait for the next tick to ensure
// that their CSS properties have also been committed.
window.requestAnimationFrame(() => {
- document.getElementById("container").appendChild(mediaControls.element);
-
centerContainerBounds = centerContainer.element.getBoundingClientRect();
+ debug("");
shouldBe("centerContainerBounds.left", "311");
shouldBe("centerContainerBounds.top", "500");
shouldBe("centerContainerBounds.width", "178");
@@ -53,10 +58,8 @@
mediaControls.element.remove();
finishJSTest();
});
+});
- scheduler.frameDidFire = null;
-};
-
</script>
<script src=""
</body>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes