OLD | NEW |
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 | 5 |
6 <script> | 6 <script> |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 InspectorTest.evaluateInPage("function foo() {} //@ sourceURL=dummyScript.js
", step1); | 10 InspectorTest.evaluateInPage("function foo() {} //# sourceURL=dummyScript.js
", step1); |
11 | 11 |
12 function step1() | 12 function step1() |
13 { | 13 { |
14 InspectorTest.startDebuggerTest(step2); | 14 InspectorTest.startDebuggerTest(step2); |
15 } | 15 } |
16 | 16 |
17 function step2() | 17 function step2() |
18 { | 18 { |
19 InspectorTest.queryScripts(function(script) { step3({ data: script }) })
; | 19 InspectorTest.queryScripts(function(script) { step3({ data: script }) })
; |
20 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.E
vents.ParsedScriptSource, step3); | 20 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.E
vents.ParsedScriptSource, step3); |
(...skipping 21 matching lines...) Expand all Loading... |
42 | 42 |
43 } | 43 } |
44 </script> | 44 </script> |
45 </head> | 45 </head> |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 <p> | 47 <p> |
48 Tests that scripts list is cleared upon page reload. | 48 Tests that scripts list is cleared upon page reload. |
49 </p> | 49 </p> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |