Skip to main content

Bug Tracker

Side navigation

#5620 closed enhancement (invalid)

Opened December 09, 2009 11:43AM UTC

Closed February 05, 2010 09:39PM UTC

beforeModule function for QUnit

Reported by: eeroan Owned by: joern
Priority: trivial Milestone: 1.4
Component: qunit Version: 1.4a1
Keywords: Cc:
Blocked by: Blocking:
Description

It would be nice to say like this:

module('with empty form', { beforeModule: clearForm });

But there is no way to tell what to do before certain module.

in qunit.js on line 56 (declaration of module function) this could be added:

if(testEnvironment && testEnvironment.beforeModule) {

testEnvironment.beforeModule(name);

}

Attachments (0)
Change History (3)

Changed December 10, 2009 02:49AM UTC by DumpsterDoggy comment:1

I might not be understanding the full intent, but isn't that what setup is for?

Changed December 22, 2009 09:44PM UTC by eeroan comment:2

setup is called before every test. There are things that are required to do only once before a certain module.

Changed February 05, 2010 09:39PM UTC by john comment:3

resolution: → invalid
status: newclosed

We're moving QUnit-related bugs off to the new QUnit issue tracker:

http://github.com/jquery/qunit/issues

Please re-post the issue there.