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

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

Issue 2238003002: DevTools: migrate sources panel sidebar to views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: followed up on the watch test. Created 4 years, 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/resources/compiled.js"></script> 5 <script src="../../../http/tests/inspector/resources/compiled.js"></script>
6 <script> 6 <script>
7 7
8 var test = function() 8 var test = function()
9 { 9 {
10 InspectorTest.startDebuggerTest(step1); 10 InspectorTest.startDebuggerTest(step1);
(...skipping 24 matching lines...) Expand all
35 function onBreakpointsReady() 35 function onBreakpointsReady()
36 { 36 {
37 InspectorTest.dumpBreakpointSidebarPane("Breakpoints before reload:" ); 37 InspectorTest.dumpBreakpointSidebarPane("Breakpoints before reload:" );
38 waitForBreakpoints(); 38 waitForBreakpoints();
39 InspectorTest.reloadPage(onPageReloaded); 39 InspectorTest.reloadPage(onPageReloaded);
40 } 40 }
41 41
42 function waitForBreakpoints() 42 function waitForBreakpoints()
43 { 43 {
44 var breakpointAddCounter = 4; // Before source map loaded and after. 44 var breakpointAddCounter = 4; // Before source map loaded and after.
45 var jsBreakpoints = WebInspector.panels.sources.sidebarPanes.jsBreak points; 45 var jsBreakpoints = self.runtime.sharedInstance(WebInspector.JavaScr iptBreakpointsSidebarPane);
46 jsBreakpoints.didReceiveBreakpointLineForTest = function(uiSourceCod e) 46 jsBreakpoints.didReceiveBreakpointLineForTest = function(uiSourceCod e)
47 { 47 {
48 if (WebInspector.CompilerScriptMapping.StubProjectID === uiSourc eCode.project().id()) 48 if (WebInspector.CompilerScriptMapping.StubProjectID === uiSourc eCode.project().id())
49 return; 49 return;
50 if (!uiSourceCode.url().endsWith("source1.js")) 50 if (!uiSourceCode.url().endsWith("source1.js"))
51 return; 51 return;
52 --breakpointAddCounter; 52 --breakpointAddCounter;
53 if (breakpointAddCounter) 53 if (breakpointAddCounter)
54 return; 54 return;
55 breakpointSourcesReceived = true; 55 breakpointSourcesReceived = true;
(...skipping 24 matching lines...) Expand all
80 </script> 80 </script>
81 </head> 81 </head>
82 82
83 <body onload="runTest()"> 83 <body onload="runTest()">
84 <p> 84 <p>
85 Tests "reload" from within inspector window while on pause. 85 Tests "reload" from within inspector window while on pause.
86 </p> 86 </p>
87 87
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698