Module names and test names prevent QUnit operating
Hi,
I've just started working with QUnit this morning and I'm getting some unexplainable behaviour.
Calling a module anything other than "QUnit Test" and a test anything other than "Sample test" will prevent the tests from running at all.
This works (in Safari 4 and Firefox 3.6):
- var domReady = function(f) {document.addEventListener("DOMContentLoaded", f, false);};
domReady(function(){
module("QUnit Test");
test("Sample test", function()
{
expect(1);
same(1, 1, "same")
});
});
This doesn't (only change is the module name):
- var domReady = function(f) {document.addEventListener("DOMContentLoaded", f, false);};
domReady(function(){
module("Other Test");
test("Sample test", function()
{
expect(1);
same(1, 1, "same")
});
});
And neither does this (only change is the test name):
- var domReady = function(f) {document.addEventListener("DOMContentLoaded", f, false);};
domReady(function(){
module("QUnit Test");
test("Sample", function()
{
expect(1);
same(1, 1, "same")
});
});
Did I miss something in the documentation about module / test naming?
Cheers,
Scott