Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #39 from rwjblue/add-async-before-starting-test
Browse files Browse the repository at this point in the history
Add a short delay before starting tests.
  • Loading branch information
rwjblue committed Feb 4, 2015
2 parents 916453f + 5434b98 commit 6e7fa32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions vendor/ember-cli-qunit/qunit-configuration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* globals jQuery,QUnit */

QUnit.config.autostart = false;
QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container' });
QUnit.config.urlConfig.push({ id: 'nojshint', label: 'Disable JSHint'});

Expand Down
6 changes: 5 additions & 1 deletion vendor/ember-cli-qunit/test-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ jQuery(document).ready(function() {
TestLoader.prototype.shouldLoadModule = function(moduleName) {
return moduleName.match(/[-_]test$/) || (!QUnit.urlParams.nojshint && moduleName.match(/\.jshint$/));
};
TestLoader.load();

setTimeout(function() {
TestLoader.load();
QUnit.start();
}, 250);
});

0 comments on commit 6e7fa32

Please sign in to comment.