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

Side by Side Diff: LayoutTests/inspector/debugger/resources/pause-on-blocked-by-csp.js

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 function test() 1 function test()
2 { 2 {
3 WebInspector.showPanel("scripts"); 3 WebInspector.showPanel("sources");
4 4
5 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "setSt atus", setStatus, false); 5 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "setSt atus", setStatus, false);
6 6
7 function setStatus(status) 7 function setStatus(status)
8 { 8 {
9 // FIXME: For whatever reason, this isn't getting called consistently. 9 // FIXME: For whatever reason, this isn't getting called consistently.
10 // Commenting it out to avoid flakeyness. https://bugs.webkit.org/show_b ug.cgi?id=96867 10 // Commenting it out to avoid flakeyness. https://bugs.webkit.org/show_b ug.cgi?id=96867
11 // InspectorTest.addResult("Callstack status set to: '" + status + "'.") ; 11 // InspectorTest.addResult("Callstack status set to: '" + status + "'.") ;
12 } 12 }
13 13
14 InspectorTest.startDebuggerTest(step1); 14 InspectorTest.startDebuggerTest(step1);
15 15
16 function step1() 16 function step1()
17 { 17 {
18 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExc eptionsState.PauseOnUncaughtExceptions); 18 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExc eptionsState.PauseOnUncaughtExceptions);
19 InspectorTest.evaluateInPage("setTimeout(testAction, 0);"); 19 InspectorTest.evaluateInPage("setTimeout(testAction, 0);");
20 InspectorTest.waitUntilPaused(step2); 20 InspectorTest.waitUntilPaused(step2);
21 } 21 }
22 22
23 function step2(callFrames) 23 function step2(callFrames)
24 { 24 {
25 InspectorTest.captureStackTrace(callFrames); 25 InspectorTest.captureStackTrace(callFrames);
26 InspectorTest.completeDebuggerTest(); 26 InspectorTest.completeDebuggerTest();
27 } 27 }
28 } 28 }
29 29
30 window.addEventListener('load', runTest); 30 window.addEventListener('load', runTest);
OLDNEW
« no previous file with comments | « LayoutTests/inspector/debugger/properties-special.html ('k') | LayoutTests/inspector/debugger/reveal-not-skipped.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698