| OLD | NEW |
| 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="../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 5 <script src="../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../http/tests/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 29 matching lines...) Expand all Loading... |
| 40 InspectorTest.startDebuggerTest(step2); | 40 InspectorTest.startDebuggerTest(step2); |
| 41 } | 41 } |
| 42 | 42 |
| 43 function step2() | 43 function step2() |
| 44 { | 44 { |
| 45 InspectorTest.runAfterPendingDispatches(step3); | 45 InspectorTest.runAfterPendingDispatches(step3); |
| 46 } | 46 } |
| 47 | 47 |
| 48 function step3() | 48 function step3() |
| 49 { | 49 { |
| 50 var panel = WebInspector.showPanel("scripts"); | 50 var panel = WebInspector.showPanel("sources"); |
| 51 var uiSourceCodes = WebInspector.workspace.uiSourceCodesForProjectType(W
ebInspector.projectTypes.Network); | 51 var uiSourceCodes = WebInspector.workspace.uiSourceCodesForProjectType(W
ebInspector.projectTypes.Network); |
| 52 var urls = uiSourceCodes.map(function(uiSourceCode) { return uiSourceCod
e.name(); }); | 52 var urls = uiSourceCodes.map(function(uiSourceCode) { return uiSourceCod
e.name(); }); |
| 53 urls.sort(); | 53 urls.sort(); |
| 54 | 54 |
| 55 var whiteList = ["debugger-test.js", "dynamic-script.js", "dynamic-scrip
ts.html", "evalSourceURL.js", "inspector-test.js", "scriptElementContentSourceUR
L.js"]; | 55 var whiteList = ["debugger-test.js", "dynamic-script.js", "dynamic-scrip
ts.html", "evalSourceURL.js", "inspector-test.js", "scriptElementContentSourceUR
L.js"]; |
| 56 function filter(url) | 56 function filter(url) |
| 57 { | 57 { |
| 58 for (var i = 0; i < whiteList.length; ++i) { | 58 for (var i = 0; i < whiteList.length; ++i) { |
| 59 if (url === whiteList[i]) | 59 if (url === whiteList[i]) |
| 60 return true; | 60 return true; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 76 InspectorTest.completeDebuggerTest(); | 76 InspectorTest.completeDebuggerTest(); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 </script> | 79 </script> |
| 80 </head> | 80 </head> |
| 81 <body onload="runTest()"> | 81 <body onload="runTest()"> |
| 82 <p>Tests that scripts for dynamically added script elements are shown in sources
panel if loaded with inspector open.</p> | 82 <p>Tests that scripts for dynamically added script elements are shown in sources
panel if loaded with inspector open.</p> |
| 83 <a href="https://bugs.webkit.org/show_bug.cgi?id=99324">Bug 99324</a> | 83 <a href="https://bugs.webkit.org/show_bug.cgi?id=99324">Bug 99324</a> |
| 84 </body> | 84 </body> |
| 85 </html> | 85 </html> |
| OLD | NEW |