summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/files/create-blob-url-crash.html
blob: a68bc992ba9e7300db3ac826a389240f22983f84 (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
<!DOCTYPE html>
<html>
<head>
<script>
function log(message)
{
    document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
}

function test()
{
    log("Test that createObjectURL with no argument should throw an exception.");
    try {
        var url = URL.createObjectURL();
        log("FAIL");
    } catch(err) {
        log("PASS: " + err.message);
    }

    log("DONE");
}

if (window.testRunner)
    testRunner.dumpAsText();
</script>
</head>
<body onload="test()">
<pre id='console'></pre>
</body>
</html>