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

Unified Diff: tests/compiler/dart2js_extra/assert_with_message_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_extra/27199_test.dart ('k') | tests/compiler/dart2js_extra/async_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/assert_with_message_test.dart
diff --git a/tests/compiler/dart2js_extra/assert_with_message_test.dart b/tests/compiler/dart2js_extra/assert_with_message_test.dart
index 58b7796cd0674c9c06a6699800ccdb428934bd5e..a5b14eeab08033f42bbc286de71ba4af6b8fd909 100644
--- a/tests/compiler/dart2js_extra/assert_with_message_test.dart
+++ b/tests/compiler/dart2js_extra/assert_with_message_test.dart
@@ -5,10 +5,10 @@
import "package:expect/expect.dart";
-@AssumeDynamic() @NoInline()
+@AssumeDynamic()
+@NoInline()
confuse(x) => x;
-
testFalse(name, fault) {
try {
fault();
@@ -21,20 +21,27 @@ testFalse(name, fault) {
}
test1() {
- testFalse('constant false', () { assert(false, 'Mumble'); });
+ testFalse('constant false', () {
+ assert(false, 'Mumble');
+ });
}
test2() {
- testFalse('constant function', () { assert(() => false, 'Mumble'); });
+ testFalse('constant function', () {
+ assert(() => false, 'Mumble');
+ });
}
test3() {
- testFalse('variable false', () { assert(confuse(false), 'Mumble'); });
+ testFalse('variable false', () {
+ assert(confuse(false), 'Mumble');
+ });
}
test4() {
- testFalse('variable function',
- () { assert(confuse(() => false), 'Mumble'); });
+ testFalse('variable function', () {
+ assert(confuse(() => false), 'Mumble');
+ });
}
testTypeErrors() {
@@ -42,16 +49,22 @@ testTypeErrors() {
try {
fault();
} catch (e) {
- Expect.isTrue(e is TypeError,
- 'name: <<$e>> (${e.runtimeType}) is TypeError');
+ Expect.isTrue(
+ e is TypeError, 'name: <<$e>> (${e.runtimeType}) is TypeError');
return;
}
Expect.fail('Expected assert to throw');
}
- check('constant type error', () { assert(null, 'Mumble'); });
- check('variable type error', () { assert(confuse(null), 'Mumble'); });
- check('function type error', () { assert(confuse(() => null), 'Mumble'); });
+ check('constant type error', () {
+ assert(null, 'Mumble');
+ });
+ check('variable type error', () {
+ assert(confuse(null), 'Mumble');
+ });
+ check('function type error', () {
+ assert(confuse(() => null), 'Mumble');
+ });
}
testMessageEffect1() {
« no previous file with comments | « tests/compiler/dart2js_extra/27199_test.dart ('k') | tests/compiler/dart2js_extra/async_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698