blob: 07d2a6e13d1feba102b8119b4eb6d1773bbbef2c [file] [log] [blame]
// Copyright (c) 2017, 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 Map<String, String> parameters
/// Gets the map of parameters.
/// This map cannot be modified. Invoking any operation which would modify the
/// map will throw UnsupportedError.
/// @description Checks that this property returns map of parameters
/// @author
import "dart:io";
import "../../../Utils/expect.dart";
main() {
HeaderValue hv = new HeaderValue("value", {"p1": "v1", "p2": "v2"});
Expect.mapEquals({"p1": "v1", "p2": "v2"}, hv.parameters);
hv = new HeaderValue();
Expect.mapEquals({}, hv.parameters);