#12463 closed defect (fixed)
allow return of dojo.Deferred (in addition to doh.Deferred) from test modules
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.5.2 |
Component: | TestFramework | Version: | 1.6.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
It would be convenient to return a dojo.Deferred from some async tests rather than a doh.Deferred. Actually, some of the tests are already doing that, like the editor tests:
{ name: "wait for editors to load", timeout: 5000, runTest: function(){ return new dojo.DeferredList( dijit.registry.filter(function(w){ return w.onLoadDeferred; }).map(function(w){ return w.onLoadDeferred; }) ); } }
Turns out that code isn't working.
Use duck-typing so that DOH isn't so picky about whether it gets a doh.Deferred or a dojo.Deferred (or some other object that supports the same API).
Change History (8)
comment:1 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 9 years ago by
Milestone: | 1.6.1 → 1.5.2 |
---|
comment:141 Changed 8 years ago by
See also #16388, which adds support for dojo/Deferred, as opposed to this ticket which adds support for dojo/_base/Deferred.
Note: See
TracTickets for help on using
tickets.
(In [24052]) Allow async tests to return any object supporting the Deferred API, not just a doh.Deferred, fixes #12463, refs #7681 ([23082]), !strict.