| 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/resolve-variable-names-compressed.js"></script> |
| 5 <script> | 6 <script> |
| 6 | 7 function test() |
| 7 function testFunction() | |
| 8 { | 8 { |
| 9 debugger; | 9 Runtime.experiments.enableForTest("resolveVariableNames"); |
| 10 } | |
| 11 | |
| 12 var test = function() | |
| 13 { | |
| 14 InspectorTest.startDebuggerTest(step1); | 10 InspectorTest.startDebuggerTest(step1); |
| 15 | 11 |
| 16 function step1() | 12 function step1() |
| 17 { | 13 { |
| 18 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | 14 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
| 19 } | 15 } |
| 20 | 16 |
| 21 function step2() | 17 function step2() |
| 22 { | 18 { |
| 23 InspectorTest.reloadPage(step3); | 19 InspectorTest.expandScopeVariablesSidebarPane(step3); |
| 24 } | 20 } |
| 25 | 21 |
| 26 function step3() | 22 function step3() |
| 27 { | 23 { |
| 24 InspectorTest.addResult(""); |
| 25 InspectorTest.dumpScopeVariablesSidebarPane(); |
| 28 InspectorTest.completeDebuggerTest(); | 26 InspectorTest.completeDebuggerTest(); |
| 29 } | 27 } |
| 30 } | 28 } |
| 31 | 29 |
| 32 </script> | 30 </script> |
| 33 </head> | 31 </head> |
| 34 | 32 |
| 35 <body onload="runTest()"> | 33 <body onload="runTest()"> |
| 36 <p> | 34 <p> |
| 37 Tests "reload" from within inspector window while on pause. | 35 Tests resolving variable names via source maps. |
| 38 </p> | 36 </p> |
| 39 | |
| 40 </body> | 37 </body> |
| 41 </html> | 38 </html> |
| OLD | NEW |