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

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

Issue 312143003: This fixes bug with trying to get properties of non-object (symbol). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: REBASE Created 6 years, 6 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 onload() 7 function onload()
8 { 8 {
9 var obj = new Object(); 9 var obj = new Object();
10 obj["a"] = 1; 10 obj["a"] = 1;
11 obj[Symbol()] = 2; 11 obj[Symbol()] = 2;
12 obj[Symbol("a")] = 3; 12 obj[Symbol("a")] = 3;
13 obj[Symbol("a")] = Symbol.iterator; 13 obj[Symbol("a")] = Symbol.iterator;
14 obj[Symbol.iterator] = Symbol("foo"); 14 obj[Symbol.iterator] = Symbol("foo");
15 console.dir(obj); 15 console.dir(obj);
16 16
17 // This used to crash in debug build.
18 console.dir(Symbol());
19
17 runTest(); 20 runTest();
18 } 21 }
19 22
20 function test() 23 function test()
21 { 24 {
22 InspectorTest.expandConsoleMessages(dumpConsoleMessages); 25 InspectorTest.expandConsoleMessages(dumpConsoleMessages);
23 26
24 function dumpConsoleMessages() 27 function dumpConsoleMessages()
25 { 28 {
26 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textConten tWithLineBreaks); 29 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textConten tWithLineBreaks);
27 InspectorTest.completeTest(); 30 InspectorTest.completeTest();
28 } 31 }
29 } 32 }
30 33
31 </script> 34 </script>
32 </head> 35 </head>
33 36
34 <body onload="onload()"> 37 <body onload="onload()">
35 <p> 38 <p>
36 Tests that console logging dumps proper messages. 39 Tests that console logging dumps proper messages.
37 </p> 40 </p>
38 41
39 </body> 42 </body>
40 </html> 43 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console/console-dir.html ('k') | LayoutTests/inspector/console/console-dir-es6-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698