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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_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_no_such_method_exception2_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart b/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart
index 84740ef8a4623ea0c360bd4aa23497c689490d4c..65f95174d3c5814e86bc0e995ba4400f9a392e67 100644
--- a/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_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.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
}
-@native("*B")
+@Native("*B")
class B extends A {
@native foo();
}
@@ -14,7 +16,7 @@ class B extends A {
@native makeA();
@native makeB();
-@native("""
+@Native("""
function inherits(child, parent) {
if (child.prototype.__proto__) {
child.prototype.__proto__ = parent.prototype;

Powered by Google App Engine
This is Rietveld 408576698