Unreviewed, updating TestExpectations after input slider change.
[WebKit-https.git] / LayoutTests / xmlviewer / extensions-api.html
1 <html>
2 <head>
3     <script>
4         if (window.testRunner) {
5            testRunner.dumpAsText();
6            testRunner.setCanOpenWindows();
7            testRunner.waitUntilDone();
8         }
9
10         var xmlWindow;
11
12         function print(str)
13         {
14             document.getElementById('output').textContent = str;
15             xmlWindow.close();
16             testRunner.notifyDone();
17         }
18
19         function checkSourceXML()
20         {
21             var sourceXML = xmlWindow.document.getElementById('webkit-xml-viewer-source-xml');
22             if (sourceXML && sourceXML.firstChild.nodeName == 'root')
23                 print('SUCCESS');
24             else
25                 print('FAIL');
26         }
27
28         function onload()
29         {
30             xmlWindow = window.open('resources/sample.xml', "XMLViewerTestWindow");
31             xmlWindow.onAfterWebkitXMLViewerLoaded = checkSourceXML;
32         }
33
34     </script>
35 </head>
36 <body onload="onload();">
37     <p>Tests extensions hooks in xml viewer.</p>
38     <div id='output'></div>
39 </body>
40 </html>