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