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]); |
} |