Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger / debug-inlined-scripts-expected.txt
blob9bd1633400975761222f7c0524df448ce468df2e
1 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags. Bug 54544.
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>
15 <script>
16 function f4()
18     return 0;
20 f4();
21 </script>
23 <script src="../../../http/tests/inspector/inspector-test.js"></script>
24 <script src="../../../http/tests/inspector/debugger-test.js"></script>
26 <script>
28 var test = function()
30     var panel = WebInspector.panels.sources;
31     InspectorTest.startDebuggerTest(step1, true);
33     function callstackStatus()
34     {
35         var statusElement = panel.sidebarPanes.callstack._statusMessageElement;
36         return statusElement ? statusElement.textContent : "";
37     }
39     function step1()
40     {
41         InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
42     }
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     }
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     }
61     function step4(sourceFrame)
62     {
63         InspectorTest.dumpSourceFrameContents(sourceFrame);
64         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
65     }
67     function step5(callFrames)
68     {
69         if (callFrames[0].location().lineNumber !== 9) {
70             InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
71             return;
72         }
74         InspectorTest.addResult("Script execution paused.");
75         InspectorTest.captureStackTrace(callFrames);
76         InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
77     }
79     function step6(sourceFrame)
80     {
81         InspectorTest.dumpSourceFrameContents(sourceFrame);
82         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step7));
83     }
85     function step7()
86     {
87         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
88     }
91 </script>
93 </head>
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>
101 </body>
102 </html>
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>
116 <script>
117 function f4()
119     return 0;
121 f4();
122 </script>
124 <script src="../../../http/tests/inspector/inspector-test.js"></script>
125 <script src="../../../http/tests/inspector/debugger-test.js"></script>
127 <script>
129 var test = function()
131     var panel = WebInspector.panels.sources;
132     InspectorTest.startDebuggerTest(step1, true);
134     function callstackStatus()
135     {
136         var statusElement = panel.sidebarPanes.callstack._statusMessageElement;
137         return statusElement ? statusElement.textContent : "";
138     }
140     function step1()
141     {
142         InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
143     }
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     }
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     }
162     function step4(sourceFrame)
163     {
164         InspectorTest.dumpSourceFrameContents(sourceFrame);
165         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
166     }
168     function step5(callFrames)
169     {
170         if (callFrames[0].location().lineNumber !== 9) {
171             InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
172             return;
173         }
175         InspectorTest.addResult("Script execution paused.");
176         InspectorTest.captureStackTrace(callFrames);
177         InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
178     }
180     function step6(sourceFrame)
181     {
182         InspectorTest.dumpSourceFrameContents(sourceFrame);
183         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step7));
184     }
186     function step7()
187     {
188         InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
189     }
192 </script>
194 </head>
196 <body onload="runTest()">
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>
202 </body>
203 </html>
205 ==Source frame contents end==
206 Page reloaded.