blob: 3aa45d9e3f9ba2e540e7021b7109ebb9a0c357e7 [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.
// @dart = 2.9
/// @assertion String name
/// read / write
/// Gets and sets the name.
/// @description Checks that this property gets and sets the domain
/// @author sgrekhov@unipro.ru
import "dart:io";
import "../../../Utils/expect.dart";
main() {
Cookie cookie = new Cookie.fromSetCookieValue(" cname = cval; " +
"Domain=dartlang.org");
Expect.equals("cname", cookie.name);
cookie.name = "cname2";
Expect.equals("cname2", cookie.name);
cookie.name = "";
Expect.equals("", cookie.name);
}