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

Side by Side Diff: LayoutTests/inspector/debugger/long-resume-vs-reload.html

Issue 60203007: DevTools: Fix disabling all pauses on reload. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698