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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_wrapping_function3_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_wrapping_function3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_wrapping_function3_test.dart b/dart/tests/compiler/dart2js_foreign/native_wrapping_function3_test.dart
index ef22da5286031124afa0cd7647a87ba359faefc4..e341171f41539c8c14ef4670db3152cba56d2daa 100644
--- a/dart/tests/compiler/dart2js_foreign/native_wrapping_function3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_wrapping_function3_test.dart
@@ -2,11 +2,13 @@
// 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 Callback0();
typedef void Callback1(arg1);
typedef void Callback2(arg1, arg2);
-@native("*A")
+@Native("*A")
class A {
@native foo1(Callback1 closure, [arg1 = 0]);
@native foo2(Callback2 closure, [arg1 = 0, arg2 = 1]);
@@ -14,7 +16,7 @@ class A {
@native makeA();
-@native("""
+@Native("""
function A() {}
A.prototype.foo1 = function(closure, arg1) { return closure(arg1); };
A.prototype.foo2 = function(closure, arg1, arg2) {

Powered by Google App Engine
This is Rietveld 408576698