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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_named_constructors3_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_named_constructors3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
index a0319bc9bc8357d0e4bc6edbbc5e456ce107647b..18bba8e1ec3c307669939fe871338783d3f5cdfb 100644
--- a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
@@ -5,8 +5,9 @@
// Hidden native class with factory constructors and NO static methods.
// Regression test.
+import 'native_metadata.dart';
-@native("*A")
+@Native("*A")
class A {
// No static methods in this class.
@@ -15,16 +16,16 @@ class A {
factory A.fromString(String s) => makeA(s.length);
- @native(r'return makeA(a+b);')
+ @Native(r'return makeA(a+b);')
factory A.nativeConstructor(int a, int b);
- @native('return this._x;')
+ @Native('return this._x;')
foo();
}
@native makeA(v);
-@native("""
+@Native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function A(arg) { this._x = arg; }
makeA = function(arg) { return new A(arg); }

Powered by Google App Engine
This is Rietveld 408576698