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

Unified Diff: tests/compiler/dart2js_native/native_field_rename_1_frog_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_field_rename_1_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart b/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart
index 755da14dc9c3ecbef9a7b6e984f9a603bf64e55d..aaa578b78db63edfd101bfc16d7cb9185741a9b3 100644
--- a/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart
@@ -11,12 +11,12 @@ import 'dart:_js_helper' show Native, JSName;
@Native("A")
class A {
- int key; // jsname is 'key'
+ int key; // jsname is 'key'
int getKey() => key;
}
class B {
- int key; // jsname is not 'key'
+ int key; // jsname is not 'key'
B([this.key = 222]);
int getKey() => key;
}
@@ -24,16 +24,15 @@ class B {
@Native("X")
class X {
@JSName('key')
- int native_key_method() native;
+ int native_key_method() native ;
// This should cause B.key to be renamed, but not A.key.
@JSName('key')
- int key() native;
+ int key() native ;
}
-A makeA() native;
-X makeX() native;
-
+A makeA() native ;
+X makeX() native ;
void setup() native """
// This code is all inside 'setup' and so not accesible from the global scope.
@@ -58,7 +57,6 @@ testDynamic() {
Expect.equals(111, a.getKey());
Expect.equals(222, b.getKey());
-
Expect.equals(666, x.native_key_method());
Expect.equals(666, x.key());
// The getter for the closurized member must also have the right name.

Powered by Google App Engine
This is Rietveld 408576698