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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_use_native_name_in_table_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_use_native_name_in_table_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_use_native_name_in_table_test.dart b/dart/tests/compiler/dart2js_foreign/native_use_native_name_in_table_test.dart
index 652f184db5b8e89e576a99c1c61911e92caf255e..b57e2679bd8c68a6363664b2da4ab8ef48de0baf 100644
--- a/dart/tests/compiler/dart2js_foreign/native_use_native_name_in_table_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_use_native_name_in_table_test.dart
@@ -5,19 +5,21 @@
// Test that we put native names and not Dart names into the dynamic
// dispatch table.
-@native("*NativeA")
+import 'native_metadata.dart';
+
+@Native("*NativeA")
class A {
@native foo();
}
-@native("*NativeB")
+@Native("*NativeB")
class B extends A {
}
@native A makeA() { return new A(); }
@native B makeB() { return new B(); }
-@native("""
+@Native("""
function inherits(child, parent) {
if (child.prototype.__proto__) {
child.prototype.__proto__ = parent.prototype;

Powered by Google App Engine
This is Rietveld 408576698