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

Side by Side Diff: test/initializer_from_test.dart

Issue 1008533003: add from option to run (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: code review updates, remove dartium support Created 5 years, 9 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 | « pubspec.yaml ('k') | 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
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
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.
4 @initializeTracker
5 library initialize.test.initializer_from_test;
6
7 import 'package:initialize/src/initialize_tracker.dart';
8 import 'package:initialize/initialize.dart';
9 import 'package:unittest/unittest.dart';
10 import 'package:unittest/compact_vm_config.dart';
11 import 'package:test_package/bar.dart'; // Used for annotations
12
13 main() {
14 useCompactVMConfiguration();
15
16 test('The `from` option', () {
17 var expectedNames = [];
18 return run(from: Uri.parse('package:test_package/bar.dart')).then((_) {
19 // First just run on the test packages bar.dart file.
20 expectedNames.add(const LibraryIdentifier(
21 #test_package.bar, 'test_package', 'bar.dart'));
22 expect(InitializeTracker.seen, expectedNames);
23 }).then((_) => run()).then((_) {
24 // Now we run on the rest (just this file).
25 expectedNames.add(const LibraryIdentifier(
26 #initialize.test.initializer_from_test, null,
27 'initializer_from_test.dart'));
28 expect(InitializeTracker.seen, expectedNames);
29 });
30 });
31 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698