| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../http/tests/inspector/debugger-test.js"></script> | |
| 5 | |
| 6 <script> | |
| 7 | |
| 8 debugger; | |
| 9 | |
| 10 function testFunction() | |
| 11 { | |
| 12 debugger; | |
| 13 } | |
| 14 | |
| 15 | |
| 16 function test() | |
| 17 { | |
| 18 // Key constant of the test. Make it false and the test will timeout. | |
| 19 var skipAllBreakpointsUntilReload = true; | |
| 20 | |
| 21 | |
| 22 InspectorTest.startDebuggerTest(step1); | |
| 23 InspectorTest.addResult("Paused 0."); | |
| 24 | |
| 25 function step1() | |
| 26 { | |
| 27 InspectorTest.showScriptSource("long-resume-vs-reload.html", didShowScri
ptSource); | |
| 28 } | |
| 29 | |
| 30 function didShowScriptSource(sourceFrame) | |
| 31 { | |
| 32 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | |
| 33 } | |
| 34 | |
| 35 function didPause(callFrames) | |
| 36 { | |
| 37 DebuggerAgent.setSkipAllPauses(true, skipAllBreakpointsUntilReload); | |
| 38 InspectorTest.reloadPage(); | |
| 39 InspectorTest.waitUntilResumed(didResume); | |
| 40 } | |
| 41 | |
| 42 function didResume() | |
| 43 { | |
| 44 InspectorTest.waitUntilPaused(didPause2); | |
| 45 } | |
| 46 | |
| 47 function didPause2(callFrames) | |
| 48 { | |
| 49 InspectorTest.completeDebuggerTest(); | |
| 50 } | |
| 51 }; | |
| 52 | |
| 53 </script> | |
| 54 | |
| 55 </head> | |
| 56 | |
| 57 <body onload="runTest()"> | |
| 58 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload, | |
| 59 so we catch any early breakpoints. | |
| 60 </p> | |
| 61 | |
| 62 </body> | |
| 63 </html> | |
| OLD | NEW |