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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/marker-getPropertyValue.svg

Issue 1363233003: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix interpolation tests Created 5 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <svg xmlns="http://www.w3.org/2000/svg" onload="runTest()"> 2 <svg xmlns="http://www.w3.org/2000/svg" onload="runTest()">
3 <script type="text/ecmascript"><![CDATA[ 3 <script type="text/ecmascript"><![CDATA[
4 4
5 function expect(string, val) { 5 function expect(string, val) {
6 var b = string == val; 6 var b = string == val;
7 var message = (string + "") + " " + (b ? "PASSED" : "FAILED (actual: '" + string + "' expected: '" + val + "')"); 7 var message = (string + "") + " " + (b ? "PASSED" : "FAILED (actual: '" + string + "' expected: '" + val + "')");
8 var txt = document.createElementNS("http://www.w3.org/2000/svg", "text"); 8 var txt = document.createElementNS("http://www.w3.org/2000/svg", "text");
9 var textNode = document.createTextNode(message); 9 var textNode = document.createTextNode(message);
10 txt.appendChild(textNode); 10 txt.appendChild(textNode);
11 document.rootElement.appendChild(txt); 11 document.rootElement.appendChild(txt);
12 } 12 }
13 13
14 function runTest() { 14 function runTest() {
15 if (window.testRunner) 15 if (window.testRunner)
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 17
18 var e = document.getElementById("rect"); 18 var e = document.getElementById("rect");
19 expect(e.style.getPropertyValue("marker"), "url(#test)"); 19 expect(e.style.getPropertyValue("marker"), 'url("#test")');
20 } 20 }
21 ]]></script> 21 ]]></script>
22 <rect visibility="hidden" width="100" height="100" id="rect" style="marker: url(#test)"/> 22 <rect visibility="hidden" width="100" height="100" id="rect" style='marker: url("#test")'/>
23 </svg> 23 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698