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

Side by Side Diff: LayoutTests/inspector/console-dir-global.html

Issue 6282016: Merge 76683 - 2011-01-26 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 11 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
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-tests.js"></script> 4 <script src="../http/tests/inspector/console-tests.js"></script>
5 <script> 5 <script>
6 6
7 function doit() 7 function doit()
8 { 8 {
9 console.dir(window); 9 console.dir(window);
10 10
11 function callback(result) 11 function callback(result)
12 { 12 {
13 dumpObject(result); 13 dumpObject(result);
14 notifyDone(); 14 notifyDone();
15 } 15 }
16 16
17 evaluateInWebInspector("frontend_expandAndDumpConsoleMessages", callback); 17 evaluateInWebInspector("frontend_expandAndDumpConsoleMessages", callback);
18 } 18 }
19 19
20 function frontend_expandAndDumpConsoleMessages(testController) 20 function frontend_expandAndDumpConsoleMessages(testController)
21 { 21 {
22 // Need test to be async to expand console objects. 22 // Need test to be async to expand console objects.
23 testController.waitUntilDone(); 23 testController.waitUntilDone();
24 24
25 InspectorBackend.evaluate("window", "console", evalCallback); 25 InspectorBackend.evaluate("window", "console", false, evalCallback);
26 26
27 function evalCallback(result) 27 function evalCallback(result)
28 { 28 {
29 if (result.type === "error") 29 if (result.type === "error")
30 testController.notifyDone("Exception:" + result); 30 testController.notifyDone("Exception:" + result);
31 var objectProxy = WebInspector.RemoteObject.fromPayload(result); 31 var objectProxy = WebInspector.RemoteObject.fromPayload(result);
32 objectProxy.getProperties(false, true, getPropertiesCallback); 32 objectProxy.getProperties(false, true, getPropertiesCallback);
33 } 33 }
34 34
35 function getPropertiesCallback(properties) 35 function getPropertiesCallback(properties)
(...skipping 13 matching lines...) Expand all
49 </script> 49 </script>
50 </head> 50 </head>
51 51
52 <body onload="onload()"> 52 <body onload="onload()">
53 <p> 53 <p>
54 Tests that console dumps global object with properties. 54 Tests that console dumps global object with properties.
55 </p> 55 </p>
56 56
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console-command-clear.html ('k') | LayoutTests/inspector/console-format.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698