How to use filesystem method in autotest

Best Python code snippet using autotest_python

jquery.filesystem.js

Source:jquery.filesystem.js Github

copy

Full Screen

...34 * @param {string} sRemoteIDPath a path to server's ID in object properties (mandatory to create index)35 * 36 * @name jQuery.filesystem37 */38 function filesystem() {39 if (! window.requestFileSystem) throw new Error('browser does not support FileSystem API');40 }41 42 // register plugin in jQuery namespace43 $.extend({ filesystem : filesystem });44 45 46 47 //=============================================================================48 //=========================== Constants =======================================49 //=============================================================================50 51 52 /** ...

Full Screen

Full Screen

fake_filesystem_shutil_test.py

Source:fake_filesystem_shutil_test.py Github

copy

Full Screen

1#!/usr/bin/python2.42#3# Copyright 2009 Google Inc. All Rights Reserved.4#5# Licensed under the Apache License, Version 2.0 (the "License");6# you may not use this file except in compliance with the License.7# You may obtain a copy of the License at8#9# http://www.apache.org/licenses/LICENSE-2.010#11# Unless required by applicable law or agreed to in writing, software12# distributed under the License is distributed on an "AS IS" BASIS,13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14# See the License for the specific language governing permissions and15# limitations under the License.16"""Unittest for fake_filesystem_shutil."""17import os18import stat19import time20import unittest21import fake_filesystem22import fake_filesystem_shutil23class FakeShutilModuleTest(unittest.TestCase):24 def setUp(self):25 self.filesystem = fake_filesystem.FakeFilesystem()26 self.shutil = fake_filesystem_shutil.FakeShutilModule(self.filesystem)27 def testRmtree(self):28 directory = 'xyzzy'29 self.filesystem.CreateDirectory(directory)30 self.filesystem.CreateDirectory(os.path.join(directory, 'subdir'))31 self.filesystem.CreateFile(os.path.join(directory, 'subfile'))32 self.assertTrue(self.filesystem.Exists(directory))33 self.shutil.rmtree(directory)34 self.assertFalse(self.filesystem.Exists(directory))35 def testCopy(self):36 src_file = 'xyzzy'37 dst_file = 'xyzzy_copy'38 src_obj = self.filesystem.CreateFile(src_file)39 src_obj.st_mode = ((src_obj.st_mode & ~0o7777) | 0o750)40 self.assertTrue(self.filesystem.Exists(src_file))41 self.assertFalse(self.filesystem.Exists(dst_file))42 self.shutil.copy(src_file, dst_file)43 self.assertTrue(self.filesystem.Exists(dst_file))44 dst_obj = self.filesystem.GetObject(dst_file)45 self.assertEqual(src_obj.st_mode, dst_obj.st_mode)46 def testCopyDirectory(self):47 src_file = 'xyzzy'48 parent_directory = 'parent'49 dst_file = os.path.join(parent_directory, src_file)50 src_obj = self.filesystem.CreateFile(src_file)51 self.filesystem.CreateDirectory(parent_directory)52 src_obj.st_mode = ((src_obj.st_mode & ~0o7777) | 0o750)53 self.assertTrue(self.filesystem.Exists(src_file))54 self.assertTrue(self.filesystem.Exists(parent_directory))55 self.assertFalse(self.filesystem.Exists(dst_file))56 self.shutil.copy(src_file, parent_directory)57 self.assertTrue(self.filesystem.Exists(dst_file))58 dst_obj = self.filesystem.GetObject(dst_file)59 self.assertEqual(src_obj.st_mode, dst_obj.st_mode)60 def testCopystat(self):61 src_file = 'xyzzy'62 dst_file = 'xyzzy_copy'63 src_obj = self.filesystem.CreateFile(src_file)64 dst_obj = self.filesystem.CreateFile(dst_file)65 src_obj.st_mode = ((src_obj.st_mode & ~0o7777) | 0o750)66 src_obj.st_uid = 12367 src_obj.st_gid = 12368 src_obj.st_atime = time.time()69 src_obj.st_mtime = time.time()70 self.assertTrue(self.filesystem.Exists(src_file))71 self.assertTrue(self.filesystem.Exists(dst_file))72 self.shutil.copystat(src_file, dst_file)73 self.assertEqual(src_obj.st_mode, dst_obj.st_mode)74 self.assertEqual(src_obj.st_uid, dst_obj.st_uid)75 self.assertEqual(src_obj.st_gid, dst_obj.st_gid)76 self.assertEqual(src_obj.st_atime, dst_obj.st_atime)77 self.assertEqual(src_obj.st_mtime, dst_obj.st_mtime)78 def testCopy2(self):79 src_file = 'xyzzy'80 dst_file = 'xyzzy_copy'81 src_obj = self.filesystem.CreateFile(src_file)82 src_obj.st_mode = ((src_obj.st_mode & ~0o7777) | 0o750)83 src_obj.st_uid = 12384 src_obj.st_gid = 12385 src_obj.st_atime = time.time()86 src_obj.st_mtime = time.time()87 self.assertTrue(self.filesystem.Exists(src_file))88 self.assertFalse(self.filesystem.Exists(dst_file))89 self.shutil.copy2(src_file, dst_file)90 self.assertTrue(self.filesystem.Exists(dst_file))91 dst_obj = self.filesystem.GetObject(dst_file)92 self.assertEqual(src_obj.st_mode, dst_obj.st_mode)93 self.assertEqual(src_obj.st_uid, dst_obj.st_uid)94 self.assertEqual(src_obj.st_gid, dst_obj.st_gid)95 self.assertEqual(src_obj.st_atime, dst_obj.st_atime)96 self.assertEqual(src_obj.st_mtime, dst_obj.st_mtime)97 def testCopy2Directory(self):98 src_file = 'xyzzy'99 parent_directory = 'parent'100 dst_file = os.path.join(parent_directory, src_file)101 src_obj = self.filesystem.CreateFile(src_file)102 self.filesystem.CreateDirectory(parent_directory)103 src_obj.st_mode = ((src_obj.st_mode & ~0o7777) | 0o750)104 src_obj.st_uid = 123105 src_obj.st_gid = 123106 src_obj.st_atime = time.time()107 src_obj.st_mtime = time.time()108 self.assertTrue(self.filesystem.Exists(src_file))109 self.assertTrue(self.filesystem.Exists(parent_directory))110 self.assertFalse(self.filesystem.Exists(dst_file))111 self.shutil.copy2(src_file, parent_directory)112 self.assertTrue(self.filesystem.Exists(dst_file))113 dst_obj = self.filesystem.GetObject(dst_file)114 self.assertEqual(src_obj.st_mode, dst_obj.st_mode)115 self.assertEqual(src_obj.st_uid, dst_obj.st_uid)116 self.assertEqual(src_obj.st_gid, dst_obj.st_gid)117 self.assertEqual(src_obj.st_atime, dst_obj.st_atime)118 self.assertEqual(src_obj.st_mtime, dst_obj.st_mtime)119 def testCopytree(self):120 src_directory = 'xyzzy'121 dst_directory = 'xyzzy_copy'122 self.filesystem.CreateDirectory(src_directory)123 self.filesystem.CreateDirectory(os.path.join(src_directory, 'subdir'))124 self.filesystem.CreateFile(os.path.join(src_directory, 'subfile'))125 self.assertTrue(self.filesystem.Exists(src_directory))126 self.assertFalse(self.filesystem.Exists(dst_directory))127 self.shutil.copytree(src_directory, dst_directory)128 self.assertTrue(self.filesystem.Exists(dst_directory))129 self.assertTrue(self.filesystem.Exists(os.path.join(dst_directory,130 'subdir')))131 self.assertTrue(self.filesystem.Exists(os.path.join(dst_directory,132 'subfile')))133 def testCopytreeSrcIsFile(self):134 src_file = 'xyzzy'135 dst_directory = 'xyzzy_copy'136 self.filesystem.CreateFile(src_file)137 self.assertTrue(self.filesystem.Exists(src_file))138 self.assertFalse(self.filesystem.Exists(dst_directory))139 self.assertRaises(OSError,140 self.shutil.copytree,141 src_file,142 dst_directory)143 def testMoveFile(self):144 src_file = 'original_xyzzy'145 dst_file = 'moved_xyzzy'146 self.filesystem.CreateFile(src_file)147 self.assertTrue(self.filesystem.Exists(src_file))148 self.assertFalse(self.filesystem.Exists(dst_file))149 self.shutil.move(src_file, dst_file)150 self.assertTrue(self.filesystem.Exists(dst_file))151 self.assertFalse(self.filesystem.Exists(src_file))152 def testMoveFileIntoDirectory(self):153 src_file = 'xyzzy'154 dst_directory = 'directory'155 dst_file = os.path.join(dst_directory, src_file)156 self.filesystem.CreateFile(src_file)157 self.filesystem.CreateDirectory(dst_directory)158 self.assertTrue(self.filesystem.Exists(src_file))159 self.assertFalse(self.filesystem.Exists(dst_file))160 self.shutil.move(src_file, dst_directory)161 self.assertTrue(self.filesystem.Exists(dst_file))162 self.assertFalse(self.filesystem.Exists(src_file))163 def testMoveDirectory(self):164 src_directory = 'original_xyzzy'165 dst_directory = 'moved_xyzzy'166 self.filesystem.CreateDirectory(src_directory)167 self.filesystem.CreateFile(os.path.join(src_directory, 'subfile'))168 self.filesystem.CreateDirectory(os.path.join(src_directory, 'subdir'))169 self.assertTrue(self.filesystem.Exists(src_directory))170 self.assertFalse(self.filesystem.Exists(dst_directory))171 self.shutil.move(src_directory, dst_directory)172 self.assertTrue(self.filesystem.Exists(dst_directory))173 self.assertTrue(self.filesystem.Exists(os.path.join(dst_directory,174 'subfile')))175 self.assertTrue(self.filesystem.Exists(os.path.join(dst_directory,176 'subdir')))177 self.assertFalse(self.filesystem.Exists(src_directory))178class CopyFileTest(unittest.TestCase):179 def setUp(self):180 self.filesystem = fake_filesystem.FakeFilesystem()181 self.shutil = fake_filesystem_shutil.FakeShutilModule(self.filesystem)182 def testCommonCase(self):183 src_file = 'xyzzy'184 dst_file = 'xyzzy_copy'185 contents = 'contents of file'186 self.filesystem.CreateFile(src_file, contents=contents)187 self.assertTrue(self.filesystem.Exists(src_file))188 self.assertFalse(self.filesystem.Exists(dst_file))189 self.shutil.copyfile(src_file, dst_file)190 self.assertTrue(self.filesystem.Exists(dst_file))191 self.assertEqual(contents, self.filesystem.GetObject(dst_file).contents)192 def testRaisesIfSourceAndDestAreTheSameFile(self):193 src_file = 'xyzzy'194 dst_file = src_file195 contents = 'contents of file'196 self.filesystem.CreateFile(src_file, contents=contents)197 self.assertTrue(self.filesystem.Exists(src_file))198 self.assertRaises(self.shutil.Error,199 self.shutil.copyfile, src_file, dst_file)200 def testRaisesIfDestIsASymlinkToSrc(self):201 src_file = '/tmp/foo'202 dst_file = '/tmp/bar'203 contents = 'contents of file'204 self.filesystem.CreateFile(src_file, contents=contents)205 self.filesystem.CreateLink(dst_file, src_file)206 self.assertTrue(self.filesystem.Exists(src_file))207 self.assertRaises(self.shutil.Error,208 self.shutil.copyfile, src_file, dst_file)209 def testSucceedsIfDestExistsAndIsWritable(self):210 src_file = 'xyzzy'211 dst_file = 'xyzzy_copy'212 src_contents = 'contents of source file'213 dst_contents = 'contents of dest file'214 self.filesystem.CreateFile(src_file, contents=src_contents)215 self.filesystem.CreateFile(dst_file, contents=dst_contents)216 self.assertTrue(self.filesystem.Exists(src_file))217 self.assertTrue(self.filesystem.Exists(dst_file))218 self.shutil.copyfile(src_file, dst_file)219 self.assertTrue(self.filesystem.Exists(dst_file))220 self.assertEqual(src_contents,221 self.filesystem.GetObject(dst_file).contents)222 def testRaisesIfDestExistsAndIsNotWritable(self):223 src_file = 'xyzzy'224 dst_file = 'xyzzy_copy'225 src_contents = 'contents of source file'226 dst_contents = 'contents of dest file'227 self.filesystem.CreateFile(src_file, contents=src_contents)228 self.filesystem.CreateFile(dst_file,229 st_mode=stat.S_IFREG | 0o400,230 contents=dst_contents)231 self.assertTrue(self.filesystem.Exists(src_file))232 self.assertTrue(self.filesystem.Exists(dst_file))233 self.assertRaises(IOError, self.shutil.copyfile, src_file, dst_file)234 def testRaisesIfDestDirIsNotWritable(self):235 src_file = 'xyzzy'236 dst_dir = '/tmp/foo'237 dst_file = os.path.join(dst_dir, src_file)238 src_contents = 'contents of source file'239 self.filesystem.CreateFile(src_file, contents=src_contents)240 self.filesystem.CreateDirectory(dst_dir, perm_bits=0o555)241 self.assertTrue(self.filesystem.Exists(src_file))242 self.assertTrue(self.filesystem.Exists(dst_dir))243 self.assertRaises(IOError, self.shutil.copyfile, src_file, dst_file)244 def testRaisesIfSrcDoesntExist(self):245 src_file = 'xyzzy'246 dst_file = 'xyzzy_copy'247 self.assertFalse(self.filesystem.Exists(src_file))248 self.assertRaises(IOError, self.shutil.copyfile, src_file, dst_file)249 def testRaisesIfSrcNotReadable(self):250 src_file = 'xyzzy'251 dst_file = 'xyzzy_copy'252 src_contents = 'contents of source file'253 self.filesystem.CreateFile(src_file,254 st_mode=stat.S_IFREG | 0o000,255 contents=src_contents)256 self.assertTrue(self.filesystem.Exists(src_file))257 self.assertRaises(IOError, self.shutil.copyfile, src_file, dst_file)258 def testRaisesIfSrcIsADirectory(self):259 src_file = 'xyzzy'260 dst_file = 'xyzzy_copy'261 self.filesystem.CreateDirectory(src_file)262 self.assertTrue(self.filesystem.Exists(src_file))263 self.assertRaises(IOError, self.shutil.copyfile, src_file, dst_file)264 def testRaisesIfDestIsADirectory(self):265 src_file = 'xyzzy'266 dst_dir = '/tmp/foo'267 src_contents = 'contents of source file'268 self.filesystem.CreateFile(src_file, contents=src_contents)269 self.filesystem.CreateDirectory(dst_dir)270 self.assertTrue(self.filesystem.Exists(src_file))271 self.assertTrue(self.filesystem.Exists(dst_dir))272 self.assertRaises(IOError, self.shutil.copyfile, src_file, dst_dir)273if __name__ == '__main__':...

