Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1097)

Side by Side Diff: LayoutTests/fast/js/iterable-object.html

Issue 807263007: IDL: Add forEach() method to iterable<>/maplike<>/setlike<> interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/js/iterable-object-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/js/iterable-object-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698