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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html

Issue 1894343002: DevTools: pretty-print HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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-enabled/sources/debugger/linkifier-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/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>// It is important that script starts on line 5 (zero-based 4) 5 <script>// It is important that script starts on line 5 (zero-based 4)
6 6
7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } 7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; }
8 8
9 function dummyScript() 9 function dummyScript()
10 { 10 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 function debuggerTest() 44 function debuggerTest()
45 { 45 {
46 var scripts = InspectorTest.debuggerModel.scripts; 46 var scripts = InspectorTest.debuggerModel.scripts;
47 for (var scriptId in scripts) { 47 for (var scriptId in scripts) {
48 var scriptCandidate = scripts[scriptId]; 48 var scriptCandidate = scripts[scriptId];
49 if (scriptCandidate.sourceURL === InspectorTest.resourceTreeModel.in spectedPageURL() && scriptCandidate.lineOffset === 4) { 49 if (scriptCandidate.sourceURL === InspectorTest.resourceTreeModel.in spectedPageURL() && scriptCandidate.lineOffset === 4) {
50 script = scriptCandidate; 50 script = scriptCandidate;
51 break; 51 break;
52 } 52 }
53 } 53 }
54 54
55 uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(InspectorTest.r esourceTreeModel.inspectedPageURL()); 55 uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(InspectorTest.r esourceTreeModel.inspectedPageURL());
56 var linkifyMe = "at triggerError (http://localhost/show/:22:11)"; 56 var linkifyMe = "at triggerError (http://localhost/show/:22:11)";
57 var fragment = WebInspector.linkifyStringAsFragment(linkifyMe); 57 var fragment = WebInspector.linkifyStringAsFragment(linkifyMe);
58 var anchor = fragment.querySelector('a'); 58 var anchor = fragment.querySelector('a');
59 InspectorTest.addResult("The string \"" + linkifyMe + " \" linkifies to url: " + anchor.href); 59 InspectorTest.addResult("The string \"" + linkifyMe + " \" linkifies to url: " + anchor.href);
60 InspectorTest.addResult("The lineNumber is " + anchor.lineNumber + " wit h type " + (typeof anchor.lineNumber)); 60 InspectorTest.addResult("The lineNumber is " + anchor.lineNumber + " wit h type " + (typeof anchor.lineNumber));
61 InspectorTest.addResult("The columnNumber is " + anchor.columnNumber + " with type " + (typeof anchor.columnNumber)); 61 InspectorTest.addResult("The columnNumber is " + anchor.columnNumber + " with type " + (typeof anchor.columnNumber));
62 62
63 linkifier = new WebInspector.Linkifier(); 63 linkifier = new WebInspector.Linkifier();
64 var count1 = liveLocationsCount(); 64 var count1 = liveLocationsCount();
(...skipping 30 matching lines...) Expand all
95 </script> 95 </script>
96 </head> 96 </head>
97 97
98 <body onload="onload()"> 98 <body onload="onload()">
99 <p> 99 <p>
100 Tests that Linkifier works correctly. 100 Tests that Linkifier works correctly.
101 <p> 101 <p>
102 102
103 </body> 103 </body>
104 </html> 104 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698