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

Side by Side Diff: tests/compiler/dart2js_native/issue9182_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Regression test for Issue 9182. The generative constructor body function 5 // Regression test for Issue 9182. The generative constructor body function
6 // should not have the interceptor calling convention. 6 // should not have the interceptor calling convention.
7 7
8 import "dart:_js_helper"; 8 import "dart:_js_helper";
9 import "package:expect/expect.dart"; 9 import "package:expect/expect.dart";
10 10
(...skipping 12 matching lines...) Expand all
23 _x = x; 23 _x = x;
24 _y = y; 24 _y = y;
25 } 25 }
26 } 26 }
27 27
28 void setup() native r""" 28 void setup() native r"""
29 function A(){} 29 function A(){}
30 makeA = function() { return new A; }; 30 makeA = function() { return new A; };
31 """; 31 """;
32 32
33 makeA() native; 33 makeA() native ;
34 34
35 main() { 35 main() {
36 setup(); 36 setup();
37 37
38 var things = [new Foo(), new Bar(30, 40)]; 38 var things = [new Foo(), new Bar(30, 40)];
39 var foo = things[0]; 39 var foo = things[0];
40 var bar = things[1]; 40 var bar = things[1];
41 41
42 Expect.equals(123, foo.Bar()); // Ensure that Foo.Bar is used. 42 Expect.equals(123, foo.Bar()); // Ensure that Foo.Bar is used.
43 43
44 Expect.equals(30, bar._x); 44 Expect.equals(30, bar._x);
45 Expect.equals(40, bar._y); 45 Expect.equals(40, bar._y);
46 } 46 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_native/hash_code_test.dart ('k') | tests/compiler/dart2js_native/js_const_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698