Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / debugger / debug-inlined-scripts-expected.txt
1 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags. Bug 54544.
2
3 Debugger was enabled.
4 Script source was shown.
5 Script execution paused.
6 Call stack:
7     0)  (debug-inlined-scripts.html:3)
8 ==Source frame contents start==
9 <html>
10 <head>
11   <script>  function f1() { return 0; }; f1();  </script>     <script>function f2() { return 0; }</script><script>
12 function f3() { return 0; }
13 </script>
14
15 <script>
16 function f4()
17 {
18     return 0;
19 }
20 f4();
21 </script>
22
23 <script src="../../http/tests/inspector/inspector-test.js"></script>
24 <script src="../../http/tests/inspector/debugger-test.js"></script>
25
26 <script>
27
28 var test = function()
29 {
30     InspectorTest.startDebuggerTest(step1, true);
31
32     function step1()
33     {
34         InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
35     }
36
37     function step2(sourceFrame)
38     {
39         InspectorTest.addResult("Script source was shown.");
40         InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
41         InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
42         InspectorTest.waitUntilPaused(step3);
43         InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(InspectorTest));
44     }
45
46     function step3(callFrames)
47     {
48         InspectorTest.addResult("Script execution paused.");
49         InspectorTest.captureStackTrace(callFrames);
50         InspectorTest.showScriptSource("debug-inlined-scripts.html", step4);
51     }
52
53     function step4(sourceFrame)
54     {
55         InspectorTest.dumpSourceFrameContents(sourceFrame);
56         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
57     }
58
59     function step5(callFrames)
60     {
61         if (callFrames[0].location.lineNumber !== 9) {
62             InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
63             return;
64         }
65
66         InspectorTest.addResult("Script execution paused.");
67         InspectorTest.captureStackTrace(callFrames);
68         InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
69     }
70
71     function step6(sourceFrame)
72     {
73         InspectorTest.dumpSourceFrameContents(sourceFrame);
74         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step7));
75     }
76
77     function step7()
78     {
79         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
80     }
81 }
82
83 </script>
84
85 </head>
86
87 <body onload="runTest()">
88 <p>
89 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags.
90 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
91 </p>
92
93 </body>
94 </html>
95
96 ==Source frame contents end==
97 Script execution paused.
98 Call stack:
99     0) f4 (debug-inlined-scripts.html:10)
100     1)  (debug-inlined-scripts.html:12)
101 ==Source frame contents start==
102 <html>
103 <head>
104   <script>  function f1() { return 0; }; f1();  </script>     <script>function f2() { return 0; }</script><script>
105 function f3() { return 0; }
106 </script>
107
108 <script>
109 function f4()
110 {
111     return 0;
112 }
113 f4();
114 </script>
115
116 <script src="../../http/tests/inspector/inspector-test.js"></script>
117 <script src="../../http/tests/inspector/debugger-test.js"></script>
118
119 <script>
120
121 var test = function()
122 {
123     InspectorTest.startDebuggerTest(step1, true);
124
125     function step1()
126     {
127         InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
128     }
129
130     function step2(sourceFrame)
131     {
132         InspectorTest.addResult("Script source was shown.");
133         InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
134         InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
135         InspectorTest.waitUntilPaused(step3);
136         InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(InspectorTest));
137     }
138
139     function step3(callFrames)
140     {
141         InspectorTest.addResult("Script execution paused.");
142         InspectorTest.captureStackTrace(callFrames);
143         InspectorTest.showScriptSource("debug-inlined-scripts.html", step4);
144     }
145
146     function step4(sourceFrame)
147     {
148         InspectorTest.dumpSourceFrameContents(sourceFrame);
149         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
150     }
151
152     function step5(callFrames)
153     {
154         if (callFrames[0].location.lineNumber !== 9) {
155             InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
156             return;
157         }
158
159         InspectorTest.addResult("Script execution paused.");
160         InspectorTest.captureStackTrace(callFrames);
161         InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
162     }
163
164     function step6(sourceFrame)
165     {
166         InspectorTest.dumpSourceFrameContents(sourceFrame);
167         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step7));
168     }
169
170     function step7()
171     {
172         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
173     }
174 }
175
176 </script>
177
178 </head>
179
180 <body onload="runTest()">
181 <p>
182 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags.
183 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
184 </p>
185
186 </body>
187 </html>
188
189 ==Source frame contents end==
190 Page reloaded.
191 Debugger was disabled.
192