| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |