Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src=../../../resources/js-test.js></script> | |
| 3 <script> | |
| 4 window.jsTestIsAsync = true; | |
| 5 | |
| 6 var loadEventsFired = 0; | |
| 7 | |
| 8 onload = function() { | |
| 9 var newExternalScript = document.createElementNS("http://www.w3.org/2000/svg ", "script"); | |
| 10 newExternalScript.onload = function() { | |
| 11 loadEventsFired++; | |
| 12 setTimeout(function() { | |
|
fs
2015/05/19 07:25:40
Not very fond of this, but did manage to come up w
pdr.
2015/05/19 18:18:26
I think this is fine. setTimeout is our hook for w
| |
| 13 shouldBe("loadEventsFired", "1"); | |
| 14 finishJSTest(); | |
| 15 }, 0); | |
| 16 }; | |
| 17 newExternalScript.setAttributeNS("http://www.w3.org/1999/xlink", "href", "re sources/script-load.js"); | |
| 18 document.querySelector("svg").appendChild(newExternalScript); | |
| 19 } | |
| 20 </script> | |
| 21 <svg> | |
| 22 </svg> | |
| OLD | NEW |