mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
These tests didn't really fit in the test folder as the docs app is mostly a separate entity from the AngularJS codebase.
41 lines
920 B
JavaScript
41 lines
920 B
JavaScript
'use strict';
|
|
|
|
exports.config = {
|
|
allScriptsTimeout: 11000,
|
|
|
|
specs: [
|
|
'build/docs/ptore2e/**/*.js',
|
|
'docs/app/e2e/docsAppE2E.js'
|
|
],
|
|
|
|
capabilities: {
|
|
'browserName': 'chrome'
|
|
},
|
|
|
|
baseUrl: 'http://localhost:8000/build/docs/',
|
|
|
|
framework: 'jasmine',
|
|
|
|
onPrepare: function() {
|
|
/* global angular: false, browser: false, jasmine: false */
|
|
|
|
// 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-' + exports.config.capabilities.browserName + '-', true, true));
|
|
},
|
|
|
|
jasmineNodeOpts: {
|
|
defaultTimeoutInterval: 30000,
|
|
showColors: false
|
|
}
|
|
};
|