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