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

Unified Diff: tests/compiler/dart2js_native/native_method_rename3_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_method_rename3_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_method_rename3_frog_test.dart b/tests/compiler/dart2js_native/native_method_rename3_frog_test.dart
index 433ff452bfe8667eb2f4b3efea73c9a1c122111d..fcfd40bc224fb1224cd6fa2466a7ca293ea3204a 100644
--- a/tests/compiler/dart2js_native/native_method_rename3_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_method_rename3_frog_test.dart
@@ -11,13 +11,13 @@ import 'dart:_js_helper' show Native, JSName;
@Native("A")
class A {
@JSName('fooA')
- int foo() native;
+ int foo() native ;
}
@Native("B")
class B extends A {
@JSName('fooB')
- int foo() native;
+ int foo() native ;
int fooA() => 333;
}
@@ -26,9 +26,8 @@ class Decoy {
int fooB() => 999;
}
-makeA() native;
-makeB() native;
-
+makeA() native ;
+makeB() native ;
void setup() native """
// This code is all inside 'setup' and so not accesible from the global scope.
@@ -63,11 +62,17 @@ testDynamic() {
Expect.equals(666, d.fooA());
Expect.equals(999, d.fooB());
- expectNoSuchMethod((){ a.fooA(); }, 'fooA should be invisible on A');
+ expectNoSuchMethod(() {
+ a.fooA();
+ }, 'fooA should be invisible on A');
Expect.equals(333, b.fooA());
- expectNoSuchMethod((){ a.fooB(); }, 'fooB should be absent on A');
- expectNoSuchMethod((){ b.fooB(); }, 'fooA should be invisible on B');
+ expectNoSuchMethod(() {
+ a.fooB();
+ }, 'fooB should be absent on A');
+ expectNoSuchMethod(() {
+ b.fooB();
+ }, 'fooA should be invisible on B');
}
testTyped() {

Powered by Google App Engine
This is Rietveld 408576698