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

Side by Side Diff: pkg/analyzer/test/generated/utilities_dart_test.dart

Issue 2662033002: Remove analyzer workaround for #27447. (Closed)
Patch Set: Created 3 years, 10 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 | « pkg/analyzer/pubspec.yaml ('k') | no next file » | 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) 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.generated.utilities_dart_test; 5 library analyzer.test.generated.utilities_dart_test;
6 6
7 import 'package:analyzer/src/generated/utilities_dart.dart'; 7 import 'package:analyzer/src/generated/utilities_dart.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
(...skipping 20 matching lines...) Expand all
31 _validate('package:a/b.dart', 'c.dart', 'package:a/c.dart'); 31 _validate('package:a/b.dart', 'c.dart', 'package:a/c.dart');
32 _validate('package:a/b/c.dart', 'd.dart', 'package:a/b/d.dart'); 32 _validate('package:a/b/c.dart', 'd.dart', 'package:a/b/d.dart');
33 _validate('package:a/b/c.dart', '../d.dart', 'package:a/d.dart'); 33 _validate('package:a/b/c.dart', '../d.dart', 'package:a/d.dart');
34 } 34 }
35 35
36 void test_relative_relative() { 36 void test_relative_relative() {
37 _validate('a/b.dart', 'c.dart', 'a/c.dart'); 37 _validate('a/b.dart', 'c.dart', 'a/c.dart');
38 _validate('a/b.dart', '../c.dart', 'c.dart'); 38 _validate('a/b.dart', '../c.dart', 'c.dart');
39 _validate('a.dart', '../b.dart', '../b.dart'); 39 _validate('a.dart', '../b.dart', '../b.dart');
40 _validate('a.dart', '../../b.dart', '../../b.dart'); 40 _validate('a.dart', '../../b.dart', '../../b.dart');
41 // TODO(scheglov) After https://github.com/dart-lang/sdk/issues/27447 41 _validate('a/b.dart', '../../c.dart', '../c.dart');
42 // TODO(scheglov) include also this, currently failing test.
43 // _validate('a/b.dart', '../../c.dart', '../c.dart');
44 } 42 }
45 43
46 void _validate(String base, String contained, String expected) { 44 void _validate(String base, String contained, String expected) {
47 Uri actual = resolveRelativeUri(Uri.parse(base), Uri.parse(contained)); 45 Uri actual = resolveRelativeUri(Uri.parse(base), Uri.parse(contained));
48 expect(actual.toString(), expected); 46 expect(actual.toString(), expected);
49 } 47 }
50 } 48 }
OLDNEW
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698