emscripten Humble Cloud interface
Edward Rudd
2014-08-20 5614ae38adad1a7d96d409f345a322b9e7e963fa

add test button to create data in local cloud folder

1 files modified
9 ■■■■■ changed files
client/test/shell.html 9 ●●●●● patch | view | raw | blame | history
client/test/shell.html
@@ -1212,6 +1212,7 @@
         <span><input type="button" value="List Files" onclick="call_test_function('test_list_files')"></span>
         <span><input type="button" value="Fetch from Cloud" onclick="fetch_from_cloud()"></span>
         <span><input type="button" value="Push to Cloud" onclick="push_to_cloud()"></span>
         <span><input type="button" value="Popuload local Cloud" onclick="populate_user_cloud()"></span>
      </span>
      <canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
    </div>
@@ -1320,6 +1321,14 @@
              Module.print('Sync to Remote', e);
          });
      }
      function populate_user_cloud()
      {
          FS.createFolder('/user_cloud', 'test', true, true);
          FS.createFolder('/user_cloud/test', 'two', true, true);
          FS.writeFile('/user_cloud/test.txt', 'This is a test');
          FS.writeFile('/user_cloud/test/file2.txt', 'This is another test');
          FS.writeFile('/user_cloud/test/two/file3.txt', 'This is another test');
      }
    </script>
    <script async type="text/javascript" src="TestApp.js"></script>
  </body>