Skip to content

Commit 858ca34

Browse files
committed
Fix elements ordering test.
1 parent 10d0d9b commit 858ca34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,11 @@ test("elements() order", function() {
411411
errorLabelContainer: container,
412412
wrap: "li"
413413
});
414-
deepEqual( v.elements().get(), $("#order1, #order2, #order3, #order4, #order5, #order6").get(), "elements must be in document order" );
414+
deepEqual( v.elements().map(function() {
415+
return $(this).attr("id");
416+
}).get(), ["order1", "order2", "order3", "order4", "order5", "order6"], "elements must be in document order" );
415417
v.form();
416-
same( container.children().map(function() {
418+
deepEqual( container.children().map(function() {
417419
return $(this).attr("for");
418420
}).get(), ["order1", "order2", "order3", "order4", "order5", "order6"], "labels in error container must be in document order" );
419421
});
@@ -595,8 +597,6 @@ test("focusInvalid()", function() {
595597
});
596598
var v = $("#testForm1").validate();
597599
v.form();
598-
// have to explicitly show input elements with error class, they are hidden by testsuite styles
599-
inputs.show();
600600
v.focusInvalid();
601601
});
602602

0 commit comments

Comments
 (0)