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

Side by Side Diff: LayoutTests/svg/dom/SVGScriptElement/script-reexecution.svg

Issue 62083002: Remove support for the externalResourcesRequired attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline test Created 6 years, 11 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"?> 1 <?xml version="1.0"?>
2 <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink=" http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload= "startTest()"> 2 <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink=" http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload= "startTest()">
3 <defs> 3 <defs>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function pass() { 5 function pass() {
6 var contentElement = document.getElementById(test); 6 var contentElement = document.getElementById(test);
7 7
8 if (contentElement.textContent == 'PASS') { 8 if (contentElement.textContent == 'PASS') {
9 contentElement.textContent = 'FAIL'; 9 contentElement.textContent = 'FAIL';
10 } else if (contentElement.textContent == 'FAIL') { 10 } else if (contentElement.textContent == 'FAIL') {
(...skipping 14 matching lines...) Expand all
25 document.getElementsByTagName("defs")[0].removeChild(e1); 25 document.getElementsByTagName("defs")[0].removeChild(e1);
26 26
27 test = "p2"; 27 test = "p2";
28 document.getElementsByTagName("defs")[0].appendChild(e1); 28 document.getElementsByTagName("defs")[0].appendChild(e1);
29 document.getElementsByTagName("defs")[0].removeChild(e1); 29 document.getElementsByTagName("defs")[0].removeChild(e1);
30 30
31 test = "p3"; 31 test = "p3";
32 message = "PASS"; 32 message = "PASS";
33 33
34 e3 = document.createElementNS("http://www.w3.org/2000/svg", "svg:script"); 34 e3 = document.createElementNS("http://www.w3.org/2000/svg", "svg:script");
35 e3.externalResourcesRequired.baseVal = true; // Otherwhise SVGLoad event wil l be fired immediately.
36 e3.href.baseVal = "resources/script-reexecution.js"; 35 e3.href.baseVal = "resources/script-reexecution.js";
37 e3.onload = function() { finish(); }
38 document.getElementsByTagName("defs")[0].appendChild(e3); 36 document.getElementsByTagName("defs")[0].appendChild(e3);
39 } 37 }
40 38
41 function finish() { 39 function finish() {
42 test = "p4"; 40 test = "p4";
43 message = "FAIL"; 41 message = "FAIL";
44 42
45 e3.onload = ""; 43 e3.onload = "";
46 document.getElementsByTagName("defs")[0].removeChild(e3); 44 document.getElementsByTagName("defs")[0].removeChild(e3);
47 document.getElementsByTagName("defs")[0].appendChild(e3); 45 document.getElementsByTagName("defs")[0].appendChild(e3);
48 46
49 if (window.testRunner) 47 if (window.testRunner)
50 testRunner.notifyDone(); 48 testRunner.notifyDone();
51 } 49 }
52 </script> 50 </script>
53 </defs> 51 </defs>
54 <foreignObject> 52 <foreignObject>
55 <xhtml:p>Created script element, script data passed as text content, appended: < xhtml:span id="p1">FAIL</xhtml:span></xhtml:p> 53 <xhtml:p>Created script element, script data passed as text content, appended: < xhtml:span id="p1">FAIL</xhtml:span></xhtml:p>
56 <xhtml:p>Removed element, readd element, remove again, script shouldn't have exe cuted:<xhtml:span id="p2">PASS</xhtml:span></xhtml:p> 54 <xhtml:p>Removed element, readd element, remove again, script shouldn't have exe cuted:<xhtml:span id="p2">PASS</xhtml:span></xhtml:p>
57 <xhtml:p>Created script element, loading external script content, appended: <xht ml:span id="p3">FAIL</xhtml:span></xhtml:p> 55 <xhtml:p>Created script element, loading external script content, appended: <xht ml:span id="p3">FAIL</xhtml:span></xhtml:p>
58 <xhtml:p>Removed element, readd element, script shouldn't have executed: <xhtml: span id="p4">PASS</xhtml:span></xhtml:p> 56 <xhtml:p>Removed element, readd element, script shouldn't have executed: <xhtml: span id="p4">PASS</xhtml:span></xhtml:p>
59 </foreignObject> 57 </foreignObject>
60 </svg> 58 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698