function createFileExistsError() {
      test_util.fileSystem.root.getFile(
          TESTING_FILE.name, {create: true, exclusive: true},
          function(entry) {
            chrome.test.fail('Created a file, but should fail.');
          }, chrome.test.callbackPass(function(error) {
            chrome.test.assertEq('InvalidModificationError', error.name);
          }));
    }
// Create a file which exists, exclusively. Should fail.
Create a file which exists, exclusively. Should fail.
Create a file which exists exclusively . Should fail .
function createFileExistsError() {
      test_util.fileSystem.root.getFile(
          TESTING_FILE.name, {create: true, exclusive: true},
          function(entry) {
            chrome.test.fail('Created a file, but should fail.');
          }, chrome.test.callbackPass(function(error) {
            chrome.test.assertEq('InvalidModificationError', error.name);
          }));
    }
function createFileExistsError ( ) { test_util . fileSystem . root . getFile ( TESTING_FILE . name , { create : true , exclusive : true } , function ( entry ) { chrome . test . fail ( 'Created a file, but should fail.' ) ; } , chrome . test . callbackPass ( function ( error ) { chrome . test . assertEq ( 'InvalidModificationError' , error . name ) ; } ) ) ; }
Create a file which exists, exclusively.
Create a file which exists exclusively .