Skip to content

Commit

Permalink
Added guards around tests which are only for browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminplee committed Nov 27, 2010
1 parent c5443a0 commit d5581ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ asyncTest("module with async teardown", function() {
ok(true);
start();
});
}

module("asyncTest");

Expand All @@ -119,6 +118,7 @@ asyncTest("asyncTest", 2, function() {
start();
}, 13);
});
}

module("save scope", {
setup: function() {
Expand Down Expand Up @@ -218,6 +218,8 @@ test("raises", function() {
raises(thrower3, 'Custom!', 'throwing custom object');
});

if(typeof document !== "undefined") {

module("fixture");
test("setup", function() {
document.getElementById("qunit-fixture").innerHTML = "foobar";
Expand All @@ -226,6 +228,8 @@ test("basics", function() {
equal( document.getElementById("qunit-fixture").innerHTML, "test markup", "automatically reset" );
});

}

module("custom assertions");
(function() {
function mod2(value, expected, message) {
Expand Down

0 comments on commit d5581ab

Please sign in to comment.