Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-breakpoints / debugger-reload-breakpoints-with-source-maps.html
blobf167b2ed4577777a228884fb8c24c0aa1acb1533
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/resources/compiled.js"></script>
6 <script>
8 var test = function()
10 InspectorTest.startDebuggerTest(step1);
12 function step1()
14 InspectorTest.showScriptSource("source1.js", step2);
17 function step2(sourceFrame)
19 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBreakpoint.prototype, "_addResolvedLocation", didSetBreakpointInDebugger, true);
21 InspectorTest.setBreakpoint(sourceFrame, 14, "", true);
22 InspectorTest.setBreakpoint(sourceFrame, 15, "", true);
24 var counter = 2;
26 function didSetBreakpointInDebugger()
28 counter--;
29 if (!counter) {
30 //Both breakpoints are resolved before reload
31 InspectorTest.dumpBreakpointSidebarPane("Breakpoints before reload:");
32 waitForBreakpoints();
33 InspectorTest.reloadPage(onPageReloaded);
37 function waitForBreakpoints()
39 var breakpointAddCounter = 2;
40 var jsBreakpoints = WebInspector.panels.sources.sidebarPanes.jsBreakpoints;
41 jsBreakpoints.didReceiveBreakpointLineForTest = function(uiSourceCode)
43 if (WebInspector.CompilerScriptMapping.StubProjectID === uiSourceCode.project().id())
44 return;
45 --breakpointAddCounter;
46 if (breakpointAddCounter)
47 return;
48 breakpointSourcesReceived = true;
49 maybeCompleteTest();
55 var breakpointSourcesReceived = false;
56 var pageReloaded = false;
58 function onPageReloaded()
60 pageReloaded = true;
61 maybeCompleteTest();
64 function maybeCompleteTest()
66 if (!pageReloaded || !breakpointSourcesReceived)
67 return;
68 InspectorTest.dumpBreakpointSidebarPane("Breakpoints after reload:");
69 InspectorTest.completeDebuggerTest();
73 </script>
74 </head>
76 <body onload="runTest()">
77 <p>
78 Tests "reload" from within inspector window while on pause.
79 </p>
81 </body>
82 </html>