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

Unified Diff: tests/compiler/dart2js_native/native_class_fields_2_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_class_fields_2_test.dart
diff --git a/tests/compiler/dart2js_native/native_class_fields_2_test.dart b/tests/compiler/dart2js_native/native_class_fields_2_test.dart
index 4e67b816f58fe0d3bef24c3675e7c7bf655a2e60..419d82fc8ea05d46751e566c7d3cb968c692f23f 100644
--- a/tests/compiler/dart2js_native/native_class_fields_2_test.dart
+++ b/tests/compiler/dart2js_native/native_class_fields_2_test.dart
@@ -15,7 +15,6 @@ class A {
int gettersCalled;
}
-
void setup() native r"""
function getter() {
this.gettersCalled++;
@@ -36,37 +35,37 @@ function A(){
makeA = function() { return new A; };
""";
-A makeA() native;
+A makeA() native ;
class B {
- void a() { }
- void a0() { }
- void a1() { }
- void a2() { }
- void a3() { }
- void a4() { }
- void a5() { }
- void a6() { }
- void a7() { }
- void a8() { }
- void a9() { }
- void a10() { }
- void a11() { }
- void a12() { }
- void a13() { }
- void a14() { }
- void a15() { }
- void a16() { }
- void a17() { }
- void a18() { }
- void a19() { }
- void a20() { }
- void a21() { }
- void a22() { }
- void a23() { }
- void a24() { }
- void a25() { }
- void a26() { }
+ void a() {}
+ void a0() {}
+ void a1() {}
+ void a2() {}
+ void a3() {}
+ void a4() {}
+ void a5() {}
+ void a6() {}
+ void a7() {}
+ void a8() {}
+ void a9() {}
+ void a10() {}
+ void a11() {}
+ void a12() {}
+ void a13() {}
+ void a14() {}
+ void a15() {}
+ void a16() {}
+ void a17() {}
+ void a18() {}
+ void a19() {}
+ void a20() {}
+ void a21() {}
+ void a22() {}
+ void a23() {}
+ void a24() {}
+ void a25() {}
+ void a26() {}
int z = 0;
}
@@ -80,34 +79,90 @@ main() {
// these functions. The important thing is that none of them have been
// renamed to be called 'z' by the minifier, because then the getter will be
// hit.
- try { x.a(); } catch(e) { }
- try { x.a0(); } catch(e) { }
- try { x.a1(); } catch(e) { }
- try { x.a2(); } catch(e) { }
- try { x.a3(); } catch(e) { }
- try { x.a4(); } catch(e) { }
- try { x.a5(); } catch(e) { }
- try { x.a6(); } catch(e) { }
- try { x.a7(); } catch(e) { }
- try { x.a8(); } catch(e) { }
- try { x.a9(); } catch(e) { }
- try { x.a10(); } catch(e) { }
- try { x.a11(); } catch(e) { }
- try { x.a12(); } catch(e) { }
- try { x.a13(); } catch(e) { }
- try { x.a14(); } catch(e) { }
- try { x.a15(); } catch(e) { }
- try { x.a16(); } catch(e) { }
- try { x.a17(); } catch(e) { }
- try { x.a18(); } catch(e) { }
- try { x.a19(); } catch(e) { }
- try { x.a20(); } catch(e) { }
- try { x.a21(); } catch(e) { }
- try { x.a12(); } catch(e) { }
- try { x.a23(); } catch(e) { }
- try { x.a24(); } catch(e) { }
- try { x.a25(); } catch(e) { }
- try { x.a26(); } catch(e) { }
+ try {
+ x.a();
+ } catch (e) {}
+ try {
+ x.a0();
+ } catch (e) {}
+ try {
+ x.a1();
+ } catch (e) {}
+ try {
+ x.a2();
+ } catch (e) {}
+ try {
+ x.a3();
+ } catch (e) {}
+ try {
+ x.a4();
+ } catch (e) {}
+ try {
+ x.a5();
+ } catch (e) {}
+ try {
+ x.a6();
+ } catch (e) {}
+ try {
+ x.a7();
+ } catch (e) {}
+ try {
+ x.a8();
+ } catch (e) {}
+ try {
+ x.a9();
+ } catch (e) {}
+ try {
+ x.a10();
+ } catch (e) {}
+ try {
+ x.a11();
+ } catch (e) {}
+ try {
+ x.a12();
+ } catch (e) {}
+ try {
+ x.a13();
+ } catch (e) {}
+ try {
+ x.a14();
+ } catch (e) {}
+ try {
+ x.a15();
+ } catch (e) {}
+ try {
+ x.a16();
+ } catch (e) {}
+ try {
+ x.a17();
+ } catch (e) {}
+ try {
+ x.a18();
+ } catch (e) {}
+ try {
+ x.a19();
+ } catch (e) {}
+ try {
+ x.a20();
+ } catch (e) {}
+ try {
+ x.a21();
+ } catch (e) {}
+ try {
+ x.a12();
+ } catch (e) {}
+ try {
+ x.a23();
+ } catch (e) {}
+ try {
+ x.a24();
+ } catch (e) {}
+ try {
+ x.a25();
+ } catch (e) {}
+ try {
+ x.a26();
+ } catch (e) {}
Expect.equals(0, x.gettersCalled);
Expect.equals(42, x.z);
Expect.equals(1, x.gettersCalled);

Powered by Google App Engine
This is Rietveld 408576698