From 5614ae38adad1a7d96d409f345a322b9e7e963fa Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Wed, 20 Aug 2014 20:13:57 +0000
Subject: [PATCH] add test button to create data in local cloud folder

---
 client/test/shell.html |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/client/test/shell.html b/client/test/shell.html
index ff1e71a..e52824b 100644
--- a/client/test/shell.html
+++ b/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>

--
Gitblit v1.9.3