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

Unified Diff: tests/compiler/dart2js_native/jsobject_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/jsobject_test.dart
diff --git a/tests/compiler/dart2js_native/jsobject_test.dart b/tests/compiler/dart2js_native/jsobject_test.dart
index 45fac7a9d09d53e53b1aba7d1ff63b02ad609b8b..f7a92f942d668780e49242e0c6915f241d2e4801 100644
--- a/tests/compiler/dart2js_native/jsobject_test.dart
+++ b/tests/compiler/dart2js_native/jsobject_test.dart
@@ -4,13 +4,14 @@
import "package:expect/expect.dart";
import 'dart:_js_helper' show Native, Creates, setNativeSubclassDispatchRecord;
-import 'dart:_interceptors' show
- JSObject, // The interface, which may be re-exported by a
- // js-interop library.
- JavaScriptObject, // The interceptor abstract class.
- PlainJavaScriptObject, // The interceptor concrete class.
- UnknownJavaScriptObject, // The interceptor concrete class.
- Interceptor;
+import 'dart:_interceptors'
+ show
+ JSObject, // The interface, which may be re-exported by a
+ // js-interop library.
+ JavaScriptObject, // The interceptor abstract class.
+ PlainJavaScriptObject, // The interceptor concrete class.
+ UnknownJavaScriptObject, // The interceptor concrete class.
+ Interceptor;
// Test for JavaScript objects from outside the Dart program. Although we only
// export the interface [JSObject] to user level code, this test makes sure we
@@ -19,9 +20,9 @@ import 'dart:_interceptors' show
@Native('QQ')
class Q {}
-makeA() native;
-makeB() native;
-makeQ() native;
+makeA() native ;
+makeB() native ;
+makeQ() native ;
void setup() native r"""
makeA = function(){return {hello: 123};};
@@ -42,13 +43,13 @@ static_test() {
Expect.isTrue(x is JSObject);
Expect.isTrue(x is JavaScriptObject);
Expect.isTrue(x is PlainJavaScriptObject);
- Expect.isTrue(x is !UnknownJavaScriptObject);
+ Expect.isTrue(x is! UnknownJavaScriptObject);
Expect.equals(JSObject, x.runtimeType);
x = makeB();
Expect.isTrue(x is JSObject);
Expect.isTrue(x is JavaScriptObject);
- Expect.isTrue(x is !PlainJavaScriptObject);
+ Expect.isTrue(x is! PlainJavaScriptObject);
Expect.isTrue(x is UnknownJavaScriptObject);
Expect.equals(JSObject, x.runtimeType);
« no previous file with comments | « tests/compiler/dart2js_native/js_constant_test.dart ('k') | tests/compiler/dart2js_native/native_call_arity1_frog_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698