B2G/gecko/netwerk/test/unit/test_pinned_app_cache.js
/*
 * Start caching app2 as a non-pinned app.
 *
 * This cache request is supposed to be saved partially in the cache
 * storage for running out of the cache storage.  The offline cache
 * storage can hold 5 files at most.  (kDataFileSize bytes for each
 * file)
 */
Start caching app2 as a non-pinned app.
This cache request is supposed to be saved partially in the cache
storage for running out of the cache storage.  The offline cache
storage can hold 5 files at most.  (kDataFileSize bytes for each
file)
Start caching app2 as a non - pinned app . This cache request is supposed to be saved partially in the cache storage for running out of the cache storage . The offline cache storage can hold 5 files at most . ( kDataFileSize bytes for each file )
function start_cache_nonpinned_app2_for_partial() {
  let error_count = [0];
  do_print("Start non-pinned App2 for partial\n");
  start_and_watch_app_cache(kHttpLocation_ip + "app2.appcache",
                            kHttpLocation_ip + "app2",
                            false,
                            function (update, state) {
                              switch(state) {
                              case STATE_FINISHED:
				start_cache_pinned_app2_for_success();
				break;
                              case STATE_ERROR:
				do_throw("App2 cache state = " + state);
				break;
                              }
                            },
                            function (appcahe) {
                            });
}
function start_cache_nonpinned_app2_for_partial ( ) { let error_count = [ 0 ] ; do_print ( "Start non-pinned App2 for partial\n" ) ; start_and_watch_app_cache ( kHttpLocation_ip + "app2.appcache" , kHttpLocation_ip + "app2" , false , function ( update , state ) { switch ( state ) { case STATE_FINISHED : start_cache_pinned_app2_for_success ( ) ; break ; case STATE_ERROR : do_throw ( "App2 cache state = " + state ) ; break ; } } , function ( appcahe ) { } ) ; }
Start caching app2 as a non-pinned app.
Start caching app2 as a non - pinned app .