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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_wrapping_function2_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_function2_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_wrapping_function2_test.dart b/dart/tests/compiler/dart2js_foreign/native_wrapping_function2_test.dart
index 9690d893df535d864917fc197798980fdb6b4363..a123a1f549e8501b71696325803946f7c4e3753b 100644
--- a/dart/tests/compiler/dart2js_foreign/native_wrapping_function2_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_wrapping_function2_test.dart
@@ -2,28 +2,30 @@
// 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("return closure();")
+ @Native("return closure();")
foo0(Callback0 closure);
- @native("return closure(arg1);")
+ @Native("return closure(arg1);")
foo1(Callback1 closure, arg1);
- @native("return closure(arg1, arg2);")
+ @Native("return closure(arg1, arg2);")
foo2(Callback2 closure, arg1, arg2);
- @native("return closure == (void 0) ? 42 : closure();")
+ @Native("return closure == (void 0) ? 42 : closure();")
foo3([Callback0 closure]);
}
@native makeA();
-@native("""
+@Native("""
function A() {}
makeA = function(){return new A;};
""")

Powered by Google App Engine
This is Rietveld 408576698