Chromium Code Reviews| 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 bigmap.set(" from str ", " to str "); | 46 bigmap.set(" from str ", " to str "); |
| 47 bigmap.set(undefined, undefined); | 47 bigmap.set(undefined, undefined); |
| 48 bigmap.set(null, null); | 48 bigmap.set(null, null); |
| 49 bigmap.set(42, 42); | 49 bigmap.set(42, 42); |
| 50 bigmap.set({foo:"from"}, {foo:"to"}); | 50 bigmap.set({foo:"from"}, {foo:"to"}); |
| 51 bigmap.set(["from"], ["to"]); | 51 bigmap.set(["from"], ["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 genFunction = function *() { | |
| 57 yield 1; | |
| 58 yield 2; | |
| 59 } | |
| 60 var generator = genFunction(); | |
| 61 | |
| 56 globals = [ | 62 globals = [ |
| 57 p, smb1, smb2, obj, map, weakMap, set, weakSet, | 63 p, smb1, smb2, obj, map, weakMap, set, weakSet, |
| 58 mapMap0, mapMap, setSet0, setSet, bigmap, | 64 mapMap0, mapMap, setSet0, setSet, bigmap, p, generator |
|
lushnikov
2017/03/23 20:48:18
why do you add p one more time?
luoe
2017/03/23 20:55:56
Sorry, that's a typo! I didn't see that it was al
| |
| 59 ]; | 65 ]; |
| 60 | 66 |
| 61 runTest(); | 67 runTest(); |
| 62 } | 68 } |
| 63 | 69 |
| 64 function test() | 70 function test() |
| 65 { | 71 { |
| 66 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); | 72 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); |
| 67 | 73 |
| 68 function loopOverGlobals(current, total) | 74 function loopOverGlobals(current, total) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 } | 106 } |
| 101 </script> | 107 </script> |
| 102 </head> | 108 </head> |
| 103 | 109 |
| 104 <body onload="onload()"> | 110 <body onload="onload()"> |
| 105 <p> | 111 <p> |
| 106 Tests that console properly displays information about ES6 features. | 112 Tests that console properly displays information about ES6 features. |
| 107 </p> | 113 </p> |
| 108 </body> | 114 </body> |
| 109 </html> | 115 </html> |
| OLD | NEW |