#2075 closed defect (fixed)
jum.assertEquals() fails comparing null and !null
Reported by: | Adam Peller | Owned by: | jkuhnert |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | TestFramework | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
and by fails, I mean it seems to throw an exception.
jum.assertEquals("name", null, null) works but jum.assertEquals("name", null, "foo") seems to throw errors:
[dojo-test] TEST: ERROR test 'date.parse' toString: TypeError?: Cannot call method "toSource" of null message: Cannot call method "toSource" of null/Users/peller/Documents/workspace-dojo/trunk/testtools/JsTestManager/jsunit_wrap.js:672 Cannot call method "toSource" of null
Change History (3)
comment:1 Changed 14 years ago by
Version: | 0.5 → 0.4 |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 14 years ago by
Version: | 0.4 → 0.5 |
---|
Note: See
TracTickets for help on using
tickets.
(In [6864]) Cleaned up some of the unit tests using the old "test<N>" syntax to give tests a name.
Fixes #2075 by checking for null first before calling toSource on an incoming object.