| // 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 optionally setting the name and value. |
| /// By default the value of httpOnly will be set to true. |
| /// @description Checks that it is a runtime exception if name is null |
| /// @issue 29463 |
| /// @author sgrekhov@unipro.ru |
| |
| import "dart:io"; |
| import "../../../Utils/expect.dart"; |
| |
| main() { |
| Expect.throws(() { |
| new Cookie(null, "some value"); |
| }); |
| } |