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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/js-with-inline-stylesheets.html

Issue 2776523004: [DevTools] fixed some breakpoints-related tests (Closed)
Patch Set: more tests Created 3 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/inspector/sources/debugger-breakpoints/set-conditional-breakpoint.html ('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 5
6 <script> 6 <script>
7 7
8 function testFunction() 8 function testFunction()
9 { 9 {
10 var x = Math.sqrt(10); 10 var x = Math.sqrt(10);
11 return x; 11 return x;
12 } 12 }
13 13
14 var test = function() 14 var test = function()
15 { 15 {
16 var currentSourceFrame; 16 var currentSourceFrame;
17 InspectorTest.setQuiet(true); 17 InspectorTest.setQuiet(true);
18 var pageURL = "js-with-inline-stylesheets.html"; 18 var pageURL = "js-with-inline-stylesheets.html";
19 InspectorTest.runDebuggerTestSuite([ 19 InspectorTest.runDebuggerTestSuite([
20 function testSetBreakpoint(next) 20 function testSetBreakpoint(next)
21 { 21 {
22 InspectorTest.showScriptSource(pageURL, didShowScriptSource); 22 InspectorTest.showScriptSource(pageURL, didShowScriptSource);
23 23
24 function didShowScriptSource(sourceFrame) 24 function didShowScriptSource(sourceFrame)
25 { 25 {
26 currentSourceFrame = sourceFrame; 26 currentSourceFrame = sourceFrame;
27 InspectorTest.addResult("Script source was shown."); 27 InspectorTest.addResult("Script source was shown.");
28 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); 28 InspectorTest.waitUntilPaused(didPause);
29 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 29 InspectorTest.createNewBreakpoint(currentSourceFrame, 9, "", tru e)
30 .then(() => InspectorTest.waitBreakpointSidebarPane())
31 .then(() => InspectorTest.runTestFunction());
30 } 32 }
31 33
32 function didPause(callFrames) 34 function didPause(callFrames)
33 { 35 {
34 InspectorTest.addResult("Script execution paused."); 36 InspectorTest.addResult("Script execution paused.");
35 InspectorTest.captureStackTrace(callFrames); 37 InspectorTest.captureStackTrace(callFrames);
36 InspectorTest.dumpBreakpointSidebarPane(); 38 InspectorTest.dumpBreakpointSidebarPane();
37 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved ); 39 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved );
38 InspectorTest.removeBreakpoint(currentSourceFrame, 9); 40 InspectorTest.removeBreakpoint(currentSourceFrame, 9);
39 } 41 }
(...skipping 22 matching lines...) Expand all
62 64
63 </head> 65 </head>
64 66
65 <body onload="runTest()"> 67 <body onload="runTest()">
66 <p> 68 <p>
67 Tests that JS sourcemapping for inline scripts followed by inline stylesheets do es not break. 69 Tests that JS sourcemapping for inline scripts followed by inline stylesheets do es not break.
68 </p> 70 </p>
69 71
70 </body> 72 </body>
71 </html> 73 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/set-conditional-breakpoint.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698