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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/dom/documents/dom-tree-accessors/document.forms.html

Issue 2360123002: Import wpt@3801ab5834101113e5f53bfb57e3c76b2b87ecbb (Closed)
Patch Set: Mark the failing test to Win only Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/imported/wpt/html/dom/documents/dom-tree-accessors/document.forms.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/documents/dom-tree-accessors/document.forms.html b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/documents/dom-tree-accessors/document.forms.html
index 29a91e0e21b3328e42999de028b2e8a277c97d0e..3bb89f498c14c40281904854d144af08e93e7f6d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/documents/dom-tree-accessors/document.forms.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/documents/dom-tree-accessors/document.forms.html
@@ -53,6 +53,13 @@ test(function() {
for (var p in document.forms) {
result.push(p);
}
+ // http://heycam.github.io/webidl/#property-enumeration
+ // If the object supports indexed properties, then the object’s supported
+ // property indices are enumerated first, in numerical order.
+ assert_array_equals(result.splice(0, 2), ["0", "1", "2"]);
+ // [...]
+ // Finally, any enumerable own properties or properties from the object’s
+ // prototype chain are then enumerated, in no defined order.
assert_array_equals(result.sort(), ["0", "1", "2", "item", "namedItem", "length"].sort())
}, "document.forms iteration")

Powered by Google App Engine
This is Rietveld 408576698