| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) { | 4 if (window.testRunner) { |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 testRunner.setCanOpenWindows(); | 6 testRunner.setCanOpenWindows(); |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 var xmlWindow; | 10 var xmlWindow; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 var sourceXML = xmlWindow.document.getElementById('webkit-xml-viewer
-source-xml'); | 21 var sourceXML = xmlWindow.document.getElementById('webkit-xml-viewer
-source-xml'); |
| 22 if (sourceXML && sourceXML.firstChild.nodeName == 'root') | 22 if (sourceXML && sourceXML.firstChild.nodeName == 'root') |
| 23 print('SUCCESS'); | 23 print('SUCCESS'); |
| 24 else | 24 else |
| 25 print('FAIL'); | 25 print('FAIL'); |
| 26 } | 26 } |
| 27 | 27 |
| 28 function onload() | 28 function onload() |
| 29 { | 29 { |
| 30 xmlWindow = window.open('resources/sample.xml', "XMLViewerTestWindow
"); | 30 xmlWindow = window.open('resources/sample.xml', "XMLViewerTestWindow
"); |
| 31 xmlWindow.onAfterWebkitXMLViewerLoaded = checkSourceXML; | 31 xmlWindow.onload = checkSourceXML; |
| 32 } | 32 } |
| 33 | 33 |
| 34 </script> | 34 </script> |
| 35 </head> | 35 </head> |
| 36 <body onload="onload();"> | 36 <body onload="onload();"> |
| 37 <p>Tests extensions hooks in xml viewer.</p> | 37 <p>Tests extensions hooks in xml viewer.</p> |
| 38 <div id='output'></div> | 38 <div id='output'></div> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |