blob: 50d9f1a97c4cdb82970746e100c3b693690ce260 [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 HtmlEscapeMode mode
* The HtmlEscapeMode used by the converter.
* @description Checks that this property returns HtmlEscapeMode used by the
* converter
* @author
import "dart:convert";
import "../../../Utils/expect.dart";
main() {
HtmlEscape converter = new HtmlEscape();
Expect.equals(HtmlEscapeMode.unknown, converter.mode);
converter = new HtmlEscape(HtmlEscapeMode.element);
Expect.equals(HtmlEscapeMode.element, converter.mode);
converter = new HtmlEscape(HtmlEscapeMode.attribute);
Expect.equals(HtmlEscapeMode.attribute, converter.mode);
converter = new HtmlEscape(HtmlEscapeMode.sqAttribute);
Expect.equals(HtmlEscapeMode.sqAttribute, converter.mode);