| 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/console-test.js"></script> | 4 <script src="../../../http/tests/inspector/console-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 var thisObj; | 8 var thisObj; |
| 9 | 9 |
| 10 function testFunction() | 10 function testFunction() |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 { | 77 { |
| 78 var expression = expressions.shift(); | 78 var expression = expressions.shift(); |
| 79 if (!expression) { | 79 if (!expression) { |
| 80 InspectorTest.waitForRemoteObjectsConsoleMessages(tearDown); | 80 InspectorTest.waitForRemoteObjectsConsoleMessages(tearDown); |
| 81 return; | 81 return; |
| 82 } | 82 } |
| 83 | 83 |
| 84 function didEvaluate(result, exceptionDetails) | 84 function didEvaluate(result, exceptionDetails) |
| 85 { | 85 { |
| 86 InspectorTest.assertTrue(!exceptionDetails, "FAIL: was thrown. Expre
ssion: " + expression); | 86 InspectorTest.assertTrue(!exceptionDetails, "FAIL: was thrown. Expre
ssion: " + expression); |
| 87 WebInspector.panels.sources._saveToTempVariable(result); | 87 UI.panels.sources._saveToTempVariable(result); |
| 88 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext); | 88 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext); |
| 89 } | 89 } |
| 90 | 90 |
| 91 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr
ession, "console", true, undefined, undefined, undefined, undefined, didEvaluate
); | 91 UI.context.flavor(SDK.ExecutionContext).evaluate(expression, "console",
true, undefined, undefined, undefined, undefined, didEvaluate); |
| 92 } | 92 } |
| 93 | 93 |
| 94 function tearDown() | 94 function tearDown() |
| 95 { | 95 { |
| 96 InspectorTest.evaluateInPage("checkThisObject()", dumpConsoleMessages); | 96 InspectorTest.evaluateInPage("checkThisObject()", dumpConsoleMessages); |
| 97 } | 97 } |
| 98 | 98 |
| 99 function dumpConsoleMessages() | 99 function dumpConsoleMessages() |
| 100 { | 100 { |
| 101 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); | 101 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); |
| 102 InspectorTest.completeDebuggerTest(); | 102 InspectorTest.completeDebuggerTest(); |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 | 105 |
| 106 </script> | 106 </script> |
| 107 </head> | 107 </head> |
| 108 | 108 |
| 109 <body onload="onload()"> | 109 <body onload="onload()"> |
| 110 <p> | 110 <p> |
| 111 Tests saving objects to temporary variables while paused. | 111 Tests saving objects to temporary variables while paused. |
| 112 </p> | 112 </p> |
| 113 | 113 |
| 114 </body> | 114 </body> |
| 115 </html> | 115 </html> |
| OLD | NEW |