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

Side by Side Diff: LayoutTests/inspector/debugger/debugger-suspend-active-dom-objects.html

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 months 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 6
7 function testFunction() { 7 function testFunction() {
8 setTimeout("void 0", 0); // Create a timer that will be suspended on a break point. 8 setTimeout("void 0", 0); // Create a timer that will be suspended on a break point.
9 debugger; 9 debugger;
10 } 10 }
11 11
12 function test() 12 function test()
13 { 13 {
14 WebInspector.showPanel("scripts"); 14 WebInspector.showPanel("sources");
15 InspectorTest.startDebuggerTest(startDebuggerTestCallback); 15 InspectorTest.startDebuggerTest(startDebuggerTestCallback);
16 16
17 function startDebuggerTestCallback() 17 function startDebuggerTestCallback()
18 { 18 {
19 InspectorTest.evaluateInConsole("setTimeout(testFunction, 0)", function( result) { 19 InspectorTest.evaluateInConsole("setTimeout(testFunction, 0)", function( result) {
20 InspectorTest.addResult("Set timer for test function."); 20 InspectorTest.addResult("Set timer for test function.");
21 }); 21 });
22 22
23 InspectorTest.waitUntilPaused(function(callFrames) { 23 InspectorTest.waitUntilPaused(function(callFrames) {
24 InspectorTest.evaluateInConsole("alert(1)", function(result) { 24 InspectorTest.evaluateInConsole("alert(1)", function(result) {
(...skipping 11 matching lines...) Expand all
36 <body onload="runTest()"> 36 <body onload="runTest()">
37 <p> 37 <p>
38 Tests that browser won't crash if user evaluates something in the console 38 Tests that browser won't crash if user evaluates something in the console
39 that would suspend active dom objects (e.g. if user attempts to show an alert) 39 that would suspend active dom objects (e.g. if user attempts to show an alert)
40 when script execution is paused on a breakpoint and all active dom objects 40 when script execution is paused on a breakpoint and all active dom objects
41 are already suspended. 41 are already suspended.
42 </p> 42 </p>
43 43
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/debugger/debugger-step-over.html ('k') | LayoutTests/inspector/debugger/dynamic-scripts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698