-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The QUnit HTML runner is enabled by default and will execute existing QUnit test pages and testsuites without the need for a separate configuration.
- Loading branch information
Showing
55 changed files
with
7,671 additions
and
1,141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
var path = require('path'); | ||
|
||
var ABS_URL = /^https?:\/\//; | ||
var isUrlAbsolute = function(url) { | ||
return ABS_URL.test(url); | ||
}; | ||
|
||
var initOpenUI5 = function (files, ui5Config, basePath) { | ||
|
||
files.unshift({pattern: __dirname + '/autorun.js', included: true, served: true, watched: false}); | ||
|
||
if (ui5Config.useMockServer) { | ||
files.unshift({pattern: __dirname + '/mockserver.js', included: true, served: true, watched: false}); | ||
} | ||
var ui5path; | ||
if (isUrlAbsolute(ui5Config.path)) { | ||
ui5path = ui5Config.path; | ||
} else { | ||
ui5path = path.resolve(basePath, ui5Config.path); | ||
} | ||
files.unshift({pattern: ui5path, included: true, watched: false, served: true}); | ||
files.unshift({pattern: __dirname + '/adapter.js', included: true, served: true, watched: false}); | ||
}; | ||
|
||
initOpenUI5.$inject = ['config.files', 'config.openui5', 'config.basePath']; | ||
|
||
module.exports = { | ||
'framework:openui5': ['factory', initOpenUI5] | ||
}; |
Oops, something went wrong.