| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel="stylesheet" href="../styles/resources/styles-url-linkify.css"> | 3 <link rel="stylesheet" href="../styles/resources/styles-url-linkify.css"> |
| 4 | 4 |
| 5 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 5 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 6 <script src="../../../http/tests/inspector/elements-test.js"></script> | 6 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| 11 function completeURL(baseURL, href) | 11 function completeURL(baseURL, href) |
| 12 { | 12 { |
| 13 InspectorTest.addResult(WebInspector.ParsedURL.completeURL(baseURL, href
)); | 13 InspectorTest.addResult(Common.ParsedURL.completeURL(baseURL, href)); |
| 14 } | 14 } |
| 15 | 15 |
| 16 InspectorTest.addResult("URLs completed:"); | 16 InspectorTest.addResult("URLs completed:"); |
| 17 completeURL("http://example.com", "/"); | 17 completeURL("http://example.com", "/"); |
| 18 completeURL("http://example.com", "moo"); | 18 completeURL("http://example.com", "moo"); |
| 19 completeURL("http://example.com/", "https://secure.com/moo"); | 19 completeURL("http://example.com/", "https://secure.com/moo"); |
| 20 completeURL("https://example.com/foo", "//secure.com/moo"); | 20 completeURL("https://example.com/foo", "//secure.com/moo"); |
| 21 completeURL("http://example.com/foo/zoo", "/moo"); | 21 completeURL("http://example.com/foo/zoo", "/moo"); |
| 22 completeURL("http://example.com/foo/zoo/", "moo"); | 22 completeURL("http://example.com/foo/zoo/", "moo"); |
| 23 completeURL("http://example.com/foo/zoo", "boo/moo"); | 23 completeURL("http://example.com/foo/zoo", "boo/moo"); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 </head> | 92 </head> |
| 93 <body onload="runAfterIframeIsLoaded()"> | 93 <body onload="runAfterIframeIsLoaded()"> |
| 94 <p> | 94 <p> |
| 95 Tests that URLs are linked to and completed correctly. Bugs <a href="http://bugs
.webkit.org/show_bug.cgi?id=51663">51663</a>, <a href="http://bugs.webkit.org/sh
ow_bug.cgi?id=53171">53171</a>, <a href="http://bugs.webkit.org/show_bug.cgi?id=
62643">62643</a>, <a href="http://bugs.webkit.org/show_bug.cgi?id=72373">72373</
a>, <a href="http://bugs.webkit.org/show_bug.cgi?id=79905">79905</a> | 95 Tests that URLs are linked to and completed correctly. Bugs <a href="http://bugs
.webkit.org/show_bug.cgi?id=51663">51663</a>, <a href="http://bugs.webkit.org/sh
ow_bug.cgi?id=53171">53171</a>, <a href="http://bugs.webkit.org/show_bug.cgi?id=
62643">62643</a>, <a href="http://bugs.webkit.org/show_bug.cgi?id=72373">72373</
a>, <a href="http://bugs.webkit.org/show_bug.cgi?id=79905">79905</a> |
| 96 </p> | 96 </p> |
| 97 <div id="local"></div> | 97 <div id="local"></div> |
| 98 <iframe src="../styles/resources/styles-url-linkify-iframe.html"></iframe> | 98 <iframe src="../styles/resources/styles-url-linkify-iframe.html"></iframe> |
| 99 | 99 |
| 100 </body> | 100 </body> |
| 101 </html> | 101 </html> |
| OLD | NEW |