Opened 12 years ago

Closed 11 years ago

Last modified 8 years ago

#4811 closed defect (fixed)

tests.behavior fails in IE

Reported by: Adam Peller Owned by: alex
Priority: high Milestone: 1.1
Component: Core Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

testModule=tests.behavior

GROUP "tests.behavior" has 1 test to run 4 tests to run in 1 groups ------------------------------------------------------------ 
GROUP "t" has 4 tests to run 
PASSED test: ../../dojo/tests/behavior.html::t::add 
PASSED test: ../../dojo/tests/behavior.html::t::apply 
PASSED test: ../../dojo/tests/behavior.html::t::reapply
     _AssertFailure: [object Error]: assertEqual() failed: expected |3| but got |2| 
[object Error]
     ERROR IN:
  function topics(t){ t.is(0, topicCount); dojo.behavior.add({ ".foo": "/foo" }); dojo.behavior.apply(); t.is(2, topicCount); dojo.behavior.add({ ".foo": { "onfocus": "/foo" } }); dojo.behavior.apply(); t.is(2, topicCount); dojo.byId("blah").focus(); t.is(3, topicCount); dojo.byId("blah").blur(); dojo.byId("blah").focus(); t.is(4, topicCount); } 
FAILED test: ../../dojo/tests/behavior.html::t::topics 
PASSED test: ../../dojo/tests/behavior.html

Change History (4)

comment:1 Changed 11 years ago by Robert Coup

Also fails in IE7 with the same result (v1.1.0b3 first cut).

comment:2 Changed 11 years ago by Robert Coup

Owner: changed from anonymous to alex
Summary: tests.behavior fails in IE6tests.behavior fails in IE

As per wildbill/peller

comment:3 Changed 11 years ago by alex

Resolution: fixed
Status: newclosed

(In [13117]) seems focus()/blur() isn't synchronous on IE. Adjust test accordingly to get it to pass. Fixes #4811

comment:4 Changed 8 years ago by bill

In [26211]:

Fix test on IE8. Since IE remembers which element on a page was focused, but this test assumed that initially nothing was focused, this test would only run correctly the first time. Refs #4811.

Note: See TracTickets for help on using tickets.