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

Side by Side Diff: LayoutTests/inspector/sources/debugger/frameworks-step-into-skips-setTimeout.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 src="resources/framework.js"></script>
6 <script>
7
8 var counter = 0;
9
10 function testFunction()
11 {
12 Framework.scheduleUntilDone(callback, 0);
13 }
14
15 function callback()
16 {
17 ++counter;
18 if (counter === 1)
19 stop();
20 return counter === 2;
21 }
22
23 function stop()
24 {
25 debugger;
26 }
27
28 function test()
29 {
30 var frameworkRegexString = "/framework\\.js$";
31 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri ng);
32
33 InspectorTest.startDebuggerTest(step1, true);
34
35 function step1()
36 {
37 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
38 }
39
40 function step2()
41 {
42 var actions = [
43 "Print", // debugger;
44 "StepOut", "Print",
45 "StepInto", "Print",
46 "StepInto", "Print", // Should NOT stop on setTimeout() inside frame work
47 ];
48 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
49 }
50
51 function step3()
52 {
53 InspectorTest.completeDebuggerTest();
54 }
55 }
56
57 </script>
58 </head>
59
60 <body onload="runTest()">
61 <input type='button' onclick='testFunction()' value='Test'/>
62 <p>
63 Tests that stepping into blackboxed framework will not pause on setTimeout() ins ide the framework.
64 </p>
65 </body>
66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698