Title: [253679] trunk/LayoutTests
- Revision
- 253679
- Author
- [email protected]
- Date
- 2019-12-18 06:57:32 -0800 (Wed, 18 Dec 2019)
Log Message
REGRESSION: animations/leak-document-with-css-animation.html is very flaky
https://bugs.webkit.org/show_bug.cgi?id=205299
While this test has proven to be solid running in isolation, it appears that the difference of live documents
before and after the iframe has been destroyed may be more than one. In fact, in reported failures, there always
seems to be 2 live documents fewer after than before, instead of the expected single document.
Since internals.numberOfLiveDocuments() returns the number of live documents throughout the life of the
Web process, we now force garbage collection every time we query internals.numberOfLiveDocuments(). This
should ensure that documents pending destruction due to garbage collection to be destroyed before we take
a snapshort of the number of live documents.
Patch by Antoine Quint <[email protected]> on 2019-12-18
Reviewed by Antti Koivisto.
* TestExpectations:
* animations/leak-document-with-css-animation.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (253678 => 253679)
--- trunk/LayoutTests/ChangeLog 2019-12-18 12:48:43 UTC (rev 253678)
+++ trunk/LayoutTests/ChangeLog 2019-12-18 14:57:32 UTC (rev 253679)
@@ -1,5 +1,24 @@
2019-12-18 Antoine Quint <[email protected]>
+ REGRESSION: animations/leak-document-with-css-animation.html is very flaky
+ https://bugs.webkit.org/show_bug.cgi?id=205299
+
+ While this test has proven to be solid running in isolation, it appears that the difference of live documents
+ before and after the iframe has been destroyed may be more than one. In fact, in reported failures, there always
+ seems to be 2 live documents fewer after than before, instead of the expected single document.
+
+ Since internals.numberOfLiveDocuments() returns the number of live documents throughout the life of the
+ Web process, we now force garbage collection every time we query internals.numberOfLiveDocuments(). This
+ should ensure that documents pending destruction due to garbage collection to be destroyed before we take
+ a snapshort of the number of live documents.
+
+ Reviewed by Antti Koivisto.
+
+ * TestExpectations:
+ * animations/leak-document-with-css-animation.html:
+
+2019-12-18 Antoine Quint <[email protected]>
+
[macOS/iOS Debug] Layout Test webanimations/animation-opacity-animation-crash.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=181612
Modified: trunk/LayoutTests/TestExpectations (253678 => 253679)
--- trunk/LayoutTests/TestExpectations 2019-12-18 12:48:43 UTC (rev 253678)
+++ trunk/LayoutTests/TestExpectations 2019-12-18 14:57:32 UTC (rev 253679)
@@ -3814,5 +3814,3 @@
webgl/1.0.3/conformance/textures/copy-tex-image-2d-formats.html [ Skip ]
webgl/1.0.3/conformance/canvas/rapid-resizing.html [ Skip ]
webgl/1.0.3/conformance/extensions/webgl-draw-buffers.html [ Skip ]
-
-webkit.org/b/205299 animations/leak-document-with-css-animation.html [ Pass Failure ]
Modified: trunk/LayoutTests/animations/leak-document-with-css-animation.html (253678 => 253679)
--- trunk/LayoutTests/animations/leak-document-with-css-animation.html 2019-12-18 12:48:43 UTC (rev 253678)
+++ trunk/LayoutTests/animations/leak-document-with-css-animation.html 2019-12-18 14:57:32 UTC (rev 253679)
@@ -22,18 +22,21 @@
if (frame.src ="" 'about:blank')
return true;
- numberOfLiveDocumentsAfterIframeLoaded = internals.numberOfLiveDocuments();
- debug("The iframe has finished loading.");
+ gc();
+ setTimeout(function () {
+ numberOfLiveDocumentsAfterIframeLoaded = internals.numberOfLiveDocuments();
+ debug("The iframe has finished loading.");
- frame.remove();
- frame = null;
+ frame.remove();
+ frame = null;
- gc();
- setTimeout(function () {
- debug("The iframe has been destroyed.");
- shouldBe("internals.numberOfLiveDocuments()", "numberOfLiveDocumentsAfterIframeLoaded - 1");
- debug("");
- finishJSTest();
+ gc();
+ setTimeout(function () {
+ debug("The iframe has been destroyed.");
+ shouldBe("internals.numberOfLiveDocuments()", "numberOfLiveDocumentsAfterIframeLoaded - 1");
+ debug("");
+ finishJSTest();
+ });
});
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes