function runTests() {
  chrome.test.runTests([
    // Verify that if no window nor tab is opened, then the request will let
    // users abort the operation via notification.
    function unresponsiveWithoutUI() {
      chrome.fileManagerPrivate.configureVolume(test_util.volumeId,
          chrome.test.callbackFail('Failed to complete configuration.',
              function() {}));
    },

    // Verify that if a tab is opened, then the request will not invoke
    // a notification.
    function unresponsiveWithTab() {
      chrome.tabs.create(
          {url: 'stub.html'},
          chrome.test.callbackPass(function(tab) {
            lastTabId = tab.id;
            chrome.fileManagerPrivate.configureVolume(test_util.volumeId,
                chrome.test.callbackPass(function() {}))
          }));
    },

    // Verify that if a window is opened, then the request will not invoke
    // a notification.
    function unresponsiveWithWindow() {
      chrome.tabs.remove(lastTabId, chrome.test.callbackPass(function() {
        chrome.windows.create(
            {url: 'stub.html'},
            chrome.test.callbackPass(function(ignore) {
              chrome.fileManagerPrivate.configureVolume(test_util.volumeId,
                  chrome.test.callbackPass(function() {}))
            }));
      }));
    },
  ]);
}
/**
 * Runs all of the test cases, one by one.
 */
Runs all of the test cases, one by one.
Runs all of the test cases one by one .
function runTests() {
  chrome.test.runTests([
    function unresponsiveWithoutUI() {
      chrome.fileManagerPrivate.configureVolume(test_util.volumeId,
          chrome.test.callbackFail('Failed to complete configuration.',
              function() {}));
    },
    function unresponsiveWithTab() {
      chrome.tabs.create(
          {url: 'stub.html'},
          chrome.test.callbackPass(function(tab) {
            lastTabId = tab.id;
            chrome.fileManagerPrivate.configureVolume(test_util.volumeId,
                chrome.test.callbackPass(function() {}))
          }));
    },
    function unresponsiveWithWindow() {
      chrome.tabs.remove(lastTabId, chrome.test.callbackPass(function() {
        chrome.windows.create(
            {url: 'stub.html'},
            chrome.test.callbackPass(function(ignore) {
              chrome.fileManagerPrivate.configureVolume(test_util.volumeId,
                  chrome.test.callbackPass(function() {}))
            }));
      }));
    },
  ]);
}
function runTests ( ) { chrome . test . runTests ( [ function unresponsiveWithoutUI ( ) { chrome . fileManagerPrivate . configureVolume ( test_util . volumeId , chrome . test . callbackFail ( 'Failed to complete configuration.' , function ( ) { } ) ) ; } , function unresponsiveWithTab ( ) { chrome . tabs . create ( { url : 'stub.html' } , chrome . test . callbackPass ( function ( tab ) { lastTabId = tab . id ; chrome . fileManagerPrivate . configureVolume ( test_util . volumeId , chrome . test . callbackPass ( function ( ) { } ) ) } ) ) ; } , function unresponsiveWithWindow ( ) { chrome . tabs . remove ( lastTabId , chrome . test . callbackPass ( function ( ) { chrome . windows . create ( { url : 'stub.html' } , chrome . test . callbackPass ( function ( ignore ) { chrome . fileManagerPrivate . configureVolume ( test_util . volumeId , chrome . test . callbackPass ( function ( ) { } ) ) } ) ) ; } ) ) ; } , ] ) ; }
Runs all of the test cases, one by one.
Runs all of the test cases one by one .
// Verify that if no window nor tab is opened, then the request will let // users abort the operation via notification. // Verify that if a tab is opened, then the request will not invoke // a notification. // Verify that if a window is opened, then the request will not invoke // a notification.