emscripten Humble Cloud interface
Edward Rudd
2014-10-14 aab81a154d65fc4ca6abf9b20dded5504bb724a0

don't auto fetch cloud data in shell sample.. and log to console the sync test commands

1 files modified
17 ■■■■ changed files
client/test/shell.html 17 ●●●● patch | view | raw | blame | history
client/test/shell.html
@@ -1237,12 +1237,6 @@
          if (element) element.value = ''; // clear browser cache
          return function(text) {
            text = Array.prototype.slice.call(arguments).join(' ');
            // These replacements are necessary if you render to raw HTML
            //text = text.replace(/&/g, "&");
            //text = text.replace(/</g, "&lt;");
            //text = text.replace(/>/g, "&gt;");
            //text = text.replace('\n', '<br>', 'g');
//            console.log(text);
            if (element) {
              element.value += text + "\n";
              element.scrollTop = element.scrollHeight; // focus on bottom
@@ -1320,7 +1314,6 @@
      });
      Module['preRun'].push(function() {
          var provider_name = '@TEST_CLOUD_PROVIDER@';
          addRunDependency('CLOUDFS_setup');
          FS.createFolder('/', 'user_data', true, true);
@@ -1345,12 +1338,6 @@
          } else { // Cloud provider not available
              FS.mount(IDBFS, {}, '/user_data');
          }
          FS.syncfs(true, function(err) {
              if(err) console.log('ERROR!', err);
              console.log('finished syncing.. YEAH!!!');
              removeRunDependency('CLOUDFS_setup');
          });
      });
      var test_functions = {};
      var test_function_args = {
@@ -1369,13 +1356,13 @@
      function fetch_from_cloud()
      {
          FS.syncfs(true, function(e) {
              Module.print('Sync from Remote', e);
              console.log('Sync from Remote', e);
          });
      }
      function push_to_cloud()
      {
          FS.syncfs(function(e) {
              Module.print('Sync to Remote', e);
              console.log('Sync to Remote', e);
          });
      }
      function populate_user_data()