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/sources-test.js"></script> | 5 <script src="../../http/tests/inspector/sources-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function onload() | 8 function onload() |
9 { | 9 { |
10 for (var i = 3; i < 8; ++i) | 10 for (var i = 3; i < 8; ++i) |
(...skipping 29 matching lines...) Expand all Loading... |
40 return; | 40 return; |
41 } | 41 } |
42 | 42 |
43 function didEvaluate(result, wasThrown) | 43 function didEvaluate(result, wasThrown) |
44 { | 44 { |
45 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression:
" + expression); | 45 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression:
" + expression); |
46 WebInspector.panels.sources._saveToTempVariable(result); | 46 WebInspector.panels.sources._saveToTempVariable(result); |
47 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext); | 47 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext); |
48 } | 48 } |
49 | 49 |
50 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr
ession, "console", true, undefined, undefined, undefined, didEvaluate); | 50 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr
ession, "console", true, undefined, undefined, undefined, undefined, didEvaluate
); |
51 } | 51 } |
52 | 52 |
53 function dumpConsoleMessages() | 53 function dumpConsoleMessages() |
54 { | 54 { |
55 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); | 55 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); |
56 InspectorTest.completeTest(); | 56 InspectorTest.completeTest(); |
57 } | 57 } |
58 | 58 |
59 evaluateNext(); | 59 evaluateNext(); |
60 } | 60 } |
61 | 61 |
62 </script> | 62 </script> |
63 </head> | 63 </head> |
64 | 64 |
65 <body onload="onload()"> | 65 <body onload="onload()"> |
66 <p> | 66 <p> |
67 Tests saving objects to temporary variables. | 67 Tests saving objects to temporary variables. |
68 </p> | 68 </p> |
69 | 69 |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |