Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / file_browser / file_browser_handler_lazy / background.js
index 25c1480..4024c01 100644 (file)
@@ -112,10 +112,9 @@ function readTest(entry, expectSuccess) {
 function getSiblingTest(entry) {
   var error = 'Got file (\'' + entry.fullPath.concat('.foo') + '\') for which' +
               'file access was not granted.';
-  entry.filesystem.root.getFile(
-      entry.fullPath.concat('.foo'), {},
-      chrome.test.fail.bind(null, error),
-      chrome.test.succeed);
+  entry.filesystem.root.getFile(entry.fullPath.concat('.foo'), {},
+                                function (entry) { chrome.test.fail(error); },
+                                chrome.test.succeed);
 }
 
 /**