blob: 460d4cd7340af0622f37a159d3b52c5490da84dd [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 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
import "dart:io";
import "../../../Utils/expect.dart";
main() {
Cookie cookie = new Cookie("cname", "cvalue");
Expect.equals("cvalue", cookie.value);