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']));
18 if (window
.webkitRequestFileSystem
)
21 console
.error("This test requires FileSystem support.");