Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: LayoutTests/inspector/sources/debugger/debugger-reload-breakpoints-with-source-maps.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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>
7
8 var test = function()
9 {
10 InspectorTest.startDebuggerTest(step1);
11
12 function step1()
13 {
14 InspectorTest.showScriptSource("source1.js", step2);
15 }
16
17 function step2(sourceFrame)
18 {
19 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBreakpoint .prototype, "_addResolvedLocation", didSetBreakpointInDebugger, true);
20
21 InspectorTest.setBreakpoint(sourceFrame, 14, "", true);
22 InspectorTest.setBreakpoint(sourceFrame, 15, "", true);
23
24 var counter = 2;
25
26 function didSetBreakpointInDebugger()
27 {
28 counter--;
29 if (!counter) {
30 //Both breakpoints are resolved before reload
31 InspectorTest.dumpBreakpointSidebarPane("Breakpoints before relo ad:");
32 InspectorTest.addSniffer(WebInspector.CompilerScriptMapping.prot otype, "_sourceMapLoaded", onSourceMapLoaded);
33 InspectorTest.reloadPage();
34 }
35 }
36 }
37
38 function onSourceMapLoaded()
39 {
40 InspectorTest.dumpBreakpointSidebarPane("Breakpoints after reload:");
41 InspectorTest.completeDebuggerTest();
42 }
43 }
44
45 </script>
46 </head>
47
48 <body onload="runTest()">
49 <p>
50 Tests "reload" from within inspector window while on pause.
51 </p>
52
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698