Index: LayoutTests/fast/dom/htmloptionscollection-enumerated-properties.html |
diff --git a/LayoutTests/fast/dom/htmloptionscollection-enumerated-properties.html b/LayoutTests/fast/dom/htmloptionscollection-enumerated-properties.html |
index 147cccf4b55d6eacd6d828c6fa26bca0826821d1..14cc13de83c2639533d470e974484e6bfb7bd649 100644 |
--- a/LayoutTests/fast/dom/htmloptionscollection-enumerated-properties.html |
+++ b/LayoutTests/fast/dom/htmloptionscollection-enumerated-properties.html |
@@ -24,12 +24,13 @@ shouldBe("htmlOptionsCollection.length", "5"); |
// - 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", "length", "selectedIndex", "id1", "name1a", "name1b", "id2", "name2", "id3", "name3", "id4", "namedItem", "add", "remove", "item"]; |
+var expectedEnumeratedProperties = ["0", "1", "2", "3", "4", "length", "selectedIndex", "id1", "name1a", "name1b", "id2", "name2", "id3", "name3", "id4", "namedItem", "add", "remove", "item"].sort(); |
var enumeratedProperties = []; |
for (var property in htmlOptionsCollection) { |
enumeratedProperties[enumeratedProperties.length] = property; |
} |
+enumeratedProperties.sort(); |
shouldBe("enumeratedProperties", "expectedEnumeratedProperties"); |
</script> |
</body> |