blob: 11bd46726a3d0c03355491ae797e3c403b97fd7b [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 sgrekhov@unipro.ru
*/
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);
}