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

Unified Diff: LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.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/dom/SVGPathSegList-xml-dom-synchronization.xhtml
diff --git a/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml b/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml
index 74e7d2776241e77f169ca49d5891f6e71e5b2a21..f00a7df5b2743d57474fdc3985c64a6c39af5096 100644
--- a/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml
+++ b/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml
@@ -4,19 +4,8 @@
<script src="../../fast/js/resources/js-test-pre.js"></script>
<script src="../../fast/repaint/resources/repaint.js"></script>
<script type="text/javascript">
- function completeTest() {
- var script = document.createElement("script");
-
- script.onload = function() {
- if (window.testRunner)
- testRunner.notifyDone();
- };
-
- script.src = "../../fast/js/resources/js-test-post.js";
- document.body.appendChild(script);
- }
-
function repaintTest() {
+ window.jsTestIsAsync = true;
if (window.testRunner)
testRunner.waitUntilDone();
@@ -34,11 +23,11 @@
path.pathSegList.getItem(0).x -= 100;
shouldBeEqualToString("path.getAttribute('d').formatDAttribute()", "M 100 0 L 100 0 L 100 100 L 0 100");
- // Modify first item, check 'd' attribute changed, now a green rectangle should be visible.
+ // Modify first item, check 'd' attribute changed, now a green rectangle should be visible.
path.pathSegList.getItem(0).x -= 100;
shouldBeEqualToString("path.getAttribute('d').formatDAttribute()", "M 0 0 L 100 0 L 100 100 L 0 100");
-
- completeTest();
+
+ finishJSTest();
}
</script>
</head>
@@ -57,8 +46,8 @@
String.prototype.formatDAttribute = function() {
return this.replace(/,/g, " ") // Remove Firefox commas
.replace(/([A-Z])/g, " $1 ") // "M 100 0L 50 0" -> " M 100 0 L 50 0"
- .replace(/^\s/, "") // " M 100 0" -> "M 100 0"
- .replace(/\s\s/g, " "); // If there was already whitespace between coordinates & commands, fix it up again.
+ .replace(/^\s/, "") // " M 100 0" -> "M 100 0"
+ .replace(/\s\s/g, " "); // If there was already whitespace between coordinates & commands, fix it up again.
}
]]>
</script>

Powered by Google App Engine
This is Rietveld 408576698