Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-breakpoints / disable-breakpoints.html_disabled
blobbb0b5d5da94d369f1c80387939931edfaae4ecbd
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 <script>
6 function testFunction()
8     var x = Math.sqrt(10);
9     console.log("Done.");
10     return x;
13 var test = function()
15     var currentSourceFrame;
16     InspectorTest.setQuiet(true);
17     InspectorTest.runDebuggerTestSuite([
18         function testSetBreakpointPauseResumeThenDisable(next)
19         {
20             InspectorTest.showScriptSource("disable-breakpoints.html", didShowScriptSource);
22             function didShowScriptSource(sourceFrame)
23             {
24                 InspectorTest.addResult("Script source was shown.");
25                 InspectorTest.setBreakpoint(sourceFrame, 7, "", true);
26                 InspectorTest.waitUntilPaused(didPause);
27                 InspectorTest.runTestFunction();
28             }
30             function didPause(callFrames)
31             {
32                 InspectorTest.addResult("Script execution paused.");
33                 InspectorTest.captureStackTrace(callFrames);
34                 InspectorTest.dumpBreakpointSidebarPane();
35                 InspectorTest.addConsoleSniffer(testFunctionFinishedForTheFirstTime);
36                 InspectorTest.resumeExecution(didResume);
37             }
39             function didResume(callFrames)
40             {
41                 InspectorTest.addResult("Script execution resumed.");
42             }
44             function testFunctionFinishedForTheFirstTime()
45             {
46                 InspectorTest.addResult("Test function finished.");
48                 InspectorTest.addResult("Disabling breakpoints...");
49                 WebInspector.breakpointManager.setBreakpointsActive(false);
51                 InspectorTest.addResult("Running test function again...");
52                 InspectorTest.addConsoleSniffer(testFunctionFinishedForTheSecondTime);
53                 InspectorTest.runTestFunction();
54             }
56             function testFunctionFinishedForTheSecondTime(callFrames)
57             {
58                 InspectorTest.addResult("Test function finished.");
59                 next();
60             }
61         },
63         function testEnableBreakpointsAgain(next)
64         {
65             InspectorTest.showScriptSource("disable-breakpoints.html", didShowScriptSource);
67             function didShowScriptSource(sourceFrame)
68             {
69                 currentSourceFrame = sourceFrame;
70                 InspectorTest.addResult("Enabling breakpoints...");
71                 WebInspector.breakpointManager.setBreakpointsActive(true);
73                 InspectorTest.addResult("Running test function...");
74                 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
75             }
77             function didPause(callFrames)
78             {
79                 InspectorTest.addResult("Script execution paused.");
80                 InspectorTest.captureStackTrace(callFrames);
81                 InspectorTest.dumpBreakpointSidebarPane();
82                 InspectorTest.addConsoleSniffer(testFunctionFinished);
83                 InspectorTest.resumeExecution(didResume);
84             }
86             function didResume(callFrames)
87             {
88                 InspectorTest.addResult("Script execution resumed.");
89             }
91             function testFunctionFinished()
92             {
93                 InspectorTest.addResult("Test function finished.");
94                 InspectorTest.dumpBreakpointSidebarPane();
95                 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointDecoration", breakpointRemoved);
96                 InspectorTest.removeBreakpoint(currentSourceFrame, 7);
97             }
99             function breakpointRemoved()
100             {
101                 InspectorTest.addResult("Breakpoints removed.");
102                 InspectorTest.dumpBreakpointSidebarPane();
103                 next();
104             }
105         },
106     ]);
108 </script>
109 </head>
110 <body onload="runTest()">
111 <p>Tests disabling breakpoints.</p>
112 </body>
113 </html>