145.html (628B)
1 <!DOCTYPE html> 2 <html><head> 3 <title>scheduler: SVG inline script adding text to empty script </title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="testlib/testlib.js"></script> 7 </head> 8 <div id="log"></div> 9 <script> 10 var t = async_test(); 11 </script> 12 <svg> 13 <script></script> 14 </svg> 15 <script> 16 t.step(function() { 17 var s = document.querySelector("svg > script"); 18 s.textContent = "t.step(function() {log('inline script #1')})"; 19 }); 20 onload = t.step_func(function() { 21 assert_array_equals(eventOrder, ["inline script #1"]); 22 t.done(); 23 }); 24 </script>