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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/disable-breakpoints.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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
OLDNEW
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 <script> 5 <script>
6 function testFunction() 6 function testFunction()
7 { 7 {
8 var x = Math.sqrt(10); 8 var x = Math.sqrt(10);
9 console.log("Done."); 9 console.log("Done.");
10 return x; 10 return x;
(...skipping 28 matching lines...) Expand all
39 function didResume(callFrames) 39 function didResume(callFrames)
40 { 40 {
41 InspectorTest.addResult("Script execution resumed."); 41 InspectorTest.addResult("Script execution resumed.");
42 } 42 }
43 43
44 function testFunctionFinishedForTheFirstTime() 44 function testFunctionFinishedForTheFirstTime()
45 { 45 {
46 InspectorTest.addResult("Test function finished."); 46 InspectorTest.addResult("Test function finished.");
47 47
48 InspectorTest.addResult("Disabling breakpoints..."); 48 InspectorTest.addResult("Disabling breakpoints...");
49 WebInspector.breakpointManager.setBreakpointsActive(false); 49 Bindings.breakpointManager.setBreakpointsActive(false);
50 50
51 InspectorTest.addResult("Running test function again..."); 51 InspectorTest.addResult("Running test function again...");
52 InspectorTest.addConsoleSniffer(testFunctionFinishedForTheSecond Time); 52 InspectorTest.addConsoleSniffer(testFunctionFinishedForTheSecond Time);
53 InspectorTest.runTestFunction(); 53 InspectorTest.runTestFunction();
54 } 54 }
55 55
56 function testFunctionFinishedForTheSecondTime(callFrames) 56 function testFunctionFinishedForTheSecondTime(callFrames)
57 { 57 {
58 InspectorTest.addResult("Test function finished."); 58 InspectorTest.addResult("Test function finished.");
59 next(); 59 next();
60 } 60 }
61 }, 61 },
62 62
63 function testEnableBreakpointsAgain(next) 63 function testEnableBreakpointsAgain(next)
64 { 64 {
65 InspectorTest.showScriptSource("disable-breakpoints.html", didShowSc riptSource); 65 InspectorTest.showScriptSource("disable-breakpoints.html", didShowSc riptSource);
66 66
67 function didShowScriptSource(sourceFrame) 67 function didShowScriptSource(sourceFrame)
68 { 68 {
69 currentSourceFrame = sourceFrame; 69 currentSourceFrame = sourceFrame;
70 InspectorTest.addResult("Enabling breakpoints..."); 70 InspectorTest.addResult("Enabling breakpoints...");
71 WebInspector.breakpointManager.setBreakpointsActive(true); 71 Bindings.breakpointManager.setBreakpointsActive(true);
72 72
73 InspectorTest.addResult("Running test function..."); 73 InspectorTest.addResult("Running test function...");
74 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 74 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
75 } 75 }
76 76
77 function didPause(callFrames) 77 function didPause(callFrames)
78 { 78 {
79 InspectorTest.addResult("Script execution paused."); 79 InspectorTest.addResult("Script execution paused.");
80 InspectorTest.captureStackTrace(callFrames); 80 InspectorTest.captureStackTrace(callFrames);
81 InspectorTest.dumpBreakpointSidebarPane(); 81 InspectorTest.dumpBreakpointSidebarPane();
(...skipping 22 matching lines...) Expand all
104 } 104 }
105 }, 105 },
106 ]); 106 ]);
107 } 107 }
108 </script> 108 </script>
109 </head> 109 </head>
110 <body onload="runTest()"> 110 <body onload="runTest()">
111 <p>Tests disabling breakpoints.</p> 111 <p>Tests disabling breakpoints.</p>
112 </body> 112 </body>
113 </html> 113 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698