| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 var setSet = new Set(); | 43 var setSet = new Set(); |
| 44 setSet.add(weakSet); | 44 setSet.add(weakSet); |
| 45 | 45 |
| 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); | |
| 54 p.catch(function() {}); | |
| 55 | |
| 56 globals = [ | 53 globals = [ |
| 57 p, smb1, smb2, obj, map, weakMap, set, weakSet, | 54 Promise.reject(-0), smb1, smb2, obj, map, weakMap, set, weakSet, |
| 58 mapMap0, mapMap, setSet0, setSet, bigmap | 55 mapMap0, mapMap, setSet0, setSet, bigmap |
| 59 ]; | 56 ]; |
| 60 | 57 |
| 61 runTest(); | 58 runTest(); |
| 62 } | 59 } |
| 63 | 60 |
| 64 function test() | 61 function test() |
| 65 { | 62 { |
| 66 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); | 63 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); |
| 67 | 64 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 98 } | 95 } |
| 99 </script> | 96 </script> |
| 100 </head> | 97 </head> |
| 101 | 98 |
| 102 <body onload="onload()"> | 99 <body onload="onload()"> |
| 103 <p> | 100 <p> |
| 104 Tests that console properly displays information about ES6 features. | 101 Tests that console properly displays information about ES6 features. |
| 105 </p> | 102 </p> |
| 106 </body> | 103 </body> |
| 107 </html> | 104 </html> |
| OLD | NEW |