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

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: adjust test expectations Created 5 years, 10 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 shouldThrow('internals.forEach("not a function")');
32 shouldThrow('internals.forEach(function () { debug("callback called"); throw Err or("stop!"); })');
33 internals.forEach(function (value, key, object) {
34 debug(this + ', ' + value + ', ' + key + ', ' + object);
35 }, 'thisArg');
36 internals.forEach(function (value) {
37 debug(value + ': ' + this);
38 });
39 internals.forEach(function (value) {
40 debug(value + ': ' + this);
41 }, null);
42 internals.forEach(function (value) {
43 'use strict';
44 debug(value + ': ' + this);
45 });
46 internals.forEach(function (value) {
47 'use strict';
48 debug(value + ': ' + this);
49 }, null);
50 internals.forEach(function (value) {
51 'use strict';
52 debug(value + ': ' + typeof this);
53 }, 3.14);
54
31 </script> 55 </script>
32 </body> 56 </body>
33 </html> 57 </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