| 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="../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 27 matching lines...) Expand all Loading... |
| 38 testRunner.showWebInspector(); | 38 testRunner.showWebInspector(); |
| 39 runTest(); | 39 runTest(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 function test() | 42 function test() |
| 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.deprecatedRunAfterPendingDispatches(step3); |
| 49 } | 49 } |
| 50 | 50 |
| 51 function step3() | 51 function step3() |
| 52 { | 52 { |
| 53 var panel = WebInspector.panels.sources; | 53 var panel = WebInspector.panels.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"]; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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> |
| OLD | NEW |