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

Unified Diff: LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html

Issue 906963002: layout tests: Fixes property enumeration tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html
diff --git a/LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html b/LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html
index 766151af04181c2fedd41aadaffcdb9e30306d8d..c829ae032fa796c3285cef9d57735146d0511f35 100644
--- a/LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html
+++ b/LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html
@@ -25,12 +25,13 @@ shouldBe("htmlFormControlsCollection.length", "6");
// - The supported property names consist of the non-empty values of all the id and name attributes of all the elements
// represented by the collection, in tree order, ignoring later duplicates, with the id of an element preceding its name if
// it contributes both, they differ from each other, and neither is the duplicate of an earlier entry.
-var expectedEnumeratedProperties = ["0", "1" , "2", "3", "4", "5", "length", "id1", "name1", "id2", "id3", "id4", "name4", "name5", "name6", "namedItem", "item"];
+var expectedEnumeratedProperties = ["0", "1" , "2", "3", "4", "5", "length", "id1", "name1", "id2", "id3", "id4", "name4", "name5", "name6", "namedItem", "item"].sort();
var enumeratedProperties = [];
for (var property in htmlFormControlsCollection) {
enumeratedProperties[enumeratedProperties.length] = property;
}
+enumeratedProperties.sort();
shouldBe("enumeratedProperties", "expectedEnumeratedProperties");
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698