blob: 9674251b08184d1642d0bbbe507369c037865c63 [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 Cookie(String name, String value)
/// Creates a new cookie setting the name and value.
/// By default the value of httpOnly will be set to true.
/// @description Checks that this constructor creates a new Cookie object. Test
/// name and value parameters
/// @author sgrekhov@unipro.ru
import "dart:io";
import "../../../Utils/expect.dart";
main() {
Cookie cookie = new Cookie("cname", "cvalue");
Expect.equals("cname", cookie.name);
Expect.equals("cvalue", cookie.value);
Expect.isTrue(cookie.httpOnly);
}