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

Unified Diff: LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml

Issue 54473004: Make js-test-post a noop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add mac NeedsRebaselines Created 7 years, 2 months 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/svg/custom/use-instanceRoot-as-event-target.xhtml
diff --git a/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml b/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml
index 315cf0e72f3e730686e7d482ece239b3ae08543a..c05a68c7a3db91091235cf91ad12f5e032a527eb 100644
--- a/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml
+++ b/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml
@@ -16,6 +16,7 @@
<script>
// Setting up the testcase
+window.jsTestIsAsync = true;
if (window.testRunner)
testRunner.waitUntilDone();
@@ -211,7 +212,7 @@ function eventTestThree()
function eventTestFour()
{
debug("");
- debug("Test #4: Verify that a click event got dispatched to the original tree as defined in the markup, when sent to the 'rectElement'");
+ debug("Test #4: Verify that a click event got dispatched to the original tree as defined in the markup, when sent to the 'rectElement'");
debug("");
verifyClickEventOnReferenced();
@@ -222,7 +223,7 @@ function eventTestFour()
function eventTestFive()
{
debug("");
- debug("Test #5: Verify that a click event got dispatched to the instance tree when sent to the 'useElement.instanceRoot' with an event listener attached to 'rectElement'");
+ debug("Test #5: Verify that a click event got dispatched to the instance tree when sent to the 'useElement.instanceRoot' with an event listener attached to 'rectElement'");
debug("");
verifyClickEvent();
@@ -282,17 +283,7 @@ function eventTestEight()
// Indicate finish
rectElement.setAttribute("fill", "green");
- // Load test finishing script
- var script = document.createElement('script');
- script.onload = completeTest;
- script.src = "../../fast/js/resources/js-test-post.js";
- document.body.appendChild(script);
-}
-
-function completeTest()
-{
- if (window.testRunner)
- testRunner.notifyDone();
+ finishJSTest();
}
</script>

Powered by Google App Engine
This is Rietveld 408576698