Skip to content

Commit

Permalink
Only run QUnit tests if 'test' param is set.
Browse files Browse the repository at this point in the history
Also allowing for other parameters.
  • Loading branch information
supahgreg committed Jun 9, 2011
1 parent c313bf3 commit e1d0aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/content/js/aboutScriptish.js
Expand Up @@ -19,8 +19,8 @@ Cu.import("resource://scriptish/constants.js");
"use strict";

// Show about:scriptish?test
var param = window.location.href.split("?")[1];
if (param) {
var params = window.location.href.split("?")[1];
if (/(?:^|&)test(?:&|=|$)/i.test(params)) {
Cu.import("resource://scriptish/utils/q.js");
include("tests/runTests.js").then(function() {
$("main").style.display = "none";
Expand Down

0 comments on commit e1d0aa2

Please sign in to comment.