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

Side by Side Diff: test/runner/browser/loader_test.dart

Issue 1027193004: Respect top-level @TestOn declarations. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Add another test. 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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 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 @TestOn("vm")
6
5 import 'dart:io'; 7 import 'dart:io';
6 8
7 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
8 import 'package:unittest/src/backend/state.dart'; 10 import 'package:unittest/src/backend/state.dart';
9 import 'package:unittest/src/backend/test_platform.dart'; 11 import 'package:unittest/src/backend/test_platform.dart';
10 import 'package:unittest/src/runner/loader.dart'; 12 import 'package:unittest/src/runner/loader.dart';
11 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
12 14
13 import '../../io.dart'; 15 import '../../io.dart';
14 import '../../utils.dart'; 16 import '../../utils.dart';
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 106
105 for (var suite in suites) { 107 for (var suite in suites) {
106 expect(suite.tests, hasLength(3)); 108 expect(suite.tests, hasLength(3));
107 expect(suite.tests[0].name, equals("success")); 109 expect(suite.tests[0].name, equals("success"));
108 expect(suite.tests[1].name, equals("failure")); 110 expect(suite.tests[1].name, equals("failure"));
109 expect(suite.tests[2].name, equals("error")); 111 expect(suite.tests[2].name, equals("error"));
110 } 112 }
111 }).whenComplete(loader.close); 113 }).whenComplete(loader.close);
112 }); 114 });
113 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698