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

Unified Diff: LayoutTests/fast/dom/htmloptionscollection-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
« no previous file with comments | « LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698