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

Side by Side Diff: LayoutTests/inspector/sources/debugger/debugger-step-into-document-write.html

Issue 732593002: DevTools: Make StepInto work across script boundaries and Blink process tasks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added new test debugger-step-into-document-write.html Created 6 years, 1 month 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>
4 document.writeln("<script>\nfunction f1() {\n window.foo = true;\n}\nf1();\ n <" + "/script>");
5 </script>
6
7 <script>
8 console.assert(window.foo, "FAIL");
9 </script>
10
11 <script src="../../../http/tests/inspector/inspector-test.js"></script>
12 <script src="../../../http/tests/inspector/debugger-test.js"></script>
13
14 <script>
15
16 function test()
17 {
18 var numberOfStepInto = 9;
19
20 InspectorTest.startDebuggerTest(step1, true);
21
22 function step1()
23 {
24 InspectorTest.showScriptSource("debugger-step-into-document-write.html", step2);
25 }
26
27 function step2(sourceFrame)
28 {
29 InspectorTest.addResult("Script source was shown.");
30 InspectorTest.setBreakpoint(sourceFrame, 3, "", true);
31 InspectorTest.waitUntilPaused(step3);
32 InspectorTest.reloadPage(completeTest);
33 }
34
35 function step3()
36 {
37 var actions = ["Print"]; // First pause on breakpoint.
38 for (var i = 0; i < numberOfStepInto; ++i)
39 actions.push("StepInto", "Print");
40 actions.push("Resume");
41 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions);
42 }
43
44 function completeTest()
45 {
46 InspectorTest.completeDebuggerTest();
47 }
48 }
49
50 </script>
51 </head>
52
53 <body onload="runTest()">
54 <p>
55 Tests that debugger StepInto will step into inlined scripts created by document. write().
56 </p>
57 </body>
58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698