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

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

Issue 2491983002: [DevTools] reworked JavaScriptBreakpointsSidebarPane.js (Closed)
Patch Set: addressed offline comments Created 4 years, 1 month 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 52
53 expectedBreakpointLocations = 53 expectedBreakpointLocations =
54 expectedBreakpointLocations.filter((location) => (location[0 ] != line && location[1] != column)); 54 expectedBreakpointLocations.filter((location) => (location[0 ] != line && location[1] != column));
55 if (expectedBreakpointLocations.length) 55 if (expectedBreakpointLocations.length)
56 return; 56 return;
57 breakpointSourcesReceived = true; 57 breakpointSourcesReceived--;
58 maybeCompleteTest(); 58 maybeCompleteTest();
59 } 59 }
60 } 60 }
61 61
62 } 62 }
63 63
64 var breakpointSourcesReceived = false; 64 var breakpointSourcesReceived = 2;
65 var pageReloaded = false; 65 var pageReloaded = false;
66 66
67 function onPageReloaded() 67 function onPageReloaded()
68 { 68 {
69 pageReloaded = true; 69 pageReloaded = true;
70 maybeCompleteTest(); 70 maybeCompleteTest();
71 } 71 }
72 72
73 function maybeCompleteTest() 73 function maybeCompleteTest()
74 { 74 {
75 if (!pageReloaded || !breakpointSourcesReceived) 75 if (!pageReloaded || !breakpointSourcesReceived <= 0)
76 return; 76 return;
77 InspectorTest.dumpBreakpointSidebarPane("Breakpoints after reload:"); 77 InspectorTest.dumpBreakpointSidebarPane("Breakpoints after reload:");
78 InspectorTest.completeDebuggerTest(); 78 InspectorTest.completeDebuggerTest();
79 } 79 }
80 } 80 }
81 81
82 </script> 82 </script>
83 </head> 83 </head>
84 84
85 <body onload="runTest()"> 85 <body onload="runTest()">
86 <p> 86 <p>
87 Tests "reload" from within inspector window while on pause. 87 Tests "reload" from within inspector window while on pause.
88 </p> 88 </p>
89 89
90 </body> 90 </body>
91 </html> 91 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698