Index: LayoutTests/fast/dom/htmlallcollection-enumerated-properties.html |
diff --git a/LayoutTests/fast/dom/htmlallcollection-enumerated-properties.html b/LayoutTests/fast/dom/htmlallcollection-enumerated-properties.html |
index d819990b42a9bebbe903b7b7010f0f432654a3c2..061d379467d7a6060d5835dbb2a1d16b386ef17c 100644 |
--- a/LayoutTests/fast/dom/htmlallcollection-enumerated-properties.html |
+++ b/LayoutTests/fast/dom/htmlallcollection-enumerated-properties.html |
@@ -35,12 +35,13 @@ shouldBe("htmlAllCollection.length", "35"); |
// embed, form, frame, frameset, iframe, img, and object 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", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "length", "description", "console", "aId1", "aName1", "appletId1", "appletName1", "mapId1", "areaId1", "areaName1", "areaId2", "areaName2", "embedId1", "embedName1", "formId1", "formName1", "inputId1", "inputName1", "inputId2", "iframeId1", "iframeName1", "imgId8", "imgName8", "objectId1", "objectName1", "selectId1", "selectName1", "optionId1", "item", "namedItem"]; |
+var expectedEnumeratedProperties = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "length", "description", "console", "aId1", "aName1", "appletId1", "appletName1", "mapId1", "areaId1", "areaName1", "areaId2", "areaName2", "embedId1", "embedName1", "formId1", "formName1", "inputId1", "inputName1", "inputId2", "iframeId1", "iframeName1", "imgId8", "imgName8", "objectId1", "objectName1", "selectId1", "selectName1", "optionId1", "item", "namedItem"].sort(); |
var enumeratedProperties = []; |
for (var property in htmlAllCollection) { |
enumeratedProperties[enumeratedProperties.length] = property; |
} |
+enumeratedProperties.sort(); |
shouldBe("enumeratedProperties", "expectedEnumeratedProperties"); |
</script> |
</body> |