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

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

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/static_type_warning_code_test.dart
diff --git a/pkg/analyzer/test/generated/static_type_warning_code_test.dart b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
index b49a115200dd927bf29a6e3b9bd5050fb0da704a..a14e8c8f8c1a3e21613726b8c53ab5fddf3366c1 100644
--- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart
+++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
@@ -10,10 +10,11 @@ import 'package:analyzer/src/generated/source_io.dart';
import 'package:unittest/unittest.dart';
import '../reflective_tests.dart';
+import '../utils.dart';
import 'resolver_test.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
runReflectiveTests(StaticTypeWarningCodeTest);
}
@@ -44,10 +45,14 @@ E e() {
import 'lib1.dart';
import 'lib2.dart';
g() { return f(); }''');
- addNamedSource("/lib1.dart", r'''
+ addNamedSource(
+ "/lib1.dart",
+ r'''
library lib1;
f() {}''');
- addNamedSource("/lib2.dart", r'''
+ addNamedSource(
+ "/lib2.dart",
+ r'''
library lib2;
f() {}''');
computeLibrarySourceErrors(source);
@@ -1324,7 +1329,9 @@ void f() {
Source source = addSource(r'''
import 'lib.dart' as f;
main() { return f.g(); }''');
- addNamedSource("/lib.dart", r'''
+ addNamedSource(
+ "/lib.dart",
+ r'''
library lib;
h() {}''');
computeLibrarySourceErrors(source);
@@ -1529,7 +1536,9 @@ f(Object o) {
}
void test_undefinedMethod_private() {
- addNamedSource("/lib.dart", r'''
+ addNamedSource(
+ "/lib.dart",
+ r'''
library lib;
class A {
_foo() {}
« no previous file with comments | « pkg/analyzer/test/generated/source_factory_test.dart ('k') | pkg/analyzer/test/generated/static_warning_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698