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

Unified Diff: tests/language/canonical_const2_test.dart

Issue 10825386: Use JavaScript runtime semantics when constant folding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment and test update. Created 8 years, 3 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
Index: tests/language/canonical_const2_test.dart
diff --git a/samples/hi/hi.dart b/tests/language/canonical_const2_test.dart
similarity index 64%
copy from samples/hi/hi.dart
copy to tests/language/canonical_const2_test.dart
index 77cc144f834513f040b0496efde571b3ea84607a..9f6a02745b7985b7e4a039e516adb820ad41ff8f 100644
--- a/samples/hi/hi.dart
+++ b/tests/language/canonical_const2_test.dart
@@ -1,11 +1,8 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// 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');
+// Check that compile-time constants are correctly canonicalized.
kasperl 2012/09/04 05:57:30 Add newline between copyright header and the test
floitsch 2012/09/04 13:10:42 Done.
main() {
- document.query('#status').innerHTML = 'Hi, Dart';
+ Expect.isTrue(const <num>[1,2] !== const <num>[1.0,2.0]);
}

Powered by Google App Engine
This is Rietveld 408576698