OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Test ES6 iterator works with DOM objects.'); | 8 description('Test ES6 iterator works with DOM objects.'); |
9 | 9 |
10 shouldBeUndefined('internals.iterator'); | 10 shouldBeUndefined('internals.iterator'); |
11 for (var value of internals) { | 11 for (var value of internals) { |
12 debug('value = ' + value); | 12 debug('value = ' + value); |
13 } | 13 } |
14 | 14 |
15 for (var value of internals[Symbol.iterator]()) { | 15 for (var value of internals[Symbol.iterator]()) { |
16 debug('value = ' + value); | 16 debug('value = ' + value); |
17 } | 17 } |
18 | 18 |
| 19 for (var key of internals.keys()) { |
| 20 debug('key = ' + key); |
| 21 } |
| 22 |
| 23 for (var value of internals.values()) { |
| 24 debug('value = ' + value); |
| 25 } |
| 26 |
| 27 for (var entry of internals.entries()) { |
| 28 debug('entry = ' + entry); |
| 29 } |
| 30 |
19 </script> | 31 </script> |
20 </body> | 32 </body> |
21 </html> | 33 </html> |
OLD | NEW |