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

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

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/no_duplicate_stub_test.dart ('k') | tests/compiler/dart2js/null_check_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/no_such_method_enabled_test.dart
diff --git a/tests/compiler/dart2js/no_such_method_enabled_test.dart b/tests/compiler/dart2js/no_such_method_enabled_test.dart
index c9e651ad84c31512ffedfad2369052e552b94bf9..a0009245e63d262c1bdaa54b3e577aacc4a3a756 100644
--- a/tests/compiler/dart2js/no_such_method_enabled_test.dart
+++ b/tests/compiler/dart2js/no_such_method_enabled_test.dart
@@ -22,9 +22,8 @@ main() {
await compiler.run(uri);
Expect.isFalse(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.defaultImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.defaultImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest2() async {
@@ -43,9 +42,8 @@ main() {
await compiler.run(uri);
Expect.isFalse(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.defaultImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.defaultImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest3() async {
@@ -66,9 +64,8 @@ main() {
await compiler.run(uri);
Expect.isFalse(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.defaultImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.defaultImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest4() async {
@@ -89,13 +86,11 @@ main() {
await compiler.run(uri);
Expect.isFalse(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.defaultImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.defaultImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
ClassElement clsB = findElement(compiler, 'B');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.defaultImpls.contains(
- clsB.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.defaultImpls
+ .contains(clsB.lookupMember('noSuchMethod')));
}
Future dummyImplTest5() async {
@@ -116,13 +111,11 @@ main() {
await compiler.run(uri);
Expect.isTrue(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.throwingImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.throwingImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
ClassElement clsB = findElement(compiler, 'B');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.throwingImpls.contains(
- clsB.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.throwingImpls
+ .contains(clsB.lookupMember('noSuchMethod')));
}
Future dummyImplTest6() async {
@@ -139,9 +132,8 @@ main() {
await compiler.run(uri);
Expect.isTrue(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.otherImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.otherImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest7() async {
@@ -158,9 +150,8 @@ main() {
await compiler.run(uri);
Expect.isFalse(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.defaultImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.defaultImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest8() async {
@@ -177,9 +168,8 @@ main() {
await compiler.run(uri);
Expect.isTrue(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.otherImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.otherImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest9() async {
@@ -196,9 +186,8 @@ main() {
await compiler.run(uri);
Expect.isFalse(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.notApplicableImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.notApplicableImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest10() async {
@@ -217,9 +206,8 @@ main() {
await compiler.run(uri);
Expect.isTrue(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.throwingImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.throwingImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest11() async {
@@ -239,12 +227,10 @@ main() {
await compiler.run(uri);
Expect.isTrue(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.otherImpls.contains(
- clsA.lookupMember('noSuchMethod')));
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.complexNoReturnImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.otherImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.complexNoReturnImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest12() async {
@@ -263,12 +249,10 @@ main() {
await compiler.run(uri);
Expect.isTrue(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.otherImpls.contains(
- clsA.lookupMember('noSuchMethod')));
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.complexReturningImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.otherImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.complexReturningImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
Future dummyImplTest13() async {
@@ -285,9 +269,8 @@ main() {
await compiler.run(uri);
Expect.isFalse(compiler.backend.enabledNoSuchMethod);
ClassElement clsA = findElement(compiler, 'A');
- Expect.isTrue(
- compiler.backend.noSuchMethodRegistry.defaultImpls.contains(
- clsA.lookupMember('noSuchMethod')));
+ Expect.isTrue(compiler.backend.noSuchMethodRegistry.defaultImpls
+ .contains(clsA.lookupMember('noSuchMethod')));
}
main() {
« no previous file with comments | « tests/compiler/dart2js/no_duplicate_stub_test.dart ('k') | tests/compiler/dart2js/null_check_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698