Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / isolated-filesystem-test.js
index e3fa76b..cf8cebf 100644 (file)
@@ -57,6 +57,11 @@ MockIsolatedFileSystem.prototype = {
         this._innerRequestFilesRecursive();
     },
 
+    renameFile: function(filePath, newName, callback)
+    {
+        callback(true, newName);
+    },
+
     _innerRequestFilesRecursive: function()
     {
         if (!this._callback)
@@ -129,7 +134,7 @@ MockIsolatedFileSystemManager.prototype = {
 InspectorTest.addMockFileSystem = function(path)
 {
     var fileSystem = { fileSystemName: "", rootURL: "", fileSystemPath: path };
-    WebInspector.isolatedFileSystemDispatcher.fileSystemAdded("", fileSystem);
+    WebInspector.isolatedFileSystemManager._onFileSystemAdded({data: {fileSystem: fileSystem}});
     return MockIsolatedFileSystem._isolatedFileSystemMocks[path];
 }