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

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

Issue 1801873002: [DevTools] Fixed debugger-reload-breakpoints-with-source-maps.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
34 34
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 = 2; 44 var breakpointAddCounter = 4; // Before source map loaded and after.
45 var jsBreakpoints = WebInspector.panels.sources.sidebarPanes.jsBreak points; 45 var jsBreakpoints = WebInspector.panels.sources.sidebarPanes.jsBreak points;
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"))
51 return;
50 --breakpointAddCounter; 52 --breakpointAddCounter;
51 if (breakpointAddCounter) 53 if (breakpointAddCounter)
52 return; 54 return;
53 breakpointSourcesReceived = true; 55 breakpointSourcesReceived = true;
54 maybeCompleteTest(); 56 maybeCompleteTest();
55 } 57 }
56 } 58 }
57 59
58 } 60 }
59 61
(...skipping 18 matching lines...) Expand all
78 </script> 80 </script>
79 </head> 81 </head>
80 82
81 <body onload="runTest()"> 83 <body onload="runTest()">
82 <p> 84 <p>
83 Tests "reload" from within inspector window while on pause. 85 Tests "reload" from within inspector window while on pause.
84 </p> 86 </p>
85 87
86 </body> 88 </body>
87 </html> 89 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698