community-app/test/functional/testInitializer.js
2014-03-02 04:09:27 -08:00

14 lines
415 B
JavaScript

define(['test/demoTest', 'test/scenarioTest'], function (demoTest, scenarioTest) {
var protocol = window.location.protocol;
if (protocol === 'file:') {
var match = /\?test_scenario=(\w+)/.exec(window.location.search);
if (match) {
scenarioTest.configure(match[1]);
return true;
} else {
demoTest.configure();
}
}
return false;
});