https://github.com/angular/angular
Raw File
Tip revision: 0ddae9b727240a111bf64d60615a75aebb711f4a authored by Igor Minar on 31 August 2016, 21:15:01 UTC
chore(release): bump Angular version to 2.0.0-rc.6 in package.json
Tip revision: 0ddae9b
protractor-perf.conf.js
// Make sure that the command line is read as the first thing
// as this could exit node if the help script should be printed.
require('./dist/all/e2e_util/perf_util').readCommandLine();

var CHROME_OPTIONS = {
  'args': ['--js-flags=--expose-gc', '--no-sandbox'],
  'perfLoggingPrefs': {
    'traceCategories': 'v8,blink.console,devtools.timeline,disabled-by-default-devtools.timeline'
  }
};

var BROWSER_CAPS = {
  LocalChrome: {
    'browserName': 'chrome',
    chromeOptions: CHROME_OPTIONS,
    loggingPrefs: {
      performance: 'ALL',
      browser: 'ALL'
    }
  },
  ChromeOnTravis: {
    browserName: 'chrome',
    chromeOptions: mergeInto(CHROME_OPTIONS, {
      'binary': process.env.CHROME_BIN
    }),
    loggingPrefs: {
      performance: 'ALL',
      browser: 'ALL'
    }
  }
};

exports.config = {
  onPrepare: function() {
    beforeEach(function() {
      browser.ignoreSynchronization = false;
    });
  },
  restartBrowserBetweenTests: true,
  allScriptsTimeout: 11000,
  specs: [
    'dist/all/**/e2e_test/**/*_perf.js'
  ],
  capabilities: process.env.TRAVIS ? BROWSER_CAPS.ChromeOnTravis : BROWSER_CAPS.LocalChrome,
  directConnect: true,
  baseUrl: 'http://localhost:8000/',
  framework: 'jasmine2',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 60000,
    print: function(msg) { console.log(msg)}
  },
  useAllAngular2AppRoots: true
};

function mergeInto(src, target) {
for (var prop in src) {
  target[prop] = src[prop];
}
return target;
}
back to top