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

Side by Side Diff: pkg/analyzer/test/src/util/fast_uri_test.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 years, 2 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 analyzer.test.src.util.fast_uri_test; 5 library analyzer.test.src.util.fast_uri_test;
6 6
7 import 'package:analyzer/src/util/fast_uri.dart'; 7 import 'package:analyzer/src/util/fast_uri.dart';
8 import 'package:test/test.dart';
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 import 'package:unittest/unittest.dart';
10 10
11 import '../../utils.dart'; 11 import '../../utils.dart';
12 12
13 main() { 13 main() {
14 initializeTestEnvironment(); 14 initializeTestEnvironment();
15 defineReflectiveTests(_FastUriTest); 15 defineReflectiveSuite(() {
16 defineReflectiveTests(_FastUriTest);
17 });
16 } 18 }
17 19
18 @reflectiveTest 20 @reflectiveTest
19 class _FastUriTest { 21 class _FastUriTest {
20 static final isInstanceOf<FastUri> isFastUri = new isInstanceOf<FastUri>(); 22 static final isInstanceOf<FastUri> isFastUri = new isInstanceOf<FastUri>();
21 23
22 void test_parse_absolute_dart() { 24 void test_parse_absolute_dart() {
23 _compareTextWithCoreUri('dart:core'); 25 _compareTextWithCoreUri('dart:core');
24 } 26 }
25 27
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 expect(fastUri.queryParameters, coreUri.queryParameters); 162 expect(fastUri.queryParameters, coreUri.queryParameters);
161 expect(fastUri.queryParametersAll, coreUri.queryParametersAll); 163 expect(fastUri.queryParametersAll, coreUri.queryParametersAll);
162 expect(fastUri.scheme, coreUri.scheme); 164 expect(fastUri.scheme, coreUri.scheme);
163 expect(fastUri.userInfo, coreUri.userInfo); 165 expect(fastUri.userInfo, coreUri.userInfo);
164 // Object 166 // Object
165 expect(fastUri.hashCode, coreUri.hashCode); 167 expect(fastUri.hashCode, coreUri.hashCode);
166 expect(fastUri == coreUri, isTrue); 168 expect(fastUri == coreUri, isTrue);
167 expect(coreUri == fastUri, isTrue); 169 expect(coreUri == fastUri, isTrue);
168 } 170 }
169 } 171 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698