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

Side by Side Diff: lib/src/backend/metadata.dart

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 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/backend/live_test_controller.dart ('k') | lib/src/backend/operating_system.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 library unittest.backend.metadata; 5 library test.backend.metadata;
6 6
7 import 'platform_selector.dart'; 7 import 'platform_selector.dart';
8 8
9 /// Metadata for a test or test suite. 9 /// Metadata for a test or test suite.
10 /// 10 ///
11 /// This metadata comes from declarations on the test itself; it doesn't include 11 /// This metadata comes from declarations on the test itself; it doesn't include
12 /// configuration from the user. 12 /// configuration from the user.
13 class Metadata { 13 class Metadata {
14 /// The selector indicating which platforms the suite supports. 14 /// The selector indicating which platforms the suite supports.
15 final PlatformSelector testOn; 15 final PlatformSelector testOn;
(...skipping 20 matching lines...) Expand all
36 /// If the two [Metadata]s have conflicting properties, [other] wins. 36 /// If the two [Metadata]s have conflicting properties, [other] wins.
37 Metadata merge(Metadata other) => 37 Metadata merge(Metadata other) =>
38 new Metadata(testOn: testOn.intersect(other.testOn)); 38 new Metadata(testOn: testOn.intersect(other.testOn));
39 39
40 /// Serializes [this] into a JSON-safe object that can be deserialized using 40 /// Serializes [this] into a JSON-safe object that can be deserialized using
41 /// [new Metadata.deserialize]. 41 /// [new Metadata.deserialize].
42 serialize() => { 42 serialize() => {
43 'testOn': testOn == PlatformSelector.all ? null : testOn.toString() 43 'testOn': testOn == PlatformSelector.all ? null : testOn.toString()
44 }; 44 };
45 } 45 }
OLDNEW
« no previous file with comments | « lib/src/backend/live_test_controller.dart ('k') | lib/src/backend/operating_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698