function deleteDirectoryErrorNotEmpty() {
      test_util.fileSystem.root.getDirectory(
          TESTING_A_DIRECTORY.name, {create: false},
          chrome.test.callbackPass(function(entry) {
            chrome.test.assertEq(TESTING_A_DIRECTORY.name, entry.name);
            chrome.test.assertTrue(entry.isDirectory);
            entry.remove(function() {
              chrome.test.fail('Unexpectedly succeded to remove a directory.');
            }, chrome.test.callbackPass);
          }), function(error) {
            chrome.test.fail(error.name);
          });
    }
// Delete a directory which has contents, non-recursively. Should fail.
Delete a directory which has contents, non-recursively. Should fail.
Delete a directory which has contents non - recursively . Should fail .
function deleteDirectoryErrorNotEmpty() {
      test_util.fileSystem.root.getDirectory(
          TESTING_A_DIRECTORY.name, {create: false},
          chrome.test.callbackPass(function(entry) {
            chrome.test.assertEq(TESTING_A_DIRECTORY.name, entry.name);
            chrome.test.assertTrue(entry.isDirectory);
            entry.remove(function() {
              chrome.test.fail('Unexpectedly succeded to remove a directory.');
            }, chrome.test.callbackPass);
          }), function(error) {
            chrome.test.fail(error.name);
          });
    }
function deleteDirectoryErrorNotEmpty ( ) { test_util . fileSystem . root . getDirectory ( TESTING_A_DIRECTORY . name , { create : false } , chrome . test . callbackPass ( function ( entry ) { chrome . test . assertEq ( TESTING_A_DIRECTORY . name , entry . name ) ; chrome . test . assertTrue ( entry . isDirectory ) ; entry . remove ( function ( ) { chrome . test . fail ( 'Unexpectedly succeded to remove a directory.' ) ; } , chrome . test . callbackPass ) ; } ) , function ( error ) { chrome . test . fail ( error . name ) ; } ) ; }
Delete a directory which has contents, non-recursively.
Delete a directory which has contents non - recursively .