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

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

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 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_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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698