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

Unified Diff: tests/compiler/dart2js/elide_callthrough_stub_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
Index: tests/compiler/dart2js/elide_callthrough_stub_test.dart
diff --git a/tests/compiler/dart2js/elide_callthrough_stub_test.dart b/tests/compiler/dart2js/elide_callthrough_stub_test.dart
index bdb966745f035befbfeaf244dbf8d12d1a66d2eb..6f925b3e8bb4976d9515619e7dc62c53343df11d 100644
--- a/tests/compiler/dart2js/elide_callthrough_stub_test.dart
+++ b/tests/compiler/dart2js/elide_callthrough_stub_test.dart
@@ -39,22 +39,22 @@ main() {
main() {
asyncTest(() => compileAll(TEST1).then((generated) {
- // Direct call through field.
- Expect.isTrue(generated.contains(r'this._fun.call$1(zzz)'));
- // No stub.
- Expect.isFalse(generated.contains(r'_fun$1:'));
- // No call to stub.
- Expect.isFalse(generated.contains(r'_fun$1('));
- }));
+ // Direct call through field.
+ Expect.isTrue(generated.contains(r'this._fun.call$1(zzz)'));
+ // No stub.
+ Expect.isFalse(generated.contains(r'_fun$1:'));
+ // No call to stub.
+ Expect.isFalse(generated.contains(r'_fun$1('));
+ }));
asyncTest(() => compileAll(TEST2).then((generated) {
- // No call through field.
- Expect.isFalse(generated.contains(r'this._fun.call$1(zzz)'));
- // Call through stub.
- Expect.isTrue(generated.contains(r'this._fun$1(zzz)'));
- // Stub is generated.
- Expect.isTrue(generated.contains(r'_fun$1:'));
- // Call through getter (inside stub).
- Expect.isTrue(generated.contains(r'get$_fun().call$1'));
- }));
+ // No call through field.
+ Expect.isFalse(generated.contains(r'this._fun.call$1(zzz)'));
+ // Call through stub.
+ Expect.isTrue(generated.contains(r'this._fun$1(zzz)'));
+ // Stub is generated.
+ Expect.isTrue(generated.contains(r'_fun$1:'));
+ // Call through getter (inside stub).
+ Expect.isTrue(generated.contains(r'get$_fun().call$1'));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/duplicate_library_test.dart ('k') | tests/compiler/dart2js/embedded_category_api_boundary_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698