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

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

Issue 1513643009: Clean up package imports and library names (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 test.analyzer.src.util.glob; 5 library analyzer.test.src.util.glob_test;
6 6
7 import 'package:analyzer/src/util/glob.dart'; 7 import 'package:analyzer/src/util/glob.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 9
10 import '../../reflective_tests.dart'; 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(GlobPosixTest); 15 runReflectiveTests(GlobPosixTest);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void test_starStar() { 124 void test_starStar() {
125 Glob glob = new Glob(r'\', r'**.dart'); 125 Glob glob = new Glob(r'\', r'**.dart');
126 expect(glob.matches(r'foo\bar.dart'), isTrue); 126 expect(glob.matches(r'foo\bar.dart'), isTrue);
127 expect(glob.matches(r'foo\bar\baz.dart'), isTrue); 127 expect(glob.matches(r'foo\bar\baz.dart'), isTrue);
128 expect(glob.matches(r'C:\foo\bar.dart'), isTrue); 128 expect(glob.matches(r'C:\foo\bar.dart'), isTrue);
129 expect(glob.matches(r'C:\foo\bar\baz.dart'), isTrue); 129 expect(glob.matches(r'C:\foo\bar\baz.dart'), isTrue);
130 // does not end with 'dart' 130 // does not end with 'dart'
131 expect(glob.matches(r'C:\web\foo.html'), isFalse); 131 expect(glob.matches(r'C:\web\foo.html'), isFalse);
132 } 132 }
133 } 133 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/util/asserts_test.dart ('k') | pkg/analyzer/test/src/util/lru_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698