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