blob: a6fad23ec90be08daf76013d49df7e8b8ba9a9d5 [file] [log] [blame]
// Copyright (c) 2018, 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 bool supportsAnsiEscapes
/// Whether connected to a terminal that supports ANSI escape sequences.
/// @description Checks that [supportsAnsiExcapes] is a read-only property.
/// @author
import "../../../Utils/expect.dart";
import "dart:io";
main(List<String> args) {
dynamic check = stdin;
Expect.throws(() { check.supportsAnsiEscapes = true; },
(e) => e is NoSuchMethodError);