Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: karma.conf.js

Issue 1257233008: fix language_tests.js to use strict mode (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: add comment Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/browser/language_tests.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Karma configuration 1 // Karma configuration
2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) 2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT)
3 3
4 module.exports = function(config) { 4 module.exports = function(config) {
5 var harmony_flags = '--js-flags="' + [ 5 var harmony_flags = '--js-flags="' + [
6 '--harmony', 6 '--harmony',
7 ].join(' ') + '"'; 7 ].join(' ') + '"';
8 8
9 var configuration = { 9 var configuration = {
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 reporters: ['progress'], 52 reporters: ['progress'],
53 53
54 // web server port 54 // web server port
55 port: 9876, 55 port: 9876,
56 56
57 // enable / disable colors in the output (reporters and logs) 57 // enable / disable colors in the output (reporters and logs)
58 colors: true, 58 colors: true,
59 59
60 // level of logging 60 // level of logging
61 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR N || config.LOG_INFO || config.LOG_DEBUG 61 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR N || config.LOG_INFO || config.LOG_DEBUG
62 logLevel: config.LOG_DEBUG, 62 logLevel: config.LOG_INFO,
63 63
64 // enable / disable watching file and executing tests whenever any file chan ges 64 // enable / disable watching file and executing tests whenever any file chan ges
65 autoWatch: true, 65 autoWatch: true,
66 66
67 // start these browsers 67 // start these browsers
68 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc her 68 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc her
69 69
70 // FIXME(vsm): Once harmony is on by default, we can simply add the followin g: 70 // FIXME(vsm): Once harmony is on by default, we can simply add the followin g:
71 // browsers: ['Chrome'], 71 // browsers: ['Chrome'],
72 // and remove the custom launchers. 72 // and remove the custom launchers.
73 customLaunchers: { 73 customLaunchers: {
74 chrome_harmony: { 74 chrome_harmony: {
75 » base: 'Chrome', 75 base: 'Chrome',
76 flags: [ harmony_flags ], 76 flags: [ harmony_flags ],
77 }, 77 },
78 78
79 chrome_canary_harmony: { 79 chrome_canary_harmony: {
80 » base: 'ChromeCanary', 80 base: 'ChromeCanary',
81 flags: [ harmony_flags ], 81 flags: [ harmony_flags ],
82 }, 82 },
83 83
84 chrome_canary_travis: { 84 chrome_canary_travis: {
85 » base: 'ChromeCanary', 85 base: 'ChromeCanary',
86 flags: [ '--no-sandbox', harmony_flags ] 86 flags: [ '--no-sandbox', harmony_flags ]
87 }, 87 },
88 }, 88 },
89 browsers: ['chrome_canary_harmony'], 89 browsers: ['chrome_canary_harmony'],
90 90
91 // Continuous Integration mode 91 // Continuous Integration mode
92 // if true, Karma captures browsers, runs the tests and exits 92 // if true, Karma captures browsers, runs the tests and exits
93 singleRun: false, 93 singleRun: false,
94 }; 94 };
95 95
96 if (process.env.TRAVIS) { 96 if (process.env.TRAVIS) {
97 configuration.browsers = ['chrome_canary_travis']; 97 configuration.browsers = ['chrome_canary_travis'];
98 configuration.autoWatch = false; 98 configuration.autoWatch = false;
99 configuration.logLevel = config.LOG_DEBUG;
99 } 100 }
100 101
101 config.set(configuration); 102 config.set(configuration);
102 }; 103 };
OLDNEW
« no previous file with comments | « no previous file | test/browser/language_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698