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

Side by Side Diff: LayoutTests/inspector/debugger/reveal-not-skipped.html

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 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="resources/script1.js"></script> 5 <script src="resources/script1.js"></script>
6 <script> 6 <script>
7 function throwAnException() 7 function throwAnException()
8 { 8 {
9 var i = 0; var j = i + 2; var k = j + i; 9 var i = 0; var j = i + 2; var k = j + i;
10 10
11 return unknown_var; 11 return unknown_var;
12 } 12 }
13 13
14 var test = function() 14 var test = function()
15 { 15 {
16 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExcepti onsState.PauseOnUncaughtExceptions); 16 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExcepti onsState.PauseOnUncaughtExceptions);
17 17
18 InspectorTest.runDebuggerTestSuite([ 18 InspectorTest.runDebuggerTestSuite([
19 function testRevealAfterPausedOnException(next) 19 function testRevealAfterPausedOnException(next)
20 { 20 {
21 InspectorTest.addResult("Showing script1 source..."); 21 InspectorTest.addResult("Showing script1 source...");
22 InspectorTest.showScriptSource("script1.js", step2); 22 InspectorTest.showScriptSource("script1.js", step2);
23 23
24 function step2() 24 function step2()
25 { 25 {
26 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.scripts.visibleView._uiSourceCode.name() + "'."); 26 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.sources.visibleView._uiSourceCode.name() + "'.");
27 InspectorTest.addResult("Throwing exception..."); 27 InspectorTest.addResult("Throwing exception...");
28 InspectorTest.evaluateInPage("setTimeout(throwAnException, 0)"); 28 InspectorTest.evaluateInPage("setTimeout(throwAnException, 0)");
29 InspectorTest.addSniffer(WebInspector.TabbedEditorContainer.prot otype, "showFile", step3); 29 InspectorTest.addSniffer(WebInspector.TabbedEditorContainer.prot otype, "showFile", step3);
30 } 30 }
31 31
32 function step3() 32 function step3()
33 { 33 {
34 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.scripts.visibleView._uiSourceCode.name() + "'."); 34 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.sources.visibleView._uiSourceCode.name() + "'.");
35 InspectorTest.addResult("Reloading page..."); 35 InspectorTest.addResult("Reloading page...");
36 InspectorTest.reloadPage(step4); 36 InspectorTest.reloadPage(step4);
37 } 37 }
38 38
39 function step4() 39 function step4()
40 { 40 {
41 InspectorTest.addResult("Showing script1 source..."); 41 InspectorTest.addResult("Showing script1 source...");
42 InspectorTest.showScriptSource("script1.js", step5); 42 InspectorTest.showScriptSource("script1.js", step5);
43 } 43 }
44 44
45 function step5() 45 function step5()
46 { 46 {
47 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.scripts.visibleView._uiSourceCode.name() + "'."); 47 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.sources.visibleView._uiSourceCode.name() + "'.");
48 InspectorTest.addResult("Throwing exception..."); 48 InspectorTest.addResult("Throwing exception...");
49 InspectorTest.evaluateInPage("setTimeout(throwAnException, 0)"); 49 InspectorTest.evaluateInPage("setTimeout(throwAnException, 0)");
50 InspectorTest.addSniffer(WebInspector.TabbedEditorContainer.prot otype, "showFile", step6); 50 InspectorTest.addSniffer(WebInspector.TabbedEditorContainer.prot otype, "showFile", step6);
51 } 51 }
52 52
53 function step6() 53 function step6()
54 { 54 {
55 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.scripts.visibleView._uiSourceCode.name() + "'."); 55 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.sources.visibleView._uiSourceCode.name() + "'.");
56 next(); 56 next();
57 } 57 }
58 }, 58 },
59 59
60 function testRevealAfterPrettyPrintWhenPaused(next) 60 function testRevealAfterPrettyPrintWhenPaused(next)
61 { 61 {
62 InspectorTest.addResult("Throwing exception..."); 62 InspectorTest.addResult("Throwing exception...");
63 InspectorTest.waitUntilPaused(step2); 63 InspectorTest.waitUntilPaused(step2);
64 function step2() 64 function step2()
65 { 65 {
66 InspectorTest.addResult("Showing script1 source..."); 66 InspectorTest.addResult("Showing script1 source...");
67 InspectorTest.showScriptSource("script1.js", step3); 67 InspectorTest.showScriptSource("script1.js", step3);
68 } 68 }
69 69
70 function step3() 70 function step3()
71 { 71 {
72 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.scripts.visibleView._uiSourceCode.name() + "'."); 72 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.sources.visibleView._uiSourceCode.name() + "'.");
73 InspectorTest.addResult("Formatting..."); 73 InspectorTest.addResult("Formatting...");
74 InspectorTest.addSniffer(WebInspector.TabbedEditorContainer.prot otype, "showFile", step4); 74 InspectorTest.addSniffer(WebInspector.TabbedEditorContainer.prot otype, "showFile", step4);
75 WebInspector.panels.scripts._toggleFormatSource(); 75 WebInspector.panels.sources._toggleFormatSource();
76 } 76 }
77 77
78 function step4() 78 function step4()
79 { 79 {
80 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.scripts.visibleView._uiSourceCode.name() + "'."); 80 InspectorTest.addResult("Script source was shown for '" + WebIns pector.panels.sources.visibleView._uiSourceCode.name() + "'.");
81 next(); 81 next();
82 } 82 }
83 } 83 }
84 ]); 84 ]);
85 } 85 }
86 </script> 86 </script>
87 </head> 87 </head>
88 <body onload="runTest()"> 88 <body onload="runTest()">
89 <p>Tests that certain user actions in scripts panel reveal execution line.</p> 89 <p>Tests that certain user actions in scripts panel reveal execution line.</p>
90 </body> 90 </body>
91 </html> 91 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698