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

Side by Side Diff: LayoutTests/svg/dom/script-tests/SVGViewSpec.js

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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 description("This test checks the SVGViewSpec API, operating on a parsed viewSpe c"); 1 description("This test checks the SVGViewSpec API, operating on a parsed viewSpe c");
2 if (window.testRunner) 2 window.jsTestIsAsync = true;
3 if (window.testRunner) {
3 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
4 5
5 function completeTest() { 6 function completeTest() {
6 var script = document.createElement("script"); 7 finishJSTest();
7
8 script.onload = function() {
9 if (window.testRunner)
10 testRunner.notifyDone();
11 };
12
13 script.src = "../../fast/js/resources/js-test-post.js";
14 document.body.appendChild(script);
15 } 8 }
16 9
17 // Load an external file to test svgView() handling. 10 // Load an external file to test svgView() handling.
18 function testFragment(string) { 11 function testFragment(string) {
19 debug(""); 12 debug("");
20 debug("Loading external SVG resources/viewspec-target.svg"); 13 debug("Loading external SVG resources/viewspec-target.svg");
21 debug("Passing SVGViewSpec: " + string); 14 debug("Passing SVGViewSpec: " + string);
22 debug(""); 15 debug("");
23 var iframeElement = document.createElement("iframe"); 16 var iframeElement = document.createElement("iframe");
24 iframeElement.setAttribute("id", "iframe"); 17 iframeElement.setAttribute("id", "iframe");
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 debug("Check preserveAspectRatio value"); 78 debug("Check preserveAspectRatio value");
86 shouldBeEqualToString("currentView.preserveAspectRatioString", "xMinYMid sli ce"); 79 shouldBeEqualToString("currentView.preserveAspectRatioString", "xMinYMid sli ce");
87 shouldBe("currentView.preserveAspectRatio.baseVal.align", "SVGPreserveAspect Ratio.SVG_PRESERVEASPECTRATIO_XMINYMID"); 80 shouldBe("currentView.preserveAspectRatio.baseVal.align", "SVGPreserveAspect Ratio.SVG_PRESERVEASPECTRATIO_XMINYMID");
88 shouldBe("currentView.preserveAspectRatio.baseVal.meetOrSlice", "SVGPreserve AspectRatio.SVG_MEETORSLICE_SLICE"); 81 shouldBe("currentView.preserveAspectRatio.baseVal.meetOrSlice", "SVGPreserve AspectRatio.SVG_MEETORSLICE_SLICE");
89 82
90 completeTest(); 83 completeTest();
91 } 84 }
92 85
93 testFragment("svgView(viewBox(0,0,100,50);preserveAspectRatio(xMinYMid slice);tr ansform(translate(0 10) translate(25 25) rotate(45) translate(-25 -25) scale(0.7 0.7));viewTarget(blub);zoomAndPan(disable))"); 86 testFragment("svgView(viewBox(0,0,100,50);preserveAspectRatio(xMinYMid slice);tr ansform(translate(0 10) translate(25 25) rotate(45) translate(-25 -25) scale(0.7 0.7));viewTarget(blub);zoomAndPan(disable))");
94 successfullyParsed = true; 87 successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698