blob: a9c9d91b13e729042a61ea4fc2ad3f37185191b2 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description("Test instanceof functions and properties of URL and webkitURL.");
var url = new URL('http://www.domain.com/');
shouldBeTrue("'createObjectURL' in URL");
shouldBeTrue("'revokeObjectURL' in URL");
shouldBeUndefined("url.createObjectURL");
shouldBeUndefined("url.revokeObjectURL");
shouldBeDefined("window.URL.createObjectURL");
shouldBeDefined("window.URL.revokeObjectURL");
// Following tests remain valid until we actually deprecate webkitURL.
shouldBeTrue("'createObjectURL' in webkitURL");
shouldBeTrue("'revokeObjectURL' in webkitURL");
shouldBeDefined("window.webkitURL.createObjectURL");
shouldBeDefined("window.webkitURL.revokeObjectURL");
</script>
</body>
</html>