Title: [212293] trunk/LayoutTests
- Revision
- 212293
- Author
- [email protected]
- Date
- 2017-02-14 08:23:19 -0800 (Tue, 14 Feb 2017)
Log Message
LayoutTest media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=167372
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-styles-expected.txt:
* media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (212292 => 212293)
--- trunk/LayoutTests/ChangeLog 2017-02-14 15:45:38 UTC (rev 212292)
+++ trunk/LayoutTests/ChangeLog 2017-02-14 16:23:19 UTC (rev 212293)
@@ -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-styles.html is a flaky failure
+ https://bugs.webkit.org/show_bug.cgi?id=167372
+
+ Unreviewed test gardening.
+
+ * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles-expected.txt:
+ * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles.html:
+
+2017-02-14 Antoine Quint <[email protected]>
+
[mac-wk1] LayoutTest media/modern-media-controls/layout-node/addChild.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=168074
Modified: trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles-expected.txt (212292 => 212293)
--- trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles-expected.txt 2017-02-14 15:45:38 UTC (rev 212292)
+++ trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles-expected.txt 2017-02-14 16:23:19 UTC (rev 212293)
@@ -3,6 +3,8 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+PASS buttonPositions.some(buttonPosition => buttonPosition[0].element.style.width == '') became false
+
RewindButton
PASS style.left is "27px"
PASS style.webkitMaskPositionY is "17px"
Modified: trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles.html (212292 => 212293)
--- trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles.html 2017-02-14 15:45:38 UTC (rev 212292)
+++ trunk/LayoutTests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-styles.html 2017-02-14 16:23:19 UTC (rev 212293)
@@ -9,6 +9,7 @@
window.jsTestIsAsync = true;
const mediaControls = new MacOSFullscreenMediaControls;
+document.body.appendChild(mediaControls.element);
const buttonPositions = [
[mediaControls.rewindButton, 27, 17],
@@ -21,26 +22,23 @@
];
let style;
-scheduler.frameDidFire = function()
-{
- document.body.appendChild(mediaControls.element);
+shouldBecomeEqual("buttonPositions.some(buttonPosition => buttonPosition[0].element.style.width == '')", "false", () => {
+ requestAnimationFrame(() => {
+ for (let [button, x, y, width] of buttonPositions) {
+ debug("");
+ style = window.getComputedStyle(button.element);
+ debug(button.constructor.name);
+ shouldBeEqualToString("style.left", `${x}px`);
+ shouldBeEqualToString("style.webkitMaskPositionY", `${y}px`);
+ shouldBeEqualToString("style.height", "44px");
+ }
- if (buttonPositions.some(buttonPosition => buttonPosition[0].width == 0))
- return;
-
- for (let [button, x, y, width] of buttonPositions) {
- style = window.getComputedStyle(button.element);
- debug(button.constructor.name);
- shouldBeEqualToString("style.left", `${x}px`);
- shouldBeEqualToString("style.webkitMaskPositionY", `${y}px`);
- shouldBeEqualToString("style.height", "44px");
debug("");
- }
+ mediaControls.element.remove();
+ finishMediaControlsTest();
+ });
+});
- mediaControls.element.remove();
- finishMediaControlsTest();
-};
-
</script>
<script src=""
</body>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes