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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_no_such_method_exception3_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_exception3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart b/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart
index 5779fb4a57142f11e17c7185a8a458701c8999c9..4aadd1b1ac514b01f5da32f3157f7dbf04038a2a 100644
--- a/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart
@@ -2,12 +2,14 @@
// 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 {
bar() => 42;
}
-@native("*B")
+@Native("*B")
class B {
foo() => 42;
}
@@ -19,7 +21,7 @@ class C {
@native makeA();
-@native("""
+@Native("""
function A() {}
makeA = function() { return new A; }
""")

Powered by Google App Engine
This is Rietveld 408576698