4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.setCanOpenWindows();
7 testRunner
.waitUntilDone();
14 document
.getElementById('output').textContent
= str
;
16 testRunner
.notifyDone();
19 function checkSourceXML()
21 var sourceXML
= xmlWindow
.document
.getElementById('webkit-xml-viewer-source-xml');
22 if (sourceXML
&& sourceXML
.firstChild
.nodeName
== 'root')
30 xmlWindow
= window
.open('resources/sample.xml', "XMLViewerTestWindow");
31 xmlWindow
.onload
= checkSourceXML
;
36 <body onload=
"onload();">
37 <p>Tests extensions hooks in xml viewer.
</p>
38 <div id='output'
></div>