Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / resource-locations-in-created-html-document.html
blob4dc08d4d17e1c227f3eedd8b594d5570f7a2c8d8
1 <html>
2 <head>
3 <script>
4 function runTest() {
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var htmlDoc = document.implementation.createHTMLDocument('');
10 htmlDoc.open();
11 htmlDoc.write('<html><img id="theImage" src="/test"></html>');
13 var path = htmlDoc.getElementById('theImage').src;
15 if (path == 'file:///test')
16 document.getElementById('result').innerHTML = 'SUCCESS';
17 else if (/^file:\/\/\/[C-Z]:\/test$/.test(path)) // MS Windows.
18 document.getElementById('result').innerHTML = 'SUCCESS';
20 </script>
21 </head>
22 <body onload="runTest()">
23 This tests that paths in documents created using document.implementation.createHTMLDocument are returned correctly.
24 <div id="result">FAILURE</div>
25 </body>
26 </html>