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

Unified Diff: tests/compiler/dart2js_native/native_exception_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_native/native_exception_test.dart
diff --git a/tests/compiler/dart2js_native/native_exception_test.dart b/tests/compiler/dart2js_native/native_exception_test.dart
index e3d2231654a1d26c49264655d52a430bfa9c880d..0c2edf56b828d81b4ecb3fdf04f24466ddbc29e6 100644
--- a/tests/compiler/dart2js_native/native_exception_test.dart
+++ b/tests/compiler/dart2js_native/native_exception_test.dart
@@ -20,15 +20,26 @@ main() {
previous = e;
return '$e' != '[object Object]';
}
- Expect.throws(() { JS('void', 'noGlobalVariableWithThisName'); }, check);
- Expect.throws(() { JS('void', 'throw 3'); }, check);
- Expect.throws(
- () {
- JS('bool', 'Object.prototype.hasOwnProperty.call(undefined, "foo")');
- },
- check);
- Expect.throws(() { JS('void', 'throw new ReferenceError()'); }, check);
- Expect.throws(() { JS('void', 'throw void 0'); }, check);
- Expect.throws(() { JS('void', 'throw "a string"'); }, check);
- Expect.throws(() { JS('void', 'throw null'); }, check);
+
+ Expect.throws(() {
+ JS('void', 'noGlobalVariableWithThisName');
+ }, check);
+ Expect.throws(() {
+ JS('void', 'throw 3');
+ }, check);
+ Expect.throws(() {
+ JS('bool', 'Object.prototype.hasOwnProperty.call(undefined, "foo")');
+ }, check);
+ Expect.throws(() {
+ JS('void', 'throw new ReferenceError()');
+ }, check);
+ Expect.throws(() {
+ JS('void', 'throw void 0');
+ }, check);
+ Expect.throws(() {
+ JS('void', 'throw "a string"');
+ }, check);
+ Expect.throws(() {
+ JS('void', 'throw null');
+ }, check);
}

Powered by Google App Engine
This is Rietveld 408576698