| 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> | 5 <script> |
| 6 | 6 |
| 7 var globals = []; | 7 var globals = []; |
| 8 | 8 |
| 9 function log(current) | 9 function log(current) |
| 10 { | 10 { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 var bigmap = new Map(); | 46 var bigmap = new Map(); |
| 47 bigmap.set(" from str ", " to str "); | 47 bigmap.set(" from str ", " to str "); |
| 48 bigmap.set(undefined, undefined); | 48 bigmap.set(undefined, undefined); |
| 49 bigmap.set(null, null); | 49 bigmap.set(null, null); |
| 50 bigmap.set(42, 42); | 50 bigmap.set(42, 42); |
| 51 bigmap.set({foo:"from"}, {foo:"to"}); | 51 bigmap.set({foo:"from"}, {foo:"to"}); |
| 52 | 52 |
| 53 var p = Promise.reject(-0); | 53 var p = Promise.reject(-0); |
| 54 p.catch(function() {}); | 54 p.catch(function() {}); |
| 55 | 55 |
| 56 var map2 = new Map(); |
| 57 map2.set(41, 42); |
| 58 map2.set({foo: 1}, {foo: 2}); |
| 59 |
| 60 var iter1 = map2.values(); |
| 61 iter1.next(); |
| 62 |
| 63 var set2 = new Set(); |
| 64 set2.add(41); |
| 65 set2.add({foo: 1}); |
| 66 |
| 67 var iter2 = set2.keys(); |
| 68 iter2.next(); |
| 69 |
| 56 globals = [ | 70 globals = [ |
| 57 p, smb1, smb2, obj, map, weakMap, set, weakSet, | 71 p, smb1, smb2, obj, map, weakMap, set, weakSet, |
| 58 mapMap0, mapMap, setSet0, setSet, bigmap | 72 mapMap0, mapMap, setSet0, setSet, bigmap, |
| 73 map2.keys(), map2.values(), map2.entries(), |
| 74 set2.keys(), set2.values(), set2.entries(), |
| 75 iter1, iter2, |
| 59 ]; | 76 ]; |
| 60 | 77 |
| 61 runTest(); | 78 runTest(); |
| 62 } | 79 } |
| 63 | 80 |
| 64 function test() | 81 function test() |
| 65 { | 82 { |
| 66 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); | 83 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); |
| 67 | 84 |
| 68 function loopOverGlobals(current, total) | 85 function loopOverGlobals(current, total) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 98 } | 115 } |
| 99 </script> | 116 </script> |
| 100 </head> | 117 </head> |
| 101 | 118 |
| 102 <body onload="onload()"> | 119 <body onload="onload()"> |
| 103 <p> | 120 <p> |
| 104 Tests that console properly displays information about ES6 features. | 121 Tests that console properly displays information about ES6 features. |
| 105 </p> | 122 </p> |
| 106 </body> | 123 </body> |
| 107 </html> | 124 </html> |
| OLD | NEW |