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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/js/iterable-object-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/js/iterable-object.html
diff --git a/LayoutTests/fast/js/iterable-object.html b/LayoutTests/fast/js/iterable-object.html
index 70e481af7491b1f4fe2aaafb565767a8d754e52c..c3e4a2ea723cb25c99e19ab2bfc5150a5c56a30e 100644
--- a/LayoutTests/fast/js/iterable-object.html
+++ b/LayoutTests/fast/js/iterable-object.html
@@ -28,6 +28,30 @@ for (var entry of internals.entries()) {
debug('entry = ' + entry);
}
+shouldThrow('internals.forEach("not a function")');
+shouldThrow('internals.forEach(function () { debug("callback called"); throw Error("stop!"); })');
+internals.forEach(function (value, key, object) {
+ debug(this + ', ' + value + ', ' + key + ', ' + object);
+}, 'thisArg');
+internals.forEach(function (value) {
+ debug(value + ': ' + this);
+});
+internals.forEach(function (value) {
+ debug(value + ': ' + this);
+}, null);
+internals.forEach(function (value) {
+ 'use strict';
+ debug(value + ': ' + this);
+});
+internals.forEach(function (value) {
+ 'use strict';
+ debug(value + ': ' + this);
+}, null);
+internals.forEach(function (value) {
+ 'use strict';
+ debug(value + ': ' + typeof this);
+}, 3.14);
+
</script>
</body>
</html>
« 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