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

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 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 | LayoutTests/http/tests/inspector/debugger-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../inspector/inspector-test.js"></script> 4 <script src="../inspector/inspector-test.js"></script>
5 <script src="../inspector/debugger-test.js"></script> 5 <script src="../inspector/debugger-test.js"></script>
6 <script> 6 <script>
7 function appendDynamicScriptElement(src, content) 7 function appendDynamicScriptElement(src, content)
8 { 8 {
9 var scriptElement = document.createElement("script"); 9 var scriptElement = document.createElement("script");
10 if (src) 10 if (src)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 { 43 {
44 InspectorTest.startDebuggerTest(step2); 44 InspectorTest.startDebuggerTest(step2);
45 45
46 function step2() 46 function step2()
47 { 47 {
48 InspectorTest.runAfterPendingDispatches(step3); 48 InspectorTest.runAfterPendingDispatches(step3);
49 } 49 }
50 50
51 function step3() 51 function step3()
52 { 52 {
53 var panel = WebInspector.showPanel("scripts"); 53 var panel = WebInspector.showPanel("sources");
54 var uiSourceCodes = WebInspector.workspace.uiSourceCodesForProjectType(W ebInspector.projectTypes.Network); 54 var uiSourceCodes = WebInspector.workspace.uiSourceCodesForProjectType(W ebInspector.projectTypes.Network);
55 var urls = uiSourceCodes.map(function(uiSourceCode) { return uiSourceCod e.name(); }); 55 var urls = uiSourceCodes.map(function(uiSourceCode) { return uiSourceCod e.name(); });
56 urls.sort(); 56 urls.sort();
57 57
58 var whiteList = ["debugger-test.js", "dynamic-script.js", "dynamic-scrip ts.html", "evalSourceURL.js", "inspector-test.js", "scriptElementContentSourceUR L.js"]; 58 var whiteList = ["debugger-test.js", "dynamic-script.js", "dynamic-scrip ts.html", "evalSourceURL.js", "inspector-test.js", "scriptElementContentSourceUR L.js"];
59 function filter(url) 59 function filter(url)
60 { 60 {
61 for (var i = 0; i < whiteList.length; ++i) { 61 for (var i = 0; i < whiteList.length; ++i) {
62 if (url.indexOf(whiteList[i]) !== -1) 62 if (url.indexOf(whiteList[i]) !== -1)
63 return true; 63 return true;
64 } 64 }
65 65
66 return false; 66 return false;
67 } 67 }
68 urls = urls.filter(filter); 68 urls = urls.filter(filter);
69 69
70 InspectorTest.addResult("UISourceCodes:"); 70 InspectorTest.addResult("UISourceCodes:");
71 for (var i = 0; i < urls.length; ++i) 71 for (var i = 0; i < urls.length; ++i)
72 InspectorTest.addResult(" " + urls[i]); 72 InspectorTest.addResult(" " + urls[i]);
73 InspectorTest.completeDebuggerTest(); 73 InspectorTest.completeDebuggerTest();
74 } 74 }
75 } 75 }
76 </script> 76 </script>
77 </head> 77 </head>
78 <body onload="onload()"> 78 <body onload="onload()">
79 <p>Tests that scripts for dynamically added script elements are shown in sources panel if inspector is opened after the scripts were loaded.</p> 79 <p>Tests that scripts for dynamically added script elements are shown in sources panel if inspector is opened after the scripts were loaded.</p>
80 <a href="https://bugs.webkit.org/show_bug.cgi?id=99324">Bug 99324</a> 80 <a href="https://bugs.webkit.org/show_bug.cgi?id=99324">Bug 99324</a>
81 </body> 81 </body>
82 </html> 82 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/debugger-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698