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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_method_rename1_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_method_rename1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart b/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
index a23f8b1e97d6e159e4f94678faff1f7088810f03..485fb5f51b304157d4e9acba620039d54b8b182b 100644
--- a/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
@@ -4,11 +4,13 @@
// Test the feature where the native string declares the native method's name.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
- @native('fooA') int foo();
- @native('barA') int bar();
- @native('bazA') int baz();
+ @Native('fooA') int foo();
+ @Native('barA') int bar();
+ @Native('bazA') int baz();
}
@native A makeA();
@@ -18,7 +20,7 @@ class B {
int baz() => 900;
}
-@native("""
+@Native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function A(){}
A.prototype.fooA = function(){return 100;};

Powered by Google App Engine
This is Rietveld 408576698