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

Side by Side Diff: LayoutTests/svg/animations/smil-element-target-crash-main.html

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Keep hasFeature() as it was Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 function crash() 9 function crash()
10 { 10 {
11 var doc = document.implementation.createDocument(); 11 var doc = document.implementation.createDocument("", "");
12 doc.adoptNode(object1.contentDocument.getElementsByTagName("svg")[0]); 12 doc.adoptNode(object1.contentDocument.getElementsByTagName("svg")[0]);
13 delete doc; 13 delete doc;
14 14
15 if (window.GCController) 15 if (window.GCController)
16 GCController.collect(); 16 GCController.collect();
17 17
18 document.open(); 18 document.open();
19 document.write('PASS'); 19 document.write('PASS');
20 document.close(); 20 document.close();
21 21
22 if (window.testRunner) 22 if (window.testRunner)
23 testRunner.notifyDone(); 23 testRunner.notifyDone();
24 } 24 }
25 25
26 function runTest() 26 function runTest()
27 { 27 {
28 setTimeout("crash()", 0); 28 setTimeout("crash()", 0);
29 } 29 }
30 </script> 30 </script>
31 <object data="resources/smil-element-target-crash.svg" id="object1" onload="runT est()"></object> 31 <object data="resources/smil-element-target-crash.svg" id="object1" onload="runT est()"></object>
32 <iframe id="iframe1"></iframe> 32 <iframe id="iframe1"></iframe>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698