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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_null_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_null_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_null_test.dart b/dart/tests/compiler/dart2js_foreign/native_null_test.dart
index f22046f3a2ae4f3e98e5c73e5145781d99e7e91f..77db0800fd50a4d8a9fb166ee46bec5d137c9bbf 100644
--- a/dart/tests/compiler/dart2js_foreign/native_null_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_null_test.dart
@@ -5,21 +5,23 @@
// Test that parameters in native methods are not mangled. This test is needed
// until we change all libraries to using the JS foreign element.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
- @native("return null;")
+ @Native("return null;")
returnNull();
- @native("return undefined;")
+ @Native("return undefined;")
returnUndefined();
- @native("return '';")
+ @Native("return '';")
returnEmptyString();
- @native("return 0;")
+ @Native("return 0;")
returnZero();
}
@native A makeA();
-@native("""
+@Native("""
function A() {}
makeA = function(){return new A;};
""")

Powered by Google App Engine
This is Rietveld 408576698