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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /* 5 /*
6 * This test makes sure that the "skipping Dart2Js compilations if the output is 6 * This test makes sure that the "skipping Dart2Js compilations if the output is
7 * already up to date" feature does work as it should. 7 * already up to date" feature does work as it should.
8 * Therefore this test ensures that compilations are only skipped if the last 8 * Therefore this test ensures that compilations are only skipped if the last
9 * modified date of the output of a dart2js compilation is newer than 9 * modified date of the output of a dart2js compilation is newer than
10 * - the the dart application to compile (including it's dependencies) 10 * - the the dart application to compile (including it's dependencies)
11 * - the dart2js snapshot 11 * - the dart2js snapshot
12 * Furtheremore it ensure that a compilations is not skipped if any of the 12 * Furtheremore it ensure that a compilations is not skipped if any of the
13 * necessary files could not be found (dart2js snapshots, previous dart2js 13 * necessary files could not be found (dart2js snapshots, previous dart2js
14 * output (+deps file), dart application) 14 * output (+deps file), dart application)
15 */ 15 */
16 16
17 import "package:expect/expect.dart";
17 import 'dart:async'; 18 import 'dart:async';
18 import 'dart:io'; 19 import 'dart:io';
19 import 'dart:uri'; 20 import 'dart:uri';
20 import '../../../tools/testing/dart/test_suite.dart' as suite; 21 import '../../../tools/testing/dart/test_suite.dart' as suite;
21 import '../../../tools/testing/dart/test_runner.dart' as runner; 22 import '../../../tools/testing/dart/test_runner.dart' as runner;
22 import '../../../tools/testing/dart/test_options.dart' as options; 23 import '../../../tools/testing/dart/test_options.dart' as options;
23 import '../../../tools/testing/dart/status_file_parser.dart' as status; 24 import '../../../tools/testing/dart/status_file_parser.dart' as status;
24 25
25 /** 26 /**
26 * This class is reponsible for setting up the files necessary for this test 27 * This class is reponsible for setting up the files necessary for this test
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 runTest("fs_notUpToDate_snapshot", fs_notUpToDate_snapshot, true); 218 runTest("fs_notUpToDate_snapshot", fs_notUpToDate_snapshot, true);
218 runTest("fs_notUpToDate_dart", fs_notUpToDate_dart, true); 219 runTest("fs_notUpToDate_dart", fs_notUpToDate_dart, true);
219 // This is the only test where all dependencies are present and the test.js 220 // This is the only test where all dependencies are present and the test.js
220 // file is newer than all the others. So we pass 'false' for shouldRun. 221 // file is newer than all the others. So we pass 'false' for shouldRun.
221 runTest("fs_upToDate", fs_upToDate, false); 222 runTest("fs_upToDate", fs_upToDate, false);
222 } 223 }
223 // We need to wait some time to make sure that the files we 'touch' get a 224 // We need to wait some time to make sure that the files we 'touch' get a
224 // bigger timestamp than the old ones 225 // bigger timestamp than the old ones
225 new Timer(1000, touchFilesAndRunTests); 226 new Timer(1000, touchFilesAndRunTests);
226 } 227 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698