function notifyWatchedPathButDifferentModeTag() {
      test_util.fileSystem.root.getDirectory(
          TESTING_DIRECTORY.name,
          {create: false},
          chrome.test.callbackPass(function(fileEntry) {
            chrome.test.assertEq(TESTING_DIRECTORY.name, fileEntry.name);
            directoryChangedCallback = function() {
              chrome.test.fail();
            };
            // TODO(mtomasz): NOT_FOUND error should be returned instead.
            chrome.fileSystemProvider.notify({
              fileSystemId: test_util.FILE_SYSTEM_ID,
              observedPath: fileEntry.fullPath,
              recursive: true,
              changeType: 'CHANGED',
              tag: TESTING_ANOTHER_TAG,
            }, chrome.test.callbackFail('NOT_FOUND'));
          }));
    }
// watcher is not recursive) should fail.
watcher is not recursive) should fail.
watcher is not recursive ) should fail .
function notifyWatchedPathButDifferentModeTag() {
      test_util.fileSystem.root.getDirectory(
          TESTING_DIRECTORY.name,
          {create: false},
          chrome.test.callbackPass(function(fileEntry) {
            chrome.test.assertEq(TESTING_DIRECTORY.name, fileEntry.name);
            directoryChangedCallback = function() {
              chrome.test.fail();
            };
            chrome.fileSystemProvider.notify({
              fileSystemId: test_util.FILE_SYSTEM_ID,
              observedPath: fileEntry.fullPath,
              recursive: true,
              changeType: 'CHANGED',
              tag: TESTING_ANOTHER_TAG,
            }, chrome.test.callbackFail('NOT_FOUND'));
          }));
    }
function notifyWatchedPathButDifferentModeTag ( ) { test_util . fileSystem . root . getDirectory ( TESTING_DIRECTORY . name , { create : false } , chrome . test . callbackPass ( function ( fileEntry ) { chrome . test . assertEq ( TESTING_DIRECTORY . name , fileEntry . name ) ; directoryChangedCallback = function ( ) { chrome . test . fail ( ) ; } ; chrome . fileSystemProvider . notify ( { fileSystemId : test_util . FILE_SYSTEM_ID , observedPath : fileEntry . fullPath , recursive : true , changeType : 'CHANGED' , tag : TESTING_ANOTHER_TAG , } , chrome . test . callbackFail ( 'NOT_FOUND' ) ) ; } ) ) ; }
watcher is not recursive) should fail.
watcher is not recursive ) should fail .
// TODO(mtomasz): NOT_FOUND error should be returned instead.