Skip to main content

Bug Tracker

Side navigation

#3628 closed enhancement (wontfix)

Opened November 20, 2008 03:55PM UTC

Closed June 10, 2009 10:05AM UTC

Module lifecycle doesn't support asynchronous methods (+opera.postError)

Reported by: greut Owned by: joern
Priority: major Milestone: 1.3
Component: qunit Version: 1.2.6
Keywords: qunit, testrunner Cc: greut
Blocked by: Blocking:
Description

Hi, the following test, will not work with the current version of testrunner.js, because setup, callback and test aren't synchronized(see @5847).

module("Asynchronous setup", {
   setup: function() {
        window.global_is_evil = false;
        window.setTimeout(function() {
            window.global_is_evil = true;
            start();
        }, 1000);
        stop();
   }
});

test("Test after an asynchronous setup", function() {
   ok(window.global_is_evil, true, "Is global evil");
});

Find this patch that put each one into a sync call and the output takes also benefit of opera.postError (because console isn't supported).

Kind regards,

--

Yoan Blanc

Attachments (1)
Change History (3)

Changed November 20, 2008 04:02PM UTC by greut comment:1

ok(window.global_is_evil, true, "Is global evil");

should be:

equals(window.global_is_evil, true, "Is global evil");

Changed November 20, 2008 04:33PM UTC by flesler comment:2

cc: → greut
component: unfilledqunit
owner: fleslerjoern

Changed June 10, 2009 10:05AM UTC by joern comment:3

resolution: → wontfix
status: newclosed

Imporved the error handling in Opera as proposed in r6383.

Asynchronouse calls in lifecycles methods won't be supported.