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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/components/linkifier.html

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 years, 4 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
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> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var script; 8 var script;
9 9
10 InspectorTest.startDebuggerTest(waitForScripts); 10 InspectorTest.startDebuggerTest(waitForScripts);
11 11
12 function waitForScripts() 12 function waitForScripts()
13 { 13 {
14 InspectorTest.showScriptSource("linkifier.html", debuggerTest); 14 InspectorTest.showScriptSource("linkifier.html", debuggerTest);
15 } 15 }
16 16
17 function debuggerTest() 17 function debuggerTest()
18 { 18 {
19 var url = InspectorTest.resourceTreeModel.inspectedPageURL();
20 var target = WebInspector.targetManager.mainTarget(); 19 var target = WebInspector.targetManager.mainTarget();
20 var url = target.inspectedURL();
21 var scripts = InspectorTest.debuggerModel.scripts; 21 var scripts = InspectorTest.debuggerModel.scripts;
22 for (var scriptId in scripts) { 22 for (var scriptId in scripts) {
23 var scriptCandidate = scripts[scriptId]; 23 var scriptCandidate = scripts[scriptId];
24 if (scriptCandidate.sourceURL === url) { 24 if (scriptCandidate.sourceURL === url) {
25 script = scriptCandidate; 25 script = scriptCandidate;
26 break; 26 break;
27 } 27 }
28 } 28 }
29 29
30 dumpLiveLocationsCount(); 30 dumpLiveLocationsCount();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 </script> 66 </script>
67 </head> 67 </head>
68 68
69 <body onload="runTest()"> 69 <body onload="runTest()">
70 <p> 70 <p>
71 Tests that Linkifier works correctly. 71 Tests that Linkifier works correctly.
72 <p> 72 <p>
73 73
74 </body> 74 </body>
75 </html> 75 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698