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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/break-on-set-timeout-with-syntax-error.html

Issue 1893333004: [DevTools] Bring back InspectorInstrumenetation::didHandleEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
(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 <script src="../../../http/tests/inspector/console-test.js"></script>
6 <script>
7
8 function runSetTimeoutWithSyntaxError()
9 {
10 setTimeout({}, 0);
11 }
12
13 function executeSomeCode()
14 {
15 debugger; // should stop here not earlier
16 }
17
18 var test = function()
19 {
20 InspectorTest.startDebuggerTest(step1, true);
21
22 function step1()
23 {
24 WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._setBr eakpoint("instrumentation:timerFired");
25 InspectorTest.evaluateInPage("runSetTimeoutWithSyntaxError()", Inspector Test.waitUntilMessageReceived.bind(this, step2));
26 }
27
28 function step2()
29 {
30 var actions = [ "Print" ];
31 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
32 InspectorTest.evaluateInPage("executeSomeCode()");
33 }
34
35 function step3()
36 {
37 WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._remov eBreakpoint("instrumentation:timerFired");
38 InspectorTest.completeDebuggerTest();
39 }
40 }
41
42 </script>
43 </head>
44
45 <body onload="runTest()">
46 <p>
47 Tests that scheduled pause is cleared after processing event with empty handler.
48 </p>
49 <div id="myDiv"></div>
50 </body>
51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698