Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / resources / create-filesystem-file.html
blobba17d27eead6962aefee7b9c8e30328db11c4f49
1 <html>
2 <head>
3 <script>
4 function createFile() {
5 webkitRequestFileSystem(TEMPORARY, 100, function(fs) {
6 fs.root.getFile("page.html", {create:true}, function(entry) {
7 entry.createWriter(function(writer) {
8 writer.onwrite = function() {
9 console.log(entry.toURL() + " created.");
10 window.top.postMessage('file created', '*');
12 writer.write(new Blob(['<div id="innerDiv">Visible Contents</div>\n']));
13 });
14 });
15 });
18 if (window.webkitRequestFileSystem)
19 createFile();
20 else
21 console.error("This test requires FileSystem support.");
22 </script>
23 </head>
24 </html>