blob: b7e4ba3d2f335949c1593f7a03c75dd18c215212 [file] [log] [blame]
/*
* 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.
*/
/**
* @assertion factory Uri.https(String authority, String unencodedPath,
* [Map<String, String> queryParameters])
* Creates a new https URI from authority, path and query.
* The path component is set from the unencodedPath argument. The path passed
* must not be encoded as this constructor encodes the path.
* @description Checks expected path settings
* @author ilya
* @reviewer
*/
import "../../../Utils/expect.dart";
main() {
var x = new Uri.https('', 'foo/bar');
Expect.equals('foo/bar', x.path);
x = new Uri.https('', '/foo/\u0000/\u0001');
Expect.equals('/foo/%00/%01', x.path);
}