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

Unified Diff: tests/compiler/dart2js/message_span_test.dart

Issue 2990223002: Reformat untouched files. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tests/compiler/dart2js/members_test.dart ('k') | tests/compiler/dart2js/mixin_typevariable_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/message_span_test.dart
diff --git a/tests/compiler/dart2js/message_span_test.dart b/tests/compiler/dart2js/message_span_test.dart
index f90ae46d91dfeec1b94dc75ae9c24bd847d788d6..351726785b4b083a22930818a2b9aa76219638d5 100644
--- a/tests/compiler/dart2js/message_span_test.dart
+++ b/tests/compiler/dart2js/message_span_test.dart
@@ -12,8 +12,7 @@ import 'memory_compiler.dart';
import 'memory_source_file_helper.dart';
const List<Test> TESTS = const <Test>[
- const Test(
- '''
+ const Test('''
class A { A(b); }
class B extends A {
a() {}
@@ -24,14 +23,12 @@ class B extends A {
var members;
}
-main() => new B();''',
- const {
- MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
+main() => new B();''', const {
+ MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
class B extends A {
^^^^^^^^^^^^^^^^^'''
- }),
- const Test(
- '''
+ }),
+ const Test('''
class I {}
class A { A(b); }
class B extends A implements I {
@@ -43,14 +40,12 @@ class B extends A implements I {
var members;
}
-main() => new B();''',
- const {
- MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
+main() => new B();''', const {
+ MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
class B extends A implements I {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'''
- }),
- const Test(
- '''
+ }),
+ const Test('''
class M<T> {}
class A { A(b); }
class B extends A with M<int> {
@@ -62,14 +57,12 @@ class B extends A with M<int> {
var members;
}
-main() => new B();''',
- const {
- MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
+main() => new B();''', const {
+ MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
class B extends A with M<int> {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'''
- }),
- const Test(
- '''
+ }),
+ const Test('''
class A { A(b); }
class B
extends A {
@@ -81,43 +74,37 @@ class B
var members;
}
-main() => new B();''',
- const {
- MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
+main() => new B();''', const {
+ MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT: '''
class B
extends A {
'''
- }),
- const Test(
- '''
+ }),
+ const Test('''
void foo(int a) {
// a
// non-empty
// body
}
-main() => foo('');''',
- const {
- MessageKind.THIS_IS_THE_METHOD: '''
+main() => foo('');''', const {
+ MessageKind.THIS_IS_THE_METHOD: '''
void foo(int a) {
^^^^^^^^^^^^^^^'''
- }),
- const Test(
- '''
+ }),
+ const Test('''
void foo(int a,
int b) {
// a
// non-empty
// body
}
-main() => foo('', 0);''',
- const {
- MessageKind.THIS_IS_THE_METHOD: '''
+main() => foo('', 0);''', const {
+ MessageKind.THIS_IS_THE_METHOD: '''
void foo(int a,
int b) {
'''
- }),
- const Test(
- '''
+ }),
+ const Test('''
class A {
int foo() {
// a
@@ -133,15 +120,14 @@ class B extends A {
return 0;
}
}
-main() => new B();''',
- const {
- MessageKind.CANNOT_OVERRIDE_METHOD_WITH_GETTER: '''
+main() => new B();''', const {
+ MessageKind.CANNOT_OVERRIDE_METHOD_WITH_GETTER: '''
int get foo {
^^^^^^^^^^^''',
- MessageKind.CANNOT_OVERRIDE_METHOD_WITH_GETTER_CONT: '''
+ MessageKind.CANNOT_OVERRIDE_METHOD_WITH_GETTER_CONT: '''
int foo() {
^^^^^^^^^'''
- }),
+ }),
];
class Test {
« no previous file with comments | « tests/compiler/dart2js/members_test.dart ('k') | tests/compiler/dart2js/mixin_typevariable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698