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 { |
(...skipping 15 matching lines...) Expand all Loading... |
26 completeURL("http://example.com/foo", "?a=/b"); | 26 completeURL("http://example.com/foo", "?a=/b"); |
27 completeURL("http://example.com/?c=/d#anchor", "?a=/b"); | 27 completeURL("http://example.com/?c=/d#anchor", "?a=/b"); |
28 completeURL("http://example.com/foo?c=d", "?a=b"); | 28 completeURL("http://example.com/foo?c=d", "?a=b"); |
29 completeURL("http://example.com/foo?c=d#anchor", "?a=/b"); | 29 completeURL("http://example.com/foo?c=d#anchor", "?a=/b"); |
30 completeURL("http://example.com/foo?c=/d/e", "?a=b"); | 30 completeURL("http://example.com/foo?c=/d/e", "?a=b"); |
31 completeURL("http://example.com/foo?c=/d/e", "cat.jpeg"); | 31 completeURL("http://example.com/foo?c=/d/e", "cat.jpeg"); |
32 completeURL("http://example.com/foo#anchor", "cat.jpeg"); | 32 completeURL("http://example.com/foo#anchor", "cat.jpeg"); |
33 completeURL("http://example.com/", "/foo?bar=http://otherexample.com"); | 33 completeURL("http://example.com/", "/foo?bar=http://otherexample.com"); |
34 | 34 |
35 const dataURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCAgMAA
ACeOuh7AAAABGdBTUEAAK/INwWK6QAAAAlQTFRF////AAAA////fu+PTwAAAAF0Uk5TAEDm2GYAAACHS
URBVDjLxdLbDYAgDAVQGELn0R3oEHYf2KGdUqtE46OFRCP3oyTng1xCnWsaD5JRRtCkQ2YmkBkHRXqWJ
Bn0j0TICbrsWVoWhRShCdcGyZCtHxMaUnVPRZ9KSbmBJdsX2vJVnwqRD0Rb4rpzgIbE/AI5NTnWAMvy5
l0dXrfuLh5OCe5BmmYGXhTUxlQ5xJ8AAAAASUVORK5CYII="; | 35 const dataURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCAgMAA
ACeOuh7AAAABGdBTUEAAK/INwWK6QAAAAlQTFRF////AAAA////fu+PTwAAAAF0Uk5TAEDm2GYAAACHS
URBVDjLxdLbDYAgDAVQGELn0R3oEHYf2KGdUqtE46OFRCP3oyTng1xCnWsaD5JRRtCkQ2YmkBkHRXqWJ
Bn0j0TICbrsWVoWhRShCdcGyZCtHxMaUnVPRZ9KSbmBJdsX2vJVnwqRD0Rb4rpzgIbE/AI5NTnWAMvy5
l0dXrfuLh5OCe5BmmYGXhTUxlQ5xJ8AAAAASUVORK5CYII="; |
36 const blobURL = "blob:http%3A//example.com/f91b7b00-00-0000-0000-3b7c87055d7
a"; | 36 const blobURL = "blob:http://example.com/f91b7b00-00-0000-0000-3b7c87055d7a"
; |
37 completeURL("https://example.com/foo", dataURL); | 37 completeURL("https://example.com/foo", dataURL); |
38 completeURL("http://example.com/foo", "javascript:alert('foo');"); | 38 completeURL("http://example.com/foo", "javascript:alert('foo');"); |
39 completeURL("http://example.com/foo", blobURL); | 39 completeURL("http://example.com/foo", blobURL); |
40 InspectorTest.addResult(WebInspector.ParsedURL.completeURL(blobURL)); | 40 InspectorTest.addResult(WebInspector.ParsedURL.completeURL(blobURL)); |
41 | 41 |
42 function dumpHref(dumpLinkClass) | 42 function dumpHref(dumpLinkClass) |
43 { | 43 { |
44 var hrefNode; | 44 var hrefNode; |
45 var valueChildNodes = InspectorTest.firstMatchedStyleSection().propertie
sTreeOutline.firstChild().valueElement.childNodes; | 45 var valueChildNodes = InspectorTest.firstMatchedStyleSection().propertie
sTreeOutline.firstChild().valueElement.childNodes; |
46 for (var i = 0; i < valueChildNodes.length; ++i) { | 46 for (var i = 0; i < valueChildNodes.length; ++i) { |
(...skipping 45 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 |