blob: 555d38b5895a96659a5a2ea91e50160f3074a728 [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 Encoding getByName(String name)
* Gets an Encoding object from the name of the character set name. The names
* used are the IANA official names for the character set (see
* The name passed is case insensitive.
* If character set is not supported null is returned.
* @description Checks that this method returns instance of the Encoding for
* valid encoding name
* @author
import "dart:convert";
import "../../../Utils/expect.dart";
List<String> encodings = [
main() {
encodings.forEach((String encodingName) {
Encoding e = Encoding.getByName(encodingName);
Expect.isNotNull(e, "Encoding " + encodingName + " is not supported");