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

Unified Diff: tests/compiler/dart2js/interceptor_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/interceptor_test.dart
diff --git a/tests/compiler/dart2js/interceptor_test.dart b/tests/compiler/dart2js/interceptor_test.dart
index c9bd14c39242fc72b57e6be9b44e9b9a294a2ab0..b7d375da488a5972817f6f7251e9070ac6bb29d6 100644
--- a/tests/compiler/dart2js/interceptor_test.dart
+++ b/tests/compiler/dart2js/interceptor_test.dart
@@ -27,22 +27,22 @@ const String TEST_TWO = r"""
main() {
asyncTest(() => Future.wait([
- // Check that one-shot interceptors preserve variable names, see
- // https://code.google.com/p/dart/issues/detail?id=8106.
- compile(TEST_ONE, entry: 'foo', check: (String generated) {
- Expect.isTrue(
- generated.contains(new RegExp(r'[$A-Z]+\.toString\$0\$\(a\)')));
- Expect.isTrue(generated.contains('myVariableName'));
- }),
- // Check that an intercepted getter that does not need to be
- // intercepted, is turned into a regular getter call or field
- // access.
- compile(TEST_TWO, entry: 'foo', check: (String generated) {
- Expect.isFalse(generated.contains(r'a.get$length()'));
- Expect.isTrue(
- generated.contains(new RegExp(r'[$A-Z]+\.A\$\(\)\.length')));
- Expect.isTrue(
- generated.contains(new RegExp(r'[$A-Z]+\.get\$length\$as\(a\)')));
- }),
- ]));
+ // Check that one-shot interceptors preserve variable names, see
+ // https://code.google.com/p/dart/issues/detail?id=8106.
+ compile(TEST_ONE, entry: 'foo', check: (String generated) {
+ Expect.isTrue(
+ generated.contains(new RegExp(r'[$A-Z]+\.toString\$0\$\(a\)')));
+ Expect.isTrue(generated.contains('myVariableName'));
+ }),
+ // Check that an intercepted getter that does not need to be
+ // intercepted, is turned into a regular getter call or field
+ // access.
+ compile(TEST_TWO, entry: 'foo', check: (String generated) {
+ Expect.isFalse(generated.contains(r'a.get$length()'));
+ Expect.isTrue(
+ generated.contains(new RegExp(r'[$A-Z]+\.A\$\(\)\.length')));
+ Expect.isTrue(
+ generated.contains(new RegExp(r'[$A-Z]+\.get\$length\$as\(a\)')));
+ }),
+ ]));
}

Powered by Google App Engine
This is Rietveld 408576698