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

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

Issue 2151943002: Revert of [Devtools] Improved URL parser for console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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::");
28 11
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\";'");
38 12
39 function test() 13 function test()
40 { 14 {
41 InspectorTest.dumpConsoleMessages(false, true); 15 InspectorTest.dumpConsoleMessages(false, true);
42 16
43 InspectorTest.addResult("Dump urls in messages"); 17 InspectorTest.addResult("Dump urls in messages");
44 var consoleView = WebInspector.ConsoleView.instance(); 18 var consoleView = WebInspector.ConsoleView.instance();
45 var viewMessages = consoleView._visibleViewMessages; 19 var viewMessages = consoleView._visibleViewMessages;
46 for (var i = 0; i < viewMessages.length; ++i) { 20 for (var i = 0; i < viewMessages.length; ++i) {
47 var uiMessage = viewMessages[i]; 21 var uiMessage = viewMessages[i];
48 var element = uiMessage.element(); 22 var element = uiMessage.contentElement();
49 var links = element.querySelectorAll(".webkit-html-external-link"); 23 var href = element.querySelector(".webkit-html-external-link");
50 InspectorTest.addResult(element.innerText.trim()); 24 InspectorTest.addResult("linked url:" + href.href);
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 }
57 } 25 }
58 26
59 InspectorTest.completeTest(); 27 InspectorTest.completeTest();
60 } 28 }
61 </script> 29 </script>
62 </head> 30 </head>
63 <body onload="runTest()"> 31 <body onload="runTest()">
64 <p> 32 <p>
65 Test that console.log() would linkify the links. <a href="http://crbug.com/23107 4">Bug 231074.</a> 33 Test that console.log() would linkify the links. <a href="http://crbug.com/23107 4">Bug 231074.</a>
66 </p> 34 </p>
67 </body> 35 </body>
68 </html> 36 </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