Opened 14 years ago
Closed 14 years ago
#3719 closed defect (duplicate)
0.9: Base array tests fail on IE 6
Reported by: | Jared Jurkiewicz | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Core | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
PASSED test: testIndexOfFromIndex [object Error] ERROR IN: function testLastIndexOf(t){ var foo = [128, 256, 512]; var bar = ["aaa", "bbb", "aaa", "ccc"]; t.assertTrue(dojo.indexOf([45, 56, 85], 56) == 1); t.assertTrue(dojo.indexOf([Number, String, Date], String) == 1); t.assertTrue(dojo.lastIndexOf(foo, foo[1]) == 1); t.assertTrue(dojo.lastIndexOf(foo, foo[2]) == 2); t.assertTrue(dojo.lastIndexOf(bar, bar[1]) == 1); t.assertTrue(dojo.lastIndexOf(bar, bar[2]) == 2); t.assertTrue(dojo.lastIndexOf(bar, bar[0]) == 2); } FAILED test: testLastIndexOf [object Error] ERROR IN: function testLastIndexOfFromIndex(t){ FIXME: what happens w/ negative indexes? t.assertEqual(1, dojo.lastIndexOf([45, 56, 85], 56, 1)); t.assertEqual(-1, dojo.lastIndexOf([45, 56, 85], 85, 1)); } FAILED test: testLastIndexOfFromIndex PASSED test: testForEach
see #3699