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

Unified Diff: tests/compiler/dart2js_extra/math_lib_test.dart

Issue 10694067: Make patch file import declarations apply to the patched library too. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comment. Fix typo. Created 8 years, 6 months 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
« no previous file with comments | « tests/compiler/dart2js_extra/math_lib_prefix_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/math_lib_test.dart
diff --git a/samples/hi/hi.dart b/tests/compiler/dart2js_extra/math_lib_test.dart
similarity index 71%
copy from samples/hi/hi.dart
copy to tests/compiler/dart2js_extra/math_lib_test.dart
index 77cc144f834513f040b0496efde571b3ea84607a..91d8f4c26f2267080a31b4dcbf147845ca13f4b2 100644
--- a/samples/hi/hi.dart
+++ b/tests/compiler/dart2js_extra/math_lib_test.dart
@@ -2,10 +2,9 @@
// 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');
-
-#import('dart:html');
+#import("dart:math");
main() {
- document.query('#status').innerHTML = 'Hi, Dart';
+ Expect.equals(2.0, sqrt(4));
+ Expect.equals(2.25, pow(1.5, 2.0));
}
« no previous file with comments | « tests/compiler/dart2js_extra/math_lib_prefix_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698