Opened 8 years ago

Closed 7 years ago

#14249 closed defect (fixed)

FF8: robot/TimeTextBox test failure

Reported by: bill Owned by: Douglas Hays
Priority: high Milestone: 1.8
Component: Dijit - Form Version: 1.7.0
Keywords: dohfail Cc:
Blocked By: Blocking:

Description

From either runTests.html or directly running form/robot/TimeTextBox.html (and using firebug or web console to see the log), I get:

_AssertFailure: http://mac/clean/dojo/dojo.js:333 doh._AssertFailure: assertEqual() failed: expected T17:45:00 but got T18:00:00 with hint: same value as before
dojo.js (line 642)
doh._AssertFailure
console.error(Array.prototype.join.call(arguments, " "))
ERROR IN: (function () {var d = new doh.Deferred, w = dijit.byId("q1");dojo.global.formValue = null;w.focus();doh.robot.sequence(d.getTestErrback(function () {var popup = dijit.byId("q1_popup");doh.t(!popup || isHidden(popup), "popup hidden");}), 500);doh.robot.keyPress(dojo.keys.DOWN_ARROW, 1000, {});doh.robot.sequence(d.getTestErrback(function () {var popup = dijit.byId("q1_popup");doh.t(popup && isVisible(popup), "popup visible");}), 500);doh.robot.keyPress(dojo.keys.ESCAPE, 500, {});doh.robot.sequence(d.getTestCallback(function () {var popup = dijit.byId("q1_popup");doh.t(!popup || isHidden(popup), "popup hidden");var val = dojo.date.stamp.toISOString(w.get("value"), {selector: "time"});doh.is(val, "T18:00:00", "same value as before");}), 500);return d;})
dojo.js (line 642)
FAILED test: cancel 3028 ms

It was working on FF before upgrading to FF8.

Change History (3)

comment:1 Changed 7 years ago by bill

Keywords: dohfail added

comment:2 Changed 7 years ago by Douglas Hays

Milestone: 1.8

comment:3 Changed 7 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

In [27313]:

Fixes #14249. Weird FF8 bug where focus() doesn't set the input caret, and then a subsequent ESC key causes a form field reset. Workaround by setting the input caret with right arrow key.

Note: See TracTickets for help on using tickets.