function testBlobUrlFromContentScript() {
    chrome.extension.onMessage.addListener(function(
        request, sender, sendResponse) {
      if (request == 'kindly_reply_with_blob_url') {
        let blob_url = URL.createObjectURL(new Blob(['success_payload']));
        sendResponse(blob_url);
      } else if (request == 'success_payload') {
        chrome.test.succeed();
      } else {
        chrome.test.fail('Unexpected request: ' + JSON.stringify(request));
      }
    });
  }
// Tests receiving a request from a content script and responding.
Tests receiving a request from a content script and responding.
Tests receiving a request from a content script and responding .
function testBlobUrlFromContentScript() {
    chrome.extension.onMessage.addListener(function(
        request, sender, sendResponse) {
      if (request == 'kindly_reply_with_blob_url') {
        let blob_url = URL.createObjectURL(new Blob(['success_payload']));
        sendResponse(blob_url);
      } else if (request == 'success_payload') {
        chrome.test.succeed();
      } else {
        chrome.test.fail('Unexpected request: ' + JSON.stringify(request));
      }
    });
  }
function testBlobUrlFromContentScript ( ) { chrome . extension . onMessage . addListener ( function ( request , sender , sendResponse ) { if ( request == 'kindly_reply_with_blob_url' ) { let blob_url = URL . createObjectURL ( new Blob ( [ 'success_payload' ] ) ) ; sendResponse ( blob_url ) ; } else if ( request == 'success_payload' ) { chrome . test . succeed ( ) ; } else { chrome . test . fail ( 'Unexpected request: ' + JSON . stringify ( request ) ) ; } } ) ; }
Tests receiving a request from a content script and responding.
Tests receiving a request from a content script and responding .