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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart

Issue 11293272: Update dart2js_foreign suite as we now validate annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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: dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart b/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
index 11fbc3b89ef315e4e5fb71046fbeb3854ea02fa6..1ba6c2ff56007230fedc96e0807322d179a2f48f 100644
--- a/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
@@ -2,9 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'native_metadata.dart';
+
typedef void MyFunctionType();
-@native("*A")
+@Native("*A")
class A {
@native setClosure(MyFunctionType f);
@native check(MyFunctionType f);
@@ -13,7 +15,7 @@ class A {
@native makeA() { return new A(); }
-@native("""
+@Native("""
function A() {}
A.prototype.setClosure = function(f) { this.f = f; };
A.prototype.check = function(f) { return this.f === f; };

Powered by Google App Engine
This is Rietveld 408576698