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

Side by Side Diff: LayoutTests/inspector/console/console-save-to-temp-var.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 6
7 function onload() 7 function onload()
8 { 8 {
9 for (var i = 3; i < 8; ++i) 9 for (var i = 3; i < 8; ++i)
10 window["temp" + i] = "Reserved"; 10 window["temp" + i] = "Reserved";
(...skipping 26 matching lines...) Expand all
37 { 37 {
38 var expression = expressions.shift(); 38 var expression = expressions.shift();
39 if (!expression) { 39 if (!expression) {
40 dumpConsoleMessages(); 40 dumpConsoleMessages();
41 return; 41 return;
42 } 42 }
43 43
44 function didEvaluate(result, wasThrown) 44 function didEvaluate(result, wasThrown)
45 { 45 {
46 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression: " + expression); 46 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression: " + expression);
47 WebInspector.panels.sources._saveToTempVariable(result); 47 WebInspector.inspectorView.panel("sources")._saveToTempVariable(resu lt);
48 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext); 48 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext);
49 } 49 }
50 50
51 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr ession, "console", true, undefined, undefined, undefined, didEvaluate); 51 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr ession, "console", true, undefined, undefined, undefined, didEvaluate);
52 } 52 }
53 53
54 function dumpConsoleMessages() 54 function dumpConsoleMessages()
55 { 55 {
56 InspectorTest.dumpConsoleMessages(); 56 InspectorTest.dumpConsoleMessages();
57 InspectorTest.completeTest(); 57 InspectorTest.completeTest();
58 } 58 }
59 59
60 evaluateNext(); 60 evaluateNext();
61 } 61 }
62 62
63 </script> 63 </script>
64 </head> 64 </head>
65 65
66 <body onload="onload()"> 66 <body onload="onload()">
67 <p> 67 <p>
68 Tests saving objects to temporary variables. 68 Tests saving objects to temporary variables.
69 </p> 69 </p>
70 70
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698