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

Unified Diff: tests/compiler/dart2js_extra/inferrer_is_int_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_extra/inferrer_is_int_test.dart
diff --git a/tests/compiler/dart2js_extra/inferrer_is_int_test.dart b/tests/compiler/dart2js_extra/inferrer_is_int_test.dart
index 6aecf394cd97850c0678fc11759057379bf89e99..445986e676c310961ee98e048006f376a9ff5728 100644
--- a/tests/compiler/dart2js_extra/inferrer_is_int_test.dart
+++ b/tests/compiler/dart2js_extra/inferrer_is_int_test.dart
@@ -11,20 +11,20 @@ import '../../language/compiler_annotations.dart';
@DontInline()
callWithStringAndDouble(value) {
() => 42;
- if (value is !int) throw new ArgumentError(value);
+ if (value is! int) throw new ArgumentError(value);
return 42;
}
@DontInline()
callWithDouble(value) {
() => 42;
- if (value is !int) throw new ArgumentError(value);
+ if (value is! int) throw new ArgumentError(value);
return 42;
}
main() {
- Expect.throws(() => callWithStringAndDouble('foo'),
- (e) => e is ArgumentError);
+ Expect.throws(
+ () => callWithStringAndDouble('foo'), (e) => e is ArgumentError);
Expect.equals(42, callWithStringAndDouble(0.0));
Expect.equals(42, callWithDouble(0.0));
}

Powered by Google App Engine
This is Rietveld 408576698