blob: 16acb5c6594a870103e10423c32aa6f9a7c5f99d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<!DOCTYPE html>
<html>
<head>
<script>
function log(message)
{
document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
}
function test()
{
log("Test calling revokeBlobURL with no argument.");
var url = revokeBlobURL();
log(url == undefined ? "PASS" : "FAIL");
log("Test calling revokeBlobURL with empty URL.");
revokeBlobURL("");
log("PASS");
log("Test calling revokeBlobURL with invalid URL.");
revokeBlobURL("[foo bar]");
log("PASS");
log("Test calling revokeBlobURL with non-existent URL.");
revokeBlobURL("blob:non-existent");
log("PASS");
log("DONE");
}
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
</head>
<body onload="test()">
<pre id='console'></pre>
</body>
</html>
|