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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html

Issue 2139043002: DevTools: show alternate title onexpand of object in console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reuse dump() in tests Created 4 years, 4 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-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 6
7 function logToConsole() 7 function logToConsole()
8 { 8 {
9 console.log("Mutating object in a loop"); 9 console.log("Mutating object in a loop");
10 var object = { a: 0, b: 0 }; 10 var object = { a: 0, b: 0 };
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 console.log(obj); 69 console.log(obj);
70 70
71 console.log("Object with exactly 5 properties: expected to be lossless"); 71 console.log("Object with exactly 5 properties: expected to be lossless");
72 console.log({a:1, b:2, c:3, d:4, e:5}); 72 console.log({a:1, b:2, c:3, d:4, e:5});
73 73
74 console.log({null:null, undef:undefined, regexp: /^[regexp]$/g, bool: false} ); 74 console.log({null:null, undef:undefined, regexp: /^[regexp]$/g, bool: false} );
75 } 75 }
76 76
77 function test() 77 function test()
78 { 78 {
79 InspectorTest.evaluateInPage("logToConsole()", callback); 79 InspectorTest.evaluateInPage("logToConsole()", step2);
80 80
81 function callback() 81 function step2()
82 {
83 InspectorTest.dumpConsoleMessages(false, true);
84 InspectorTest.addResult("Expanded all messages");
85 InspectorTest.expandConsoleMessages(step3);
86 }
87
88 function step3()
82 { 89 {
83 InspectorTest.dumpConsoleMessages(false, true); 90 InspectorTest.dumpConsoleMessages(false, true);
84 InspectorTest.completeTest(); 91 InspectorTest.completeTest();
85 } 92 }
86 } 93 }
87 </script> 94 </script>
88 </head> 95 </head>
89 96
90 <body onload="runTest()"> 97 <body onload="runTest()">
91 <p> 98 <p>
92 Tests that console produces instant previews for arrays and objects. 99 Tests that console produces instant previews for arrays and objects.
93 </p> 100 </p>
94 101
95 </body> 102 </body>
96 </html> 103 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698