blob: 643f0b1dbd3e8ef41b8e18257bb15817f4f491cb [file] [log] [blame]
/*
* Copyright (c) 2014, 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.
*/
/**
* @description
* @static-warning
*/
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
main() {
debug("Test calling revokeObjectUrl with no argument.");
shouldThrow(() => Url.revokeObjectUrl());
debug("Test calling revokeObjectUrl with empty Url.");
Url.revokeObjectUrl("");
debug("Test calling revokeObjectUrl with invalid Url.");
Url.revokeObjectUrl("[foo bar]");
debug("Test calling revokeObjectUrl with non-existent Url.");
Url.revokeObjectUrl("blob:non-existent");
}