| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 break; | 49 break; |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 if (!hrefNode) { | 52 if (!hrefNode) { |
| 53 InspectorTest.addResult("href property not found"); | 53 InspectorTest.addResult("href property not found"); |
| 54 return; | 54 return; |
| 55 } | 55 } |
| 56 | 56 |
| 57 var styleClass = ""; | 57 var styleClass = ""; |
| 58 if (dumpLinkClass) { | 58 if (dumpLinkClass) { |
| 59 if (hrefNode.classList.contains("webkit-html-resource-link")) | 59 if (hrefNode.classList.contains("devtools-link")) |
| 60 styleClass += "webkit-html-resource-link "; | 60 styleClass += "devtools-link "; |
| 61 if (hrefNode.classList.contains("webkit-html-external-link")) | |
| 62 styleClass += "webkit-html-external-link "; | |
| 63 } | 61 } |
| 64 | 62 |
| 65 var href = hrefNode.href; | 63 var href = hrefNode.href; |
| 66 var segments = href.split("/"); | 64 var segments = href.split("/"); |
| 67 var output = []; | 65 var output = []; |
| 68 for (var i = segments.length - 1, minSegment = i - 3; i >= 0 && i >= min
Segment; --i) | 66 for (var i = segments.length - 1, minSegment = i - 3; i >= 0 && i >= min
Segment; --i) |
| 69 output.unshift(segments[i]); | 67 output.unshift(segments[i]); |
| 70 | 68 |
| 71 InspectorTest.addResult(styleClass + output.join("/")); | 69 InspectorTest.addResult(styleClass + output.join("/")); |
| 72 } | 70 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 92 </head> | 90 </head> |
| 93 <body onload="runAfterIframeIsLoaded()"> | 91 <body onload="runAfterIframeIsLoaded()"> |
| 94 <p> | 92 <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> | 93 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> | 94 </p> |
| 97 <div id="local"></div> | 95 <div id="local"></div> |
| 98 <iframe src="../styles/resources/styles-url-linkify-iframe.html"></iframe> | 96 <iframe src="../styles/resources/styles-url-linkify-iframe.html"></iframe> |
| 99 | 97 |
| 100 </body> | 98 </body> |
| 101 </html> | 99 </html> |
| OLD | NEW |