415d53b557
Uri.base returns the natural base URI for the current platform. R=ahe@google.com, floitsch@google.com, iposva@google.com, rnystrom@google.com BUG= Review URL: https://codereview.chromium.org//23686021 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27877 260f80e4-7a28-3924-810f-c04153c831b5
16 lines
496 B
Dart
16 lines
496 B
Dart
// 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.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
main() {
|
|
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"));
|
|
}
|
|
}
|