Opened 11 years ago

Closed 11 years ago

#7720 closed defect (fixed)

Unit test failure for Form.html getValues (IE)

Reported by: bill Owned by: bill
Priority: high Milestone: 1.2
Component: Dijit Version: 1.2beta
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

[object Error]     ERROR IN:  function getValues(){ 
var values = dijit.byId("myForm").attr('value'); // FF3 sticks in some tabs and newlines that mess up the equality check 
// Need better way to compare two HTML trees but for now do this. values.richtext = values.richtext.replace(/[\n\t]/, "", "g");
 doh.is( dojo.toJson(original), dojo.toJson(values) ); } FAILED test: ../../dijit/tests/form/Form.html::dijit.form.Form::getValues 20 ms

Change History (3)

comment:1 Changed 11 years ago by bill

Description: modified (diff)
Milestone: tbd1.2

Problem is race condition with IE initializing.

Apparently on the editor disabled==true until initialization finishes, thus the Editor widget is skipped on the first getValues() call. (But even if it weren't skipped I guess it would give the wrong answer.)

comment:2 Changed 11 years ago by bill

Owner: set to bill
Status: newassigned

Fixed by [15325] but I mistyped the ticket # in the checkin comment :-(.

comment:3 Changed 11 years ago by bill

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.