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> |