Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: LayoutTests/http/tests/misc/svg-image-load-outlives-gc-without-crashing.html

Issue 66113002: Partial revert of r161493. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge to ToT Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/misc/svg-image-load-outlives-gc-without-crashing.html
diff --git a/LayoutTests/http/tests/misc/svg-image-load-outlives-gc-without-crashing.html b/LayoutTests/http/tests/misc/svg-image-load-outlives-gc-without-crashing.html
index 66caa6e9017c72913f0609814372ada657d9faad..f5dc60220c0dfe77f2f6fc5bd978b2448fce27c9 100644
--- a/LayoutTests/http/tests/misc/svg-image-load-outlives-gc-without-crashing.html
+++ b/LayoutTests/http/tests/misc/svg-image-load-outlives-gc-without-crashing.html
@@ -2,14 +2,16 @@
<script>
if (window.testRunner) {
- window.jsTestIsAsync = true;
+ testRunner.waitUntilDone();
testRunner.dumpAsText();
}
function loaded() {
// If the garbage collection causes the image load to stop and therefore causes the load event to fire on the main frame, we failed.
alert("FAIL: The load event fired");
- finishJSTest();
+
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
@@ -26,7 +28,8 @@ This has an svg element that contains an svg image element. That svg element is
function finished() {
window.stop()
- finishJSTest();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function forceGC() {

Powered by Google App Engine
This is Rietveld 408576698