Use curl's js! plugin to load test.js since it doesn't have a define in the file.

(cherry picked from commit 078d78a70e664bb92d129791d99b97f48c6ccafc)


Former-commit-id: b684cc6ffad049f32c0f6f9f16511f3242c913a2
This commit is contained in:
Blaine Bublitz
2013-07-13 23:50:06 -07:00
committed by John-David Dalton
parent b87fec554f
commit ec12f7a5e7
2 changed files with 211 additions and 1 deletions

View File

@@ -96,7 +96,13 @@
lodashModule = lodash.noConflict();
lodashModule.moduleName = 'lodash';
}
require(['test.js'], function() {
var testPath = (window.curl
? ui.loaderPath.replace(/[\w.-]+$/, 'curl/plugin/js!')
: ''
) + 'test.js';
require([testPath], function() {
QUnit.start();
});
});