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'); |
(...skipping 10 matching lines...) Expand all Loading... | |
21 } | 21 } |
22 | 22 |
23 for (var value of internals.values()) { | 23 for (var value of internals.values()) { |
24 debug('value = ' + value); | 24 debug('value = ' + value); |
25 } | 25 } |
26 | 26 |
27 for (var entry of internals.entries()) { | 27 for (var entry of internals.entries()) { |
28 debug('entry = ' + entry); | 28 debug('entry = ' + entry); |
29 } | 29 } |
30 | 30 |
31 internals.forEach(function (value, key, object) { | |
jsbell
2015/01/22 19:53:54
Can you add cases for:
* Calling forEach w/ a non
Jens Widell
2015/01/23 11:08:14
Done.
Also added cases for the callback function
| |
32 debug(this + ', ' + value + ', ' + key + ', ' + object); | |
33 }, 'thisArg'); | |
34 | |
31 </script> | 35 </script> |
32 </body> | 36 </body> |
33 </html> | 37 </html> |
OLD | NEW |