Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links.html

Issue 2125143002: [Devtools] Improved URL parser for console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed test bug Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 console.log("http://www.chromium.org/"); 6 console.log("http://www.chromium.org/");
7 console.log("follow http://www.chromium.org/"); 7 console.log("follow http://www.chromium.org/");
8 console.log("string", "http://www.chromium.org/"); 8 console.log("string", "http://www.chromium.org/");
9 console.log(123, "http://www.chromium.org/"); 9 console.log(123, "http://www.chromium.org/");
10 console.log("http://www.chromium.org/some?v=114:56:57"); 10 console.log("http://www.chromium.org/some?v=114:56:57");
11 console.log("http://[1234:0:0:0:8:800:200C:417A]/index.html");
12 console.log("http://[1234:2a00:100:7031::1]");
13 console.log("http://[1234::8:800:200C:417A]/foo");
14 console.log("http://[::192.9.5.5]/ipng");
15 console.log("http://[::FFFF:129.144.52.38]:80/index.html");
16 console.log("http://[2010:836B:4179::836B:4179]");
17 console.log("{x:'http://abc',bcd:'www.google.com'}");
18 console.log("asdf\"www.google.com\"asdf");
19 console.log("{http:'google.com'}");
20 console.log("http://google.com:900a?");
21 console.log("'www.google.com/ some spaces and stuff...'");
22 console.log("http://w'ww.google.com");
23 console.log("http://www.google...com");
24 console.log("http://fo/test");
25 console.log("http://fo/test#asdf&asdf?qwer!asdf:asdf::");
26 console.log("http://fo/test?asdf#asdf&asdf?qwer!asdf:asdf::");
27 console.log("http://fo/test/?asdf#asdf&asdf?qwer!asdf:asdf::");
11 28
29 console.log("http://fo/test?/asdf#asdf&asdf?qwer!asdf:asdf::.");
30 console.log("http://fo/test?/asdf#asdf&asdf?qwer!asdf:asdf::.oktext");
31 console.log("http://fo/test?/asdf#asdf&asdf?qwer!asdf:asdf::. notpartofurl");
32
33 console.log("=http://google.com");
34 console.log("http://google.com");
35 console.log("data:,not pass");
36 console.log("'data:,this shall all pass'but not here");
37 console.log("'data:,\"this shall all pass\";'");
12 38
13 function test() 39 function test()
14 { 40 {
15 InspectorTest.dumpConsoleMessages(false, true); 41 InspectorTest.dumpConsoleMessages(false, true);
16 42
17 InspectorTest.addResult("Dump urls in messages"); 43 InspectorTest.addResult("Dump urls in messages");
18 var consoleView = WebInspector.ConsoleView.instance(); 44 var consoleView = WebInspector.ConsoleView.instance();
19 var viewMessages = consoleView._visibleViewMessages; 45 var viewMessages = consoleView._visibleViewMessages;
20 for (var i = 0; i < viewMessages.length; ++i) { 46 for (var i = 0; i < viewMessages.length; ++i) {
21 var uiMessage = viewMessages[i]; 47 var uiMessage = viewMessages[i];
22 var element = uiMessage.contentElement(); 48 var element = uiMessage.element();
23 var href = element.querySelector(".webkit-html-external-link"); 49 var links = element.querySelectorAll(".webkit-html-external-link");
24 InspectorTest.addResult("linked url:" + href.href); 50 InspectorTest.addResult(element.innerText.trim());
51 if (!links.length)
52 InspectorTest.addResult(" No links");
53 for (var j = 0; j < links.length; j++) {
54 var href = links[j];
55 InspectorTest.addResult(" Url: " + href.href);
56 }
25 } 57 }
26 58
27 InspectorTest.completeTest(); 59 InspectorTest.completeTest();
28 } 60 }
29 </script> 61 </script>
30 </head> 62 </head>
31 <body onload="runTest()"> 63 <body onload="runTest()">
32 <p> 64 <p>
33 Test that console.log() would linkify the links. <a href="http://crbug.com/23107 4">Bug 231074.</a> 65 Test that console.log() would linkify the links. <a href="http://crbug.com/23107 4">Bug 231074.</a>
34 </p> 66 </p>
35 </body> 67 </body>
36 </html> 68 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698