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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_exceptions1_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_exceptions1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_exceptions1_test.dart b/dart/tests/compiler/dart2js_foreign/native_exceptions1_test.dart
index bfd945d05d497777e3beafc372f552c53d01b6a2..40f5b9e27cdbaa2628999beee6827bd3c567b5ef 100644
--- a/dart/tests/compiler/dart2js_foreign/native_exceptions1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_exceptions1_test.dart
@@ -13,9 +13,10 @@
// is no place in the Dart language to communicate (3). So we use the following
// fake body technique.
+import 'native_metadata.dart';
// The exception type.
-@native("*E")
+@Native("*E")
class E {
@native E._used(); // Bogus native constructor, called only from fake body.
@@ -23,7 +24,7 @@ class E {
}
// Type with exception-throwing methods.
-@native("*A")
+@Native("*A")
class A {
@native op(int x) {
// Fake body calls constructor to mark the exception class (E) as used.
@@ -39,14 +40,14 @@ class B {
@native makeA();
-@native("""
+@Native("""
// Ensure we are not relying on global names 'A' and 'E'.
A = null;
E = null;
""")
void setup1();
-@native("""
+@Native("""
// This code is all inside 'setup2' and so not accesible from the global scope.
function E(x){ this.code = x; }

Powered by Google App Engine
This is Rietveld 408576698