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

Unified Diff: LayoutTests/svg/custom/acid3-test-77.html

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/acid3-test-77.html
diff --git a/LayoutTests/svg/custom/acid3-test-77.html b/LayoutTests/svg/custom/acid3-test-77.html
index cb26bc30af17c81d878d623848d9acfbc04781a9..80ec065b6d933af0c5745471cda841c6abc93ea9 100644
--- a/LayoutTests/svg/custom/acid3-test-77.html
+++ b/LayoutTests/svg/custom/acid3-test-77.html
@@ -31,6 +31,7 @@
<script>
description("Acid3 test 77, checking text metric functionality");
+ window.jsTestIsAsync = true;
if (window.testRunner)
testRunner.waitUntilDone();
@@ -52,9 +53,9 @@
text.setAttribute("font-size", "4000");
executeTest();
}
-
+
function executeTest() {
- // The font-size 4000 was chosen because that matches the unitsPerEm value in the svgfont,
+ // The font-size 4000 was chosen because that matches the unitsPerEm value in the svgfont,
// which makes it easy to check the glyph advances since they will then be exactly what was specified in the svgfont.
shouldBe("text.getNumberOfChars()", "3");
shouldBe("text.getComputedTextLength()", "4711+42+23");
@@ -78,15 +79,7 @@
shouldThrow("text.getEndPositionOfChar(-17)");
shouldThrow("text.getEndPositionOfChar(4)");
- 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();
}
startTest();

Powered by Google App Engine
This is Rietveld 408576698