3 <script type=
"text/javascript">
6 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
14 var t
= setInterval(function(){
17 var blobURL
= location
.hash
.substr(1);
18 if (blobURL
== "null")
19 log("FAIL: no blob URL is created");
21 log("PASS: created blob URL");
23 if (window
.testRunner
)
24 testRunner
.notifyDone();
29 <p> Test case for checking blob URL can be created from the code running from data URI
</p>
30 <pre id='console'
></pre>
31 <iframe src=
"data:text/html,%3Cscript%3Evar%20bb%20%3D%20new%20Blob%28%5B%22Foo%22%5D%2C%20%7Btype%3A%22text%2Fhtml%22%7D%29%3Btop.location%3D%27http%3A%2F%2F127.0.0.1%3A8000%2Ffileapi%2Fcreate-blob-url-from-data-url.html%23%27%20%2B%20window.URL.createObjectURL%28bb%29%3B%3C%2Fscript%3E"></iframe>