Title: [251294] trunk/LayoutTests
- Revision
- 251294
- Author
- [email protected]
- Date
- 2019-10-18 12:44:22 -0700 (Fri, 18 Oct 2019)
Log Message
Flaky Test: fast/events/resize-subframe-in-rendering-update.html
https://bugs.webkit.org/show_bug.cgi?id=203140
Reviewed by Simon Fraser.
The flakiness was caused by the race condition between rAF and setTimeout. In many cases,
setTimeout was getting scheduled after the next rAF and prevented some assertions to run in time.
Fixed the flakiness by moving setTimeout to outside the setTimeout in which tests run so that
those assertions would always run.
Rebaselined the test since these assertions in setTimeout are now always included in the results.
* fast/events/resize-subframe-in-rendering-update-expected.txt:
* fast/events/resize-subframe-in-rendering-update.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (251293 => 251294)
--- trunk/LayoutTests/ChangeLog 2019-10-18 19:18:34 UTC (rev 251293)
+++ trunk/LayoutTests/ChangeLog 2019-10-18 19:44:22 UTC (rev 251294)
@@ -1,3 +1,21 @@
+2019-10-18 Ryosuke Niwa <[email protected]>
+
+ Flaky Test: fast/events/resize-subframe-in-rendering-update.html
+ https://bugs.webkit.org/show_bug.cgi?id=203140
+
+ Reviewed by Simon Fraser.
+
+ The flakiness was caused by the race condition between rAF and setTimeout. In many cases,
+ setTimeout was getting scheduled after the next rAF and prevented some assertions to run in time.
+
+ Fixed the flakiness by moving setTimeout to outside the setTimeout in which tests run so that
+ those assertions would always run.
+
+ Rebaselined the test since these assertions in setTimeout are now always included in the results.
+
+ * fast/events/resize-subframe-in-rendering-update-expected.txt:
+ * fast/events/resize-subframe-in-rendering-update.html:
+
2019-10-18 Said Abou-Hallawa <[email protected]>
Load event must be fired only for the SVG structurally external elements and the outermost SVG element
Modified: trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update-expected.txt (251293 => 251294)
--- trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update-expected.txt 2019-10-18 19:18:34 UTC (rev 251293)
+++ trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update-expected.txt 2019-10-18 19:44:22 UTC (rev 251294)
@@ -7,6 +7,8 @@
iframeA.style.width = "200px"; updateLayout(iframeA)
iframeAA.style.width = "200px"; updateLayout(iframeAA)
PASS logs.length is 0
+After 0s setTimeout
+PASS logs.length is 0
After requestAnimationFrame
PASS logs.length is 3
PASS logs.join(", ") is "A, AA, B"
Modified: trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update.html (251293 => 251294)
--- trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update.html 2019-10-18 19:18:34 UTC (rev 251293)
+++ trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update.html 2019-10-18 19:44:22 UTC (rev 251294)
@@ -37,10 +37,6 @@
evalAndLog('iframeA.style.width = "200px"; updateLayout(iframeA)');
evalAndLog('iframeAA.style.width = "200px"; updateLayout(iframeAA)');
shouldBe('logs.length', '0');
- setTimeout(() => {
- debug('After 0s setTimeout');
- shouldBe('logs.length', '0');
- }, 0);
requestAnimationFrame(() => {
debug('After requestAnimationFrame');
shouldBe('logs.length', '3');
@@ -50,6 +46,10 @@
finishJSTest();
});
}, 0);
+ setTimeout(() => {
+ debug('After 0s setTimeout');
+ shouldBe('logs.length', '0');
+ }, 0);
});
</script>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes