function createFileOrOpenSuccess() {
      test_util.fileSystem.root.getFile(
          TESTING_FILE.name, {create: true, exclusive: false},
          chrome.test.callbackPass(function(entry) {
            chrome.test.assertEq(TESTING_FILE.name, entry.name);
            chrome.test.assertFalse(entry.isDirectory);
          }), function(error) {
            chrome.test.fail(error.name);
          });
    }
// Create a file which exists, non-exclusively. Should succeed.
Create a file which exists, non-exclusively. Should succeed.
Create a file which exists non - exclusively . Should succeed .
function createFileOrOpenSuccess() {
      test_util.fileSystem.root.getFile(
          TESTING_FILE.name, {create: true, exclusive: false},
          chrome.test.callbackPass(function(entry) {
            chrome.test.assertEq(TESTING_FILE.name, entry.name);
            chrome.test.assertFalse(entry.isDirectory);
          }), function(error) {
            chrome.test.fail(error.name);
          });
    }
function createFileOrOpenSuccess ( ) { test_util . fileSystem . root . getFile ( TESTING_FILE . name , { create : true , exclusive : false } , chrome . test . callbackPass ( function ( entry ) { chrome . test . assertEq ( TESTING_FILE . name , entry . name ) ; chrome . test . assertFalse ( entry . isDirectory ) ; } ) , function ( error ) { chrome . test . fail ( error . name ) ; } ) ; }
Create a file which exists, non-exclusively.
Create a file which exists non - exclusively .