OLD | NEW |
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_reflective_loader/test_reflective_loader.dart'; |
8 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
9 | 10 |
10 import '../../reflective_tests.dart'; | |
11 import '../../utils.dart'; | 11 import '../../utils.dart'; |
12 | 12 |
13 main() { | 13 main() { |
14 initializeTestEnvironment(); | 14 initializeTestEnvironment(); |
15 runReflectiveTests(_FastUriTest); | 15 defineReflectiveTests(_FastUriTest); |
16 } | 16 } |
17 | 17 |
18 @reflectiveTest | 18 @reflectiveTest |
19 class _FastUriTest { | 19 class _FastUriTest { |
20 static final isInstanceOf<FastUri> isFastUri = new isInstanceOf<FastUri>(); | 20 static final isInstanceOf<FastUri> isFastUri = new isInstanceOf<FastUri>(); |
21 | 21 |
22 void test_parse_absolute_dart() { | 22 void test_parse_absolute_dart() { |
23 _compareTextWithCoreUri('dart:core'); | 23 _compareTextWithCoreUri('dart:core'); |
24 } | 24 } |
25 | 25 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 expect(fastUri.queryParameters, coreUri.queryParameters); | 160 expect(fastUri.queryParameters, coreUri.queryParameters); |
161 expect(fastUri.queryParametersAll, coreUri.queryParametersAll); | 161 expect(fastUri.queryParametersAll, coreUri.queryParametersAll); |
162 expect(fastUri.scheme, coreUri.scheme); | 162 expect(fastUri.scheme, coreUri.scheme); |
163 expect(fastUri.userInfo, coreUri.userInfo); | 163 expect(fastUri.userInfo, coreUri.userInfo); |
164 // Object | 164 // Object |
165 expect(fastUri.hashCode, coreUri.hashCode); | 165 expect(fastUri.hashCode, coreUri.hashCode); |
166 expect(fastUri == coreUri, isTrue); | 166 expect(fastUri == coreUri, isTrue); |
167 expect(coreUri == fastUri, isTrue); | 167 expect(coreUri == fastUri, isTrue); |
168 } | 168 } |
169 } | 169 } |
OLD | NEW |