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

Unified Diff: LayoutTests/fast/dom/htmlcollection-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/htmlcollection-enumerated-properties.html
diff --git a/LayoutTests/fast/dom/htmlcollection-enumerated-properties.html b/LayoutTests/fast/dom/htmlcollection-enumerated-properties.html
index c9addb127ba180a782a524078f8fbd0d088d5949..a820b581c0af54f735e80fe12f55e320c85ae795 100644
--- a/LayoutTests/fast/dom/htmlcollection-enumerated-properties.html
+++ b/LayoutTests/fast/dom/htmlcollection-enumerated-properties.html
@@ -28,12 +28,13 @@ shouldBe("htmlCollection.length", "6");
// 2. If element is in the HTML namespace and has a name attribute whose value is neither the empty string
// nor is in result, append element's name attribute value to result.
// 3. Return result.
-var expectedEnumeratedProperties = ["0", "1" , "2", "3", "4", "5", "length", "id1", "name1", "id2", "id3", "id4", "name4", "name5", "name6", "item", "namedItem"];
+var expectedEnumeratedProperties = ["0", "1" , "2", "3", "4", "5", "length", "id1", "name1", "id2", "id3", "id4", "name4", "name5", "name6", "item", "namedItem"].sort();
var enumeratedProperties = [];
for (var property in htmlCollection) {
enumeratedProperties[enumeratedProperties.length] = property;
}
+enumeratedProperties.sort();
shouldBe("enumeratedProperties", "expectedEnumeratedProperties");
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698