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

Side by Side Diff: tests/compiler/dart2js_native/native_field_invocation3_test.dart

Issue 421483002: Remove old frog-style dummy bodies from dart2js native class tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import "dart:_js_helper"; 5 import "dart:_js_helper";
6 import 'dart:_foreign_helper' show JS;
Johnni Winther 2014/07/25 06:37:06 Not needed (yet), right?
6 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
7 8
8 makeCC() native; 9 makeCC() native;
9 10
10 void setup() native """ 11 void setup() native """
11 function CC() {} 12 function CC() {}
12 makeCC = function() { return new CC; } 13 makeCC = function() { return new CC; }
13 """; 14 """;
14 15
15 16
(...skipping 17 matching lines...) Expand all
33 } 34 }
34 35
35 main() { 36 main() {
36 setup(); 37 setup();
37 var c = makeCC(); 38 var c = makeCC();
38 c.init(); 39 c.init();
39 // `foo` contains a closure. Make sure that invoking foo through an 40 // `foo` contains a closure. Make sure that invoking foo through an
40 // interceptor works. 41 // interceptor works.
41 Expect.equals("### !!! 499 !!! ###", c.foo(499)); 42 Expect.equals("### !!! 499 !!! ###", c.foo(499));
42 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698