Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / fileapi / create-blob-url-from-data-url.html
blob5a6994e09ed89cbd7977f8f5d392996e348e9e80
1 <html>
2 <head>
3 <script type="text/javascript">
4 function log(message)
6 document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
14 var t = setInterval(function(){
15 if (!location.hash)
16 return;
17 var blobURL = location.hash.substr(1);
18 if (blobURL == "null")
19 log("FAIL: no blob URL is created");
20 else
21 log("PASS: created blob URL");
22 clearInterval(t);
23 if (window.testRunner)
24 testRunner.notifyDone();
25 }, 100)
26 </script>
27 </head>
28 <body>
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>
32 </body>
33 </html>