Full Screen

Full Screen

test-filesystem.js

Source:test-filesystem.js Github

copy

Full Screen

1import Util from './lib/util.js';2import PortableFileSystem, { SEEK_SET, SEEK_END } from './lib/filesystem.js';3import ConsoleSetup from './lib/consoleSetup.js';4import TinyTest, { run, assert, assertEquals } from './lib/tinyTest.js';5let filesystem;6let tmpdir;7let buffer, buffer2;8let handle;9let data = 'TEST\nabcdefg\n123456789';10let data2;11const tests = {12 'filesystem.buffer': () => {13 buffer = filesystem.buffer(4096);14 assert(buffer);15 },16 'filesystem.bufferSize': () => {17 assertEquals(filesystem.bufferSize(buffer), 4096);18 },19 'filesystem.bufferFrom': () => {20 buffer2 = filesystem.bufferFrom('abcdefg\n');21 assertEquals(filesystem.bufferSize(buffer2), 8);22 data2 = filesystem.bufferFrom(data);23 assertEquals(filesystem.bufferSize(data2), data.length);24 },25 'filesystem.bufferToString': () => {26 assertEquals(filesystem.bufferToString(buffer2), 'abcdefg\n');27 },28 'filesystem.mkdir': () => {29 assert(!(filesystem.mkdir(tmpdir, 0o1777) < 0), `mkdir("${tmpdir}", 0o1777) < 0`);30 },31 'filesystem.exists': () => {32 assert(filesystem.exists(tmpdir));33 },34 'filesystem.open': () => {35 assert((handle = filesystem.open(tmpdir + '/rdwr', 'w+')) != null, `open("${tmpdir}/rdwr", "w+") == null`);36 },37 'filesystem.write': () => {38 assertEquals(filesystem.write(handle, data), data.length);39 },40 'filesystem.seek': () => {41 assertEquals(filesystem.seek(handle, 5, SEEK_SET), 5);42 },43 'filesystem.tell': () => {44 assertEquals(filesystem.tell(handle), 5);45 },46 'filesystem.read': () => {47 let ret, str;48 for(let str of ['abcdefg\n', '123456789']) {49 ret = filesystem.read(handle, buffer, 0, str.length);50 assertEquals(ret, str.length);51 assertEquals(filesystem.bufferToString(buffer).slice(0, ret), str);52 }53 },54 'filesystem.close': () => {55 assertEquals(filesystem.close(handle), 0);56 },57 'filesystem.readFile': () => {58 assertEquals(filesystem.readFile(tmpdir + '/rdwr'), data);59 },60 'filesystem.writeFile': () => {61 let name = tmpdir + '/wrf';62 let ret = filesystem.writeFile(name, data);63 let d = filesystem.readFile(name, null);64 assertEquals(filesystem.bufferToString(d), data);65 },66 'filesystem.size': () => {67 assertEquals(filesystem.size(tmpdir + '/wrf'), data.length);68 },69 'filesystem.symlink': () => {70 assertEquals(filesystem.symlink('..', tmpdir + '/link'), 0);71 assertEquals(filesystem.symlink('wrf', tmpdir + '/file'), 0);72 },73 'filesystem.readlink': () => {74 assertEquals(filesystem.readlink(tmpdir + '/link'), '..');75 },76 'filesystem.realpath': () => {77 assertEquals(filesystem.realpath(tmpdir + '/link'), '/tmp');78 },79 'filesystem.chdir': () => {80 assertEquals(filesystem.chdir(tmpdir), 0);81 },82 'filesystem.getcwd': () => {83 assertEquals(filesystem.getcwd(), tmpdir);84 },85 'filesystem.readdir': () => {86 assertEquals(filesystem.readdir('.').sort().join(','), '.,..,file,link,rdwr,wrf');87 },88 'filesystem.rename': () => {89 assertEquals(filesystem.rename('link', 'link2'), 0);90 assert(filesystem.exists('link2'));91 },92 'filesystem.stat': () => {93 let st;94 assert(filesystem.stat(tmpdir).isDirectory());95 st = filesystem.stat(tmpdir + '/file');96 // console.log("st:", Util.inspect(st));97 assert(st.isFile());98 },99 'filesystem.lstat': () => {100 assert(filesystem.lstat(tmpdir + '/file').isSymbolicLink());101 },102 'filesystem.unlink': () => {103 for(let file of filesystem.readdir(tmpdir)) {104 if(file[0] == '.') continue;105 let path = `${tmpdir}/${file}`;106 assertEquals(filesystem.unlink(path), 0);107 assert(!filesystem.exists(path));108 }109 assertEquals(filesystem.unlink(tmpdir), 0);110 assert(!filesystem.exists(tmpdir));111 },112 'filesystem.isatty': () => {113 let fd = filesystem.open('/dev/stderr');114 //console.log('errstr:', filesystem.errstr);115 assertEquals(filesystem.isatty(fd || filesystem.open('/dev/tty')), true);116 assert(!filesystem.isatty(filesystem.open('/dev/null')));117 },118 'filesystem.mkdtemp': () => {119 let tmp = filesystem.mkdtemp('/tmp/aaaa');120 console.log('tmp:', tmp);121 assert(filesystem.exists(tmp));122 assert(filesystem.stat(tmp).isDirectory());123 assertEquals(filesystem.unlink(tmp), 0);124 assert(!filesystem.exists(tmp));125 },126 'filesystem.stdin': () => {127 let file = filesystem.stdin;128 assertEquals(filesystem.fileno(file), 0);129 },130 'filesystem.stdout': () => {131 let file = filesystem.stdout;132 assertEquals(filesystem.fileno(file), 1);133 },134 'filesystem.stderr': () => {135 let file = filesystem.stderr;136 assertEquals(filesystem.fileno(file), 2);137 }138};139async function main(...args) {140 await ConsoleSetup({ colors: true, depth: Infinity });141 await PortableFileSystem(fs => (filesystem = fs));142 // globalThis.console = {};143 console.log('Console:', Object.getPrototypeOf(console));144 console.log('log:', Object.getPrototypeOf(console).log);145 console.log(146 'ARGS:',147 new Map([148 ['a', 1],149 ['b', 2]150 ]),151 { u: undefined, n: null, args: Util.getArgs(), filesystem }152 );153 tmpdir = `/tmp/${Util.randStr(10)}`;154 TinyTest.run(Util.filter(tests, t => t));155 return;156 console.log(157 Util.getMethodNames(filesystem)158 .map(n => ` 'filesystem.${n}': null,`)159 .join('\n')160 );161}...

Full Screen

Full Screen

file_system_custom_bindings.js

Source:file_system_custom_bindings.js Github

copy

Full Screen

1// Copyright (c) 2012 The Chromium Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4// Custom binding for the fileSystem API.5var binding = require('binding').Binding.create('fileSystem');6var sendRequest = require('sendRequest');7var getFileBindingsForApi =8 require('fileEntryBindingUtil').getFileBindingsForApi;9var fileBindings = getFileBindingsForApi('fileSystem');10var bindFileEntryCallback = fileBindings.bindFileEntryCallback;11var entryIdManager = fileBindings.entryIdManager;12var fileSystemNatives = requireNative('file_system_natives');13binding.registerCustomHook(function(bindingsAPI) {14 var apiFunctions = bindingsAPI.apiFunctions;15 var fileSystem = bindingsAPI.compiledApi;16 function bindFileEntryFunction(functionName) {17 apiFunctions.setUpdateArgumentsPostValidate(18 functionName, function(fileEntry, callback) {19 var fileSystemName = fileEntry.filesystem.name;20 var relativePath = $String.slice(fileEntry.fullPath, 1);21 return [fileSystemName, relativePath, callback];22 });23 }24 $Array.forEach(['getDisplayPath', 'getWritableEntry', 'isWritableEntry'],25 bindFileEntryFunction);26 $Array.forEach(['getWritableEntry', 'chooseEntry', 'restoreEntry'],27 function(functionName) {28 bindFileEntryCallback(functionName, apiFunctions);29 });30 apiFunctions.setHandleRequest('retainEntry', function(fileEntry) {31 var id = entryIdManager.getEntryId(fileEntry);32 if (!id)33 return '';34 var fileSystemName = fileEntry.filesystem.name;35 var relativePath = $String.slice(fileEntry.fullPath, 1);36 sendRequest.sendRequest(this.name, [id, fileSystemName, relativePath],37 this.definition.parameters, {});38 return id;39 });40 apiFunctions.setHandleRequest('isRestorable',41 function(id, callback) {42 var savedEntry = entryIdManager.getEntryById(id);43 if (savedEntry) {44 sendRequest.safeCallbackApply(45 'fileSystem.isRestorable',46 {},47 callback,48 [true]);49 } else {50 sendRequest.sendRequest(51 this.name, [id, callback], this.definition.parameters, {});52 }53 });54 apiFunctions.setUpdateArgumentsPostValidate('restoreEntry',55 function(id, callback) {56 var savedEntry = entryIdManager.getEntryById(id);57 if (savedEntry) {58 // We already have a file entry for this id so pass it to the callback and59 // send a request to the browser to move it to the back of the LRU.60 sendRequest.safeCallbackApply(61 'fileSystem.restoreEntry',62 {},63 callback,64 [savedEntry]);65 return [id, false, null];66 } else {67 // Ask the browser process for a new file entry for this id, to be passed68 // to |callback|.69 return [id, true, callback];70 }71 });72 apiFunctions.setCustomCallback('requestFileSystem',73 function(name, request, callback, response) {74 var fileSystem;75 if (response && response.file_system_id) {76 fileSystem = fileSystemNatives.GetIsolatedFileSystem(77 response.file_system_id, response.file_system_path);78 }79 sendRequest.safeCallbackApply(80 'fileSystem.requestFileSystem',81 request,82 callback,83 [fileSystem]);84 });85 // TODO(benwells): Remove these deprecated versions of the functions.86 fileSystem.getWritableFileEntry = function() {87 console.log("chrome.fileSystem.getWritableFileEntry is deprecated");88 console.log("Please use chrome.fileSystem.getWritableEntry instead");89 $Function.apply(fileSystem.getWritableEntry, this, arguments);90 };91 fileSystem.isWritableFileEntry = function() {92 console.log("chrome.fileSystem.isWritableFileEntry is deprecated");93 console.log("Please use chrome.fileSystem.isWritableEntry instead");94 $Function.apply(fileSystem.isWritableEntry, this, arguments);95 };96 fileSystem.chooseFile = function() {97 console.log("chrome.fileSystem.chooseFile is deprecated");98 console.log("Please use chrome.fileSystem.chooseEntry instead");99 $Function.apply(fileSystem.chooseEntry, this, arguments);100 };101});102exports.bindFileEntryCallback = bindFileEntryCallback;...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run autotest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful