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

Side by Side Diff: pkg/analysis_server/test/services/correction/strings_test.dart

Issue 2402483002: Remove 'initializeTestEnvironment' from 'analysis_server'. (Closed)
Patch Set: Created 4 years, 2 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.services.correction.strings; 5 library test.services.correction.strings;
6 6
7 import 'package:analysis_server/src/services/correction/strings.dart'; 7 import 'package:analysis_server/src/services/correction/strings.dart';
8 import 'package:test/test.dart' hide isEmpty; 8 import 'package:test/test.dart' hide isEmpty;
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(StringsTest); 13 defineReflectiveTests(StringsTest);
17 }); 14 });
18 } 15 }
19 16
20 @reflectiveTest 17 @reflectiveTest
21 class StringsTest { 18 class StringsTest {
22 void test_capitalize() { 19 void test_capitalize() {
23 expect(capitalize(''), ''); 20 expect(capitalize(''), '');
24 expect(capitalize('a'), 'A'); 21 expect(capitalize('a'), 'A');
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 expect(repeat('abc', 3), 'abcabcabc'); 199 expect(repeat('abc', 3), 'abcabcabc');
203 } 200 }
204 201
205 void test_substringAfterLast() { 202 void test_substringAfterLast() {
206 expect(substringAfterLast('', '/'), ''); 203 expect(substringAfterLast('', '/'), '');
207 expect(substringAfterLast('abc', ''), ''); 204 expect(substringAfterLast('abc', ''), '');
208 expect(substringAfterLast('abc', 'd'), 'abc'); 205 expect(substringAfterLast('abc', 'd'), 'abc');
209 expect(substringAfterLast('abcbde', 'b'), 'de'); 206 expect(substringAfterLast('abcbde', 'b'), 'de');
210 } 207 }
211 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698