function StartSingleFileDownloadWithSmallerThanActualDownloadTotal() {
  navigator.serviceWorker.ready.then(swRegistration => {
    const options = {
      icons: kIcon,
      title: 'Single-file Background Fetch with downloadTotal too low',
      downloadTotal: 80,
    };

    return swRegistration.backgroundFetch.fetch(
        kBackgroundFetchId, kBackgroundFetchResource, options);
  }).then(bgFetchRegistration => {
    sendResultToTest('ok');
  }).catch(sendErrorToTest);
}
// downloadTotal smaller than the actual size.
downloadTotal smaller than the actual size.
downloadTotal smaller than the actual size .
function StartSingleFileDownloadWithSmallerThanActualDownloadTotal() {
  navigator.serviceWorker.ready.then(swRegistration => {
    const options = {
      icons: kIcon,
      title: 'Single-file Background Fetch with downloadTotal too low',
      downloadTotal: 80,
    };
    return swRegistration.backgroundFetch.fetch(
        kBackgroundFetchId, kBackgroundFetchResource, options);
  }).then(bgFetchRegistration => {
    sendResultToTest('ok');
  }).catch(sendErrorToTest);
}
function StartSingleFileDownloadWithSmallerThanActualDownloadTotal ( ) { navigator . serviceWorker . ready . then ( swRegistration => { const options = { icons : kIcon , title : 'Single-file Background Fetch with downloadTotal too low' , downloadTotal : 80 , } ; return swRegistration . backgroundFetch . fetch ( kBackgroundFetchId , kBackgroundFetchResource , options ) ; } ) . then ( bgFetchRegistration => { sendResultToTest ( 'ok' ) ; } ) . catch ( sendErrorToTest ) ; }
downloadTotal smaller than the actual size.
downloadTotal smaller than the actual size .