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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_missing_method2_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_missing_method2_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_missing_method2_test.dart b/dart/tests/compiler/dart2js_foreign/native_missing_method2_test.dart
index 13feebd602f2ee0b03e563872e8c9d55796c398a..fb99986e903aa077be0d7c1a81594ee5074af4aa 100644
--- a/dart/tests/compiler/dart2js_foreign/native_missing_method2_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_missing_method2_test.dart
@@ -2,13 +2,15 @@
// 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 makeA();
-@native("""
+@Native("""
function A() {};
A.prototype.foo = function() { return 42; }
makeA = function() { return new A; }

Powered by Google App Engine
This is Rietveld 408576698