blob: 0b3f71b9affbe13b2cd59d79475f97c866ffa830 [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 bool isBase64
* Whether the data is Base64 encoded or not.
* @description Checks that this property returns true if the data is Base64
* encoded
* @author sgrekhov@unipro.ru
*/
import "../../../Utils/expect.dart";
main() {
Expect.isFalse(UriData.parse("data:text/plain,some data").isBase64);
Expect.isFalse(UriData.parse("data:,some data").isBase64);
Expect.isTrue(UriData.parse("data:;charset=utf-8;base64,somedata").isBase64);
}