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

Unified Diff: pkg/analyzer/test/generated/gn_test.dart

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/gn_test.dart
diff --git a/pkg/analyzer/test/generated/gn_test.dart b/pkg/analyzer/test/generated/gn_test.dart
index 34084f295cb0f1199dbfa8ef4ed7c4fb95314642..8bae172c93ce49b09d7bd0ddd76fff458f7900be 100644
--- a/pkg/analyzer/test/generated/gn_test.dart
+++ b/pkg/analyzer/test/generated/gn_test.dart
@@ -17,36 +17,36 @@ main() {
@reflectiveTest
class GnWorkspaceTest extends _BaseTest {
- void test_find_notAbsolute() {
- expect(() => GnWorkspace.find(provider, _p('not_absolute')),
- throwsArgumentError);
- }
-
- void test_find_noJiriRoot() {
- provider.newFolder(_p('/workspace'));
- GnWorkspace workspace = GnWorkspace.find(provider, _p('/workspace'));
- expect(workspace, isNull);
- }
-
- void test_find_withRoot() {
+ void test_find_inHost() {
provider.newFolder(_p('/workspace/.jiri_root'));
provider.newFolder(_p('/workspace/some/code'));
provider.newFile(_p('/workspace/some/code/pubspec.yaml'), '');
provider.newFile(
- _p('/workspace/out/debug-x87_128/gen/some/code/foo.packages'), '');
+ _p('/workspace/out/debug-x87_128/host_y32/gen/some/code/foo.packages'),
+ '');
GnWorkspace workspace =
GnWorkspace.find(provider, _p('/workspace/some/code'));
expect(workspace, isNotNull);
expect(workspace.root, _p('/workspace/some/code'));
}
- void test_find_inHost() {
+ void test_find_noJiriRoot() {
+ provider.newFolder(_p('/workspace'));
+ GnWorkspace workspace = GnWorkspace.find(provider, _p('/workspace'));
+ expect(workspace, isNull);
+ }
+
+ void test_find_notAbsolute() {
+ expect(() => GnWorkspace.find(provider, _p('not_absolute')),
+ throwsArgumentError);
+ }
+
+ void test_find_withRoot() {
provider.newFolder(_p('/workspace/.jiri_root'));
provider.newFolder(_p('/workspace/some/code'));
provider.newFile(_p('/workspace/some/code/pubspec.yaml'), '');
provider.newFile(
- _p('/workspace/out/debug-x87_128/host_y32/gen/some/code/foo.packages'),
- '');
+ _p('/workspace/out/debug-x87_128/gen/some/code/foo.packages'), '');
GnWorkspace workspace =
GnWorkspace.find(provider, _p('/workspace/some/code'));
expect(workspace, isNotNull);
« no previous file with comments | « pkg/analyzer/test/generated/error_suppression_test.dart ('k') | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698