| Index: tests/corelib/uri_base_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/constant_fold_number_dart2_j_s_test.dart b/tests/corelib/uri_base_test.dart
|
| similarity index 58%
|
| copy from tests/compiler/dart2js_extra/constant_fold_number_dart2_j_s_test.dart
|
| copy to tests/corelib/uri_base_test.dart
|
| index aab61d722206c722719646d16f179a50f4d31fca..0954aabeeed9b373a164d69b7673d8e529a7600d 100644
|
| --- a/tests/compiler/dart2js_extra/constant_fold_number_dart2_j_s_test.dart
|
| +++ b/tests/corelib/uri_base_test.dart
|
| @@ -1,15 +1,15 @@
|
| // Copyright (c) 2012, 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.
|
| -// This test is making sure we don't try to constant fold numbers
|
| -// where the semantics differ at compile-time (Dart) and runtime (JS).
|
|
|
| import "package:expect/expect.dart";
|
|
|
| -foo() => 0.0;
|
| -bar() => 0;
|
| -
|
| main() {
|
| - Expect.equals(foo(), bar());
|
| - Expect.equals(0.0, 0);
|
| + try {
|
| + Uri base = Uri.base;
|
| + Expect.isTrue(Uri.base.scheme == "file" || Uri.base.scheme == "http");
|
| + } on UnsupportedError catch (e) {
|
| + Expect.isTrue(
|
| + e.toString().contains("'Uri.base' is not supported"));
|
| + }
|
| }
|
|
|