Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-breakpoints / dynamic-scripts-breakpoints.html
blobf8468e261b336d5c228f556ad9fbe52166abb843
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/workspace-test.js"></script>
6 <script src="../debugger/resources/load-dynamic-script.js"></script>
7 <script>
8 function foobar()
10 var i = 0;
11 var j = 0;
12 var k = i + j;
15 foobar();
16 </script>
17 <script>
18 function test()
20 WebInspector.breakpointManager._storage._breakpoints = {};
21 var panel = WebInspector.panels.sources;
23 InspectorTest.startDebuggerTest();
25 InspectorTest.showScriptSource("dynamic-scripts-breakpoints.html", didShowScriptSource);
27 function pathToFileName(path)
29 return path.substring(path.lastIndexOf("/") + 1);
32 function dumpBreakpointStorage()
34 var breakpointManager = WebInspector.breakpointManager;
35 var breakpoints = breakpointManager._storage._setting.get();
36 InspectorTest.addResult(" Dumping breakpoint storage");
37 for (var i = 0; i < breakpoints.length; ++i)
38 InspectorTest.addResult(" " + pathToFileName(breakpoints[i].sourceFileId) + ":" + breakpoints[i].lineNumber);
41 function didShowScriptSource(sourceFrame)
43 InspectorTest.addResult("Setting breakpoint:");
44 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBreakpoint.prototype, "_addResolvedLocation", breakpointResolved);
45 InspectorTest.setBreakpoint(sourceFrame, 11, "", true);
48 function breakpointResolved(location)
50 InspectorTest.waitUntilPaused(paused);
51 InspectorTest.addResult("Reloading page.");
52 InspectorTest.reloadPage(onPageReloaded);
55 function paused()
57 dumpBreakpointStorage();
58 InspectorTest.resumeExecution();
61 function onPageReloaded()
63 InspectorTest.completeDebuggerTest();
66 </script>
67 </head>
68 <body onload="runTest()">
69 <p>Tests that there is no exception in front-end on page reload when breakpoint is set in HTML document and some dynamic scripts are loaded before the script with the breakpoint is loaded.</p>
70 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a>
71 </body>
72 </html>