| OLD | NEW |
| 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> | 7 <script> |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 InspectorTest.runDebuggerTestSuite([ | 10 InspectorTest.runDebuggerTestSuite([ |
| 11 function testSourceFramesCount(next) | 11 function testSourceFramesCount(next) |
| 12 { | 12 { |
| 13 var panel = WebInspector.panels.scripts; | 13 var panel = WebInspector.panels.sources; |
| 14 var sourceFrameCount = 0; | 14 var sourceFrameCount = 0; |
| 15 | 15 |
| 16 InspectorTest.showScriptSource("script1.js", didShowScriptSources); | 16 InspectorTest.showScriptSource("script1.js", didShowScriptSources); |
| 17 | 17 |
| 18 function didShowScriptSources() | 18 function didShowScriptSources() |
| 19 { | 19 { |
| 20 InspectorTest.reloadPage(didReload); | 20 InspectorTest.reloadPage(didReload); |
| 21 } | 21 } |
| 22 | 22 |
| 23 function didReload() | 23 function didReload() |
| (...skipping 24 matching lines...) Expand all Loading... |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 ]); | 50 ]); |
| 51 }; | 51 }; |
| 52 </script> | 52 </script> |
| 53 </head> | 53 </head> |
| 54 <body onload="runTest()"> | 54 <body onload="runTest()"> |
| 55 <p>Tests that scripts panel does not create too many source frames.</p> | 55 <p>Tests that scripts panel does not create too many source frames.</p> |
| 56 </body> | 56 </body> |
| 57 </html> | 57 </html> |
| OLD | NEW |