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

Side by Side Diff: LayoutTests/inspector/sources/debugger/source-frame-count.html

Issue 206063003: DevTools: Extract SourcesEditor from SourcesPanel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 src="resources/script2.js"></script> 6 <script src="resources/script2.js"></script>
7 <script src="resources/script3.js"></script> 7 <script src="resources/script3.js"></script>
8 8
9 <script> 9 <script>
10 10
11 function test() 11 function test()
12 { 12 {
13 InspectorTest.runDebuggerTestSuite([ 13 InspectorTest.runDebuggerTestSuite([
14 function testSourceFramesCount(next) 14 function testSourceFramesCount(next)
15 { 15 {
16 var panel = WebInspector.panels.sources; 16 var panel = WebInspector.panels.sources;
17 var select = panel._navigator._filesSelectElement;
18 var sourceFrameCount = 0; 17 var sourceFrameCount = 0;
19 18
20 InspectorTest.showScriptSource("source-frame-count.html", step2); 19 InspectorTest.showScriptSource("source-frame-count.html", step2);
21 20
22 function step2() 21 function step2()
23 { 22 {
24 InspectorTest.showScriptSource("script1.js", step3); 23 InspectorTest.showScriptSource("script1.js", step3);
25 } 24 }
26 25
27 function step3() 26 function step3()
(...skipping 14 matching lines...) Expand all
42 InspectorTest.reloadPage(didReload); 41 InspectorTest.reloadPage(didReload);
43 } 42 }
44 43
45 function didReload() 44 function didReload()
46 { 45 {
47 InspectorTest.showScriptSource("script3.js", didShowScriptSource Again); 46 InspectorTest.showScriptSource("script3.js", didShowScriptSource Again);
48 } 47 }
49 48
50 function didShowScriptSourceAgain() 49 function didShowScriptSourceAgain()
51 { 50 {
52 InspectorTest.assertTrue(panel._editorContainer.visibleView._uiS ourceCode.originURL().indexOf("script3.js") !== -1); 51 InspectorTest.assertTrue(panel.visibleView._uiSourceCode.originU RL().indexOf("script3.js") !== -1);
lushnikov 2014/03/20 13:13:43 shouldn't it be sourcesEditor() here instead of vi
53 // There should be maximum 3 source frames shown: 52 // There should be maximum 3 source frames shown:
54 // - first one is the first shown (first tab added) 53 // - first one is the first shown (first tab added)
55 // - second one is the last viewed ("script2.js") 54 // - second one is the last viewed ("script2.js")
56 // - third one is explicitly selected script3.js. 55 // - third one is explicitly selected script3.js.
57 InspectorTest.assertEquals(true, sourceFrameCount <= 3, "too man y source frames created after page reload"); 56 InspectorTest.assertEquals(true, sourceFrameCount <= 3, "too man y source frames created after page reload");
58 next(); 57 next();
59 } 58 }
60 } 59 }
61 ]); 60 ]);
62 }; 61 };
(...skipping 21 matching lines...) Expand all
84 } 83 }
85 </script> 84 </script>
86 85
87 </head> 86 </head>
88 87
89 <body onload="runTest()"> 88 <body onload="runTest()">
90 <p>Tests that scripts panel does not create too many source frames.</p> 89 <p>Tests that scripts panel does not create too many source frames.</p>
91 90
92 </body> 91 </body>
93 </html> 92 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698