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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_metadata.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_metadata.dart
diff --git a/dart/samples/hi/hi.dart b/dart/tests/compiler/dart2js_foreign/native_metadata.dart
similarity index 62%
copy from dart/samples/hi/hi.dart
copy to dart/tests/compiler/dart2js_foreign/native_metadata.dart
index 2ce0f41f920cf65027111390b2f071231db16638..e3a513fc76be372ca10337f481ac9036d4880203 100644
--- a/dart/samples/hi/hi.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_metadata.dart
@@ -2,10 +2,11 @@
// 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.
-library hi;
+library native_metadata;
-import 'dart:html';
-
-main() {
- query('#status').text = 'Hi, Dart';
+class Native {
+ final String info;
+ const Native(this.info);
}
+
+const Native native = const Native(null);

Powered by Google App Engine
This is Rietveld 408576698