function createConfigFailures() {
  chrome.vpnProvider.createConfig('some config name', function() {
    chrome.test.assertEq(chrome.runtime.lastError, undefined);
    chrome.vpnProvider.createConfig('some config name', function() {
      chrome.test.assertEq('Name not unique.',
                           chrome.runtime.lastError.message);
      chrome.vpnProvider.createConfig('', function() {
        chrome.test.assertEq('Empty name not supported.',
                             chrome.runtime.lastError.message);
        chrome.test.succeed();
      });
    });
  });
}
// The below *Failures() function are called with no configuration created.
The below *Failures() function are called with no configuration created.
The below * Failures () function are called with no configuration created .
function createConfigFailures() {
  chrome.vpnProvider.createConfig('some config name', function() {
    chrome.test.assertEq(chrome.runtime.lastError, undefined);
    chrome.vpnProvider.createConfig('some config name', function() {
      chrome.test.assertEq('Name not unique.',
                           chrome.runtime.lastError.message);
      chrome.vpnProvider.createConfig('', function() {
        chrome.test.assertEq('Empty name not supported.',
                             chrome.runtime.lastError.message);
        chrome.test.succeed();
      });
    });
  });
}
function createConfigFailures ( ) { chrome . vpnProvider . createConfig ( 'some config name' , function ( ) { chrome . test . assertEq ( chrome . runtime . lastError , undefined ) ; chrome . vpnProvider . createConfig ( 'some config name' , function ( ) { chrome . test . assertEq ( 'Name not unique.' , chrome . runtime . lastError . message ) ; chrome . vpnProvider . createConfig ( '' , function ( ) { chrome . test . assertEq ( 'Empty name not supported.' , chrome . runtime . lastError . message ) ; chrome . test . succeed ( ) ; } ) ; } ) ; } ) ; }
The below *Failures() function are called with no configuration created.
The below * Failures () function are called with no configuration created .