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

Side by Side Diff: test/backend/metadata_test.dart

Issue 1704183002: pkg/test: cleanup imports (Closed) Base URL: https://github.com/dart-lang/test.git@master
Patch Set: Created 4 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
« no previous file with comments | « lib/src/runner/vm/catch_isolate_errors.dart ('k') | test/runner/configuration/tags_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'package:test/src/backend/metadata.dart'; 5 import 'package:test/src/backend/metadata.dart';
6 import 'package:test/src/backend/test_platform.dart'; 6 import 'package:test/src/backend/test_platform.dart';
7 import 'package:test/src/frontend/skip.dart';
7 import 'package:test/src/frontend/timeout.dart'; 8 import 'package:test/src/frontend/timeout.dart';
8 import 'package:test/src/frontend/skip.dart';
9 import 'package:test/test.dart'; 9 import 'package:test/test.dart';
10 10
11 void main() { 11 void main() {
12 group("tags", () { 12 group("tags", () {
13 test("parses an Iterable", () { 13 test("parses an Iterable", () {
14 expect(new Metadata.parse(tags: ["a", "b"]).tags, 14 expect(new Metadata.parse(tags: ["a", "b"]).tags,
15 unorderedEquals(["a", "b"])); 15 unorderedEquals(["a", "b"]));
16 }); 16 });
17 17
18 test("parses a String", () { 18 test("parses a String", () {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 }, throwsArgumentError); 148 }, throwsArgumentError);
149 }); 149 });
150 150
151 test("refuses multiple Skips", () { 151 test("refuses multiple Skips", () {
152 expect(() { 152 expect(() {
153 new Metadata.parse(onPlatform: {"chrome": [new Skip(), new Skip()]}); 153 new Metadata.parse(onPlatform: {"chrome": [new Skip(), new Skip()]});
154 }, throwsArgumentError); 154 }, throwsArgumentError);
155 }); 155 });
156 }); 156 });
157 } 157 }
OLDNEW
« no previous file with comments | « lib/src/runner/vm/catch_isolate_errors.dart ('k') | test/runner/configuration/tags_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698