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

Side by Side Diff: LayoutTests/inspector/sources/debugger/async-callstack-set-interval.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
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>
6 var intervalId;
7 var count = 0;
8
9 function testFunction()
10 {
11 intervalId = setInterval(callback, 0);
12 }
13
14 function callback()
15 {
16 if (count === 0) {
17 debugger;
18 } else if (count === 1) {
19 debugger;
20 } else {
21 clearInterval(intervalId);
22 debugger;
23 }
24 ++count;
25 }
26
27 function test()
28 {
29 var totalDebuggerStatements = 3;
30 var maxAsyncCallStackDepth = 4;
31 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt ackDepth);
32 }
33
34 </script>
35 </head>
36
37 <body onload="runTest()">
38 <p>
39 Tests asynchronous call stacks for setInterval.
40 </p>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698