Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 13 years ago by bill

Version: 0.50.4

comment:2 Changed 13 years ago by jkuhnert

Resolution: fixed
Status: newclosed

(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.

comment:3 Changed 13 years ago by jkuhnert

Version: 0.40.5
Note: See TracTickets for help on using tickets.