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

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

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 1 month 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 import 'package:scheduled_test/scheduled_test.dart'; 5 import 'package:scheduled_test/scheduled_test.dart';
6 6
7 import '../metatest.dart'; 7 import '../metatest.dart';
8 import '../utils.dart'; 8 import '../utils.dart';
9 9
10 void main() { 10 void main(List<String> args, message) {
11 metaTestInit(message);
12
11 setUpTimeout(); 13 setUpTimeout();
12 14
13 expectTestsPass('currentSchedule.state starts out as SET_UP', () { 15 expectTestsPass('currentSchedule.state starts out as SET_UP', () {
14 test('test', () { 16 test('test', () {
15 expect(currentSchedule.state, equals(ScheduleState.SET_UP)); 17 expect(currentSchedule.state, equals(ScheduleState.SET_UP));
16 }); 18 });
17 }); 19 });
18 20
19 expectTestsPass('currentSchedule.state is RUNNING in tasks', () { 21 expectTestsPass('currentSchedule.state is RUNNING in tasks', () {
20 test('test', () { 22 test('test', () {
(...skipping 11 matching lines...) Expand all
32 var oldSchedule; 34 var oldSchedule;
33 test('test 1', () { 35 test('test 1', () {
34 oldSchedule = currentSchedule; 36 oldSchedule = currentSchedule;
35 }); 37 });
36 38
37 test('test 2', () { 39 test('test 2', () {
38 expect(oldSchedule.state, equals(ScheduleState.DONE)); 40 expect(oldSchedule.state, equals(ScheduleState.DONE));
39 }); 41 });
40 }); 42 });
41 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698