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

Side by Side Diff: pkg/scheduled_test/test/scheduled_test_test.dart

Issue 12449016: Use ".."-style imports in scheduled_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
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 library scheduled_test_test; 5 library scheduled_test_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:scheduled_test/scheduled_test.dart'; 9 import '../lib/scheduled_test.dart';
10 import 'package:scheduled_test/src/mock_clock.dart' as mock_clock; 10 import '../lib/src/mock_clock.dart' as mock_clock;
11 11
12 import 'metatest.dart'; 12 import 'metatest.dart';
13 import 'utils.dart'; 13 import 'utils.dart';
14 14
15 void main() { 15 void main() {
16 expectTestsPass('a scheduled test with a correct synchronous expectation ' 16 expectTestsPass('a scheduled test with a correct synchronous expectation '
17 'should pass', () { 17 'should pass', () {
18 test('test', () { 18 test('test', () {
19 expect('foo', equals('foo')); 19 expect('foo', equals('foo'));
20 }); 20 });
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 throw 'error'; 1353 throw 'error';
1354 }), completion(equals('bar'))); 1354 }), completion(equals('bar')));
1355 }); 1355 });
1356 1356
1357 test('test 2', () { 1357 test('test 2', () {
1358 expect(errors, everyElement(new isInstanceOf<ScheduleError>())); 1358 expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
1359 expect(errors.map((e) => e.error), equals(['error'])); 1359 expect(errors.map((e) => e.error), equals(['error']));
1360 }); 1360 });
1361 }, passing: ['test 2']); 1361 }, passing: ['test 2']);
1362 } 1362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698