| Index: tests/standalone/io/url_encoding_test.dart
|
| diff --git a/tests/standalone/io/url_encoding_test.dart b/tests/standalone/io/url_encoding_test.dart
|
| index 33b131ccd6dcc393c1ab1c76c3e40494159d9a21..17b4588856053b2dbef3949d53c48a19c0370ad0 100644
|
| --- a/tests/standalone/io/url_encoding_test.dart
|
| +++ b/tests/standalone/io/url_encoding_test.dart
|
| @@ -2,15 +2,6 @@
|
| // 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("dart:utf");
|
| -#source("../../../runtime/bin/input_stream.dart");
|
| -#source("../../../runtime/bin/output_stream.dart");
|
| -#source("../../../runtime/bin/chunked_stream.dart");
|
| -#source("../../../runtime/bin/string_stream.dart");
|
| -#source("../../../runtime/bin/stream_util.dart");
|
| -#source("../../../runtime/bin/http.dart");
|
| -#source("../../../runtime/bin/http_impl.dart");
|
| -#source("../../../runtime/bin/http_parser.dart");
|
| #source("../../../runtime/bin/http_utils.dart");
|
|
|
| void testParseEncodedString() {
|
| @@ -22,17 +13,14 @@ void testParseEncodedString() {
|
| void testParseQueryString() {
|
| // The query string includes escaped "?"s, "&"s, "%"s and "="s.
|
| // These should not affect the splitting of the string.
|
| - String queryString =
|
| - '%3F=%3D&foo=bar&%26=%25&sqrt2=%E2%88%9A2&name=Franti%C5%A1ek';
|
| + String queryString = '%3F=%3D&foo=bar&%26=%25';
|
| Map<String, String> map = _HttpUtils.splitQueryString(queryString);
|
| for (String key in map.getKeys()) {
|
| - Expect.equals(map[key], { '&' : '%',
|
| - 'foo' : 'bar',
|
| - '?' : '=',
|
| - 'sqrt2' : '\u221A2',
|
| - 'name' : 'Franti\u0161ek'}[key]);
|
| + Expect.equals(map[key], { '&' : '%',
|
| + 'foo' : 'bar',
|
| + '?' : '='}[key]);
|
| }
|
| - Expect.setEquals(map.getKeys(), ['&', '?', 'foo', 'sqrt2', 'name']);
|
| + Expect.setEquals(map.getKeys(), ['&', '?', 'foo']);
|
| }
|
|
|
| void main() {
|
|
|