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

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

Issue 848673002: Add keys(), values() and entries() methods on iterable<> 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');
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>
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