mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
Update the Travis and Jenkins configs to run protractor tests on Safari and Firefox as well, and make the Travis tests run output XML and turn off color. Fix tests which were failing in Firefox due to clear() not working as expected. Fix tests which were failing in Safari due to SafariDriver not understanding the minus key, and disable tests which SafariDriver has no support for.
37 lines
826 B
JavaScript
37 lines
826 B
JavaScript
exports.config = {
|
|
allScriptsTimeout: 11000,
|
|
|
|
specs: [
|
|
'build/docs/ptore2e/**/*.js',
|
|
'test/e2e/docsAppE2E.js'
|
|
],
|
|
|
|
capabilities: {
|
|
'browserName': 'chrome'
|
|
},
|
|
|
|
baseUrl: 'http://localhost:8000/build/docs/',
|
|
|
|
framework: 'jasmine',
|
|
|
|
onPrepare: function() {
|
|
// Disable animations so e2e tests run more quickly
|
|
var disableNgAnimate = function() {
|
|
angular.module('disableNgAnimate', []).run(function($animate) {
|
|
$animate.enabled(false);
|
|
});
|
|
};
|
|
|
|
browser.addMockModule('disableNgAnimate', disableNgAnimate);
|
|
|
|
require('jasmine-reporters');
|
|
jasmine.getEnv().addReporter(
|
|
new jasmine.JUnitXmlReporter('test_out/e2e-' + this.capabilities.browserName + '-', true, true));
|
|
},
|
|
|
|
jasmineNodeOpts: {
|
|
defaultTimeoutInterval: 30000,
|
|
showColors: false
|
|
}
|
|
};
|