Skip to content

Commit 4cace0b

Browse files
Be more precise with some tests Chrome dislikes.
1 parent d22ccd9 commit 4cace0b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/unit/dom_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ new Test.Unit.Runner({
7070
'getElementById and $ should return the same element');
7171

7272
this.assertEnumEqual([ $('testdiv'), $('container') ], $('testdiv', 'container'));
73-
this.assertEnumEqual([ $('testdiv'), undefined, $('container') ],
73+
this.assertEnumEqual([ $('testdiv'), null, $('container') ],
7474
$('testdiv', 'noWayThisIDExists', 'container'));
7575
var elt = $('testdiv');
7676
this.assertIdentical(elt, $(elt));
@@ -1103,10 +1103,10 @@ new Test.Unit.Runner({
11031103
testElementWriteAttributeWithIssues: function() {
11041104
var input = $('write_attribute_input').writeAttribute({maxlength: 90, tabindex: 10}),
11051105
td = $('write_attribute_td').writeAttribute({valign: 'bottom', colspan: 2, rowspan: 2});
1106-
this.assertEqual(90, input.readAttribute('maxlength'));
1107-
this.assertEqual(10, input.readAttribute('tabindex'));
1108-
this.assertEqual(2, td.readAttribute('colspan'));
1109-
this.assertEqual(2, td.readAttribute('rowspan'));
1106+
this.assertEqual("90", input.readAttribute('maxlength'));
1107+
this.assertEqual("10", input.readAttribute('tabindex'));
1108+
this.assertEqual("2", td.readAttribute('colspan'));
1109+
this.assertEqual("2", td.readAttribute('rowspan'));
11101110
this.assertEqual('bottom', td.readAttribute('valign'));
11111111

11121112
var p = $('write_attribute_para'), label = $('write_attribute_label');

0 commit comments

Comments
 (0)