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

Side by Side Diff: tests/standalone/io/skipping_dart2js_compilations_test.dart

Issue 2951163002: Fix test.dart test. (Closed)
Patch Set: Created 3 years, 6 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // OtherResources=skipping_dart2js_compilations_helper.dart 5 // OtherResources=skipping_dart2js_compilations_helper.dart
6 6
7 /* 7 /*
8 * This test makes sure that the "skipping Dart2Js compilations if the output is 8 * This test makes sure that the "skipping Dart2Js compilations if the output is
9 * already up to date" feature does work as it should. 9 * already up to date" feature does work as it should.
10 * Therefore this test ensures that compilations are only skipped if the last 10 * Therefore this test ensures that compilations are only skipped if the last
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
147 147
148 Command makeCompilationCommand(String testName, FileUtils fileUtils) { 148 Command makeCompilationCommand(String testName, FileUtils fileUtils) {
149 var createFileScript = Platform.script 149 var createFileScript = Platform.script
150 .resolve('skipping_dart2js_compilations_helper.dart') 150 .resolve('skipping_dart2js_compilations_helper.dart')
151 .toFilePath(); 151 .toFilePath();
152 var executable = Platform.executable; 152 var executable = Platform.executable;
153 var arguments = [createFileScript, fileUtils.scriptOutputPath.toNativePath()]; 153 var arguments = [createFileScript, fileUtils.scriptOutputPath.toNativePath()];
154 var bootstrapDeps = [Uri.parse("file://${fileUtils.testSnapshotFilePath}")]; 154 var bootstrapDeps = [Uri.parse("file://${fileUtils.testSnapshotFilePath}")];
155 return Command.compilation('dart2js', fileUtils.testJsFilePath.toNativePath(), 155 return Command.compilation('dart2js', fileUtils.testJsFilePath.toNativePath(),
156 false, bootstrapDeps, executable, arguments, {}); 156 bootstrapDeps, executable, arguments, {},
157 alwaysCompile: false);
157 } 158 }
158 159
159 void main() { 160 void main() {
160 // This script is in [sdk]/tests/standalone/io. 161 // This script is in [sdk]/tests/standalone/io.
161 TestUtils.setDartDirUri(Platform.script.resolve('../../..')); 162 TestUtils.setDartDirUri(Platform.script.resolve('../../..'));
162 163
163 var fs_noTestJs = new FileUtils( 164 var fs_noTestJs = new FileUtils(
164 createJs: false, 165 createJs: false,
165 createJsDeps: true, 166 createJsDeps: true,
166 createDart: true, 167 createDart: true,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 throw error; 242 throw error;
242 }).then((_) { 243 }).then((_) {
243 cleanup(); 244 cleanup();
244 }); 245 });
245 } 246 }
246 247
247 // We need to wait some time to make sure that the files we 'touch' get a 248 // We need to wait some time to make sure that the files we 'touch' get a
248 // bigger timestamp than the old ones 249 // bigger timestamp than the old ones
249 new Timer(new Duration(seconds: 1), touchFilesAndRunTests); 250 new Timer(new Duration(seconds: 1), touchFilesAndRunTests);
250 } 251 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698