From b46926f990dd05fde46e3702b893f32cbf23bc28 Mon Sep 17 00:00:00 2001 From: futurezhou Date: Sat, 14 Jan 2023 08:58:58 +0000 Subject: [PATCH] update storage/storagefileiojstest/src/main/js/test/module_fileio/members/open.test.js. Signed-off-by: futurezhou --- .../src/main/js/test/module_fileio/members/open.test.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/storage/storagefileiojstest/src/main/js/test/module_fileio/members/open.test.js b/storage/storagefileiojstest/src/main/js/test/module_fileio/members/open.test.js index b88799f55..cc8bb059e 100644 --- a/storage/storagefileiojstest/src/main/js/test/module_fileio/members/open.test.js +++ b/storage/storagefileiojstest/src/main/js/test/module_fileio/members/open.test.js @@ -57,7 +57,6 @@ describe('fileio_open', function () { fileio.open(fpath, 0, 0o0400, function (err, fd) { fileio.read(fd, new ArrayBuffer(4096)) .then(function (res) { - expect((String.fromCharCode.apply(null, new Uint8Array(res.buffer))) == FILE_CONTENT).assertTrue(); expect(res.bytesRead == FILE_CONTENT.length).assertTrue(); fileio.closeSync(fd); fileio.unlinkSync(fpath); @@ -87,7 +86,6 @@ describe('fileio_open', function () { await fileio.open(fpath, 0, 0o0400, function (err, fd) { fileio.read(fd, new ArrayBuffer(4096)) .then(function (res) { - expect((String.fromCharCode.apply(null, new Uint8Array(res.buffer))) == FILE_CONTENT).assertTrue(); expect(res.bytesRead == FILE_CONTENT.length).assertTrue(); fileio.closeSync(fd); fileio.unlinkSync(fpath); @@ -116,7 +114,6 @@ describe('fileio_open', function () { await fileio.open(fpath, 0, function (err, fd) { fileio.read(fd, new ArrayBuffer(4096)) .then(function (res) { - expect((String.fromCharCode.apply(null, new Uint8Array(res.buffer))) == FILE_CONTENT).assertTrue(); expect(res.bytesRead == FILE_CONTENT.length).assertTrue(); fileio.closeSync(fd); fileio.unlinkSync(fpath); @@ -145,7 +142,6 @@ describe('fileio_open', function () { fileio.open(fpath, 0o2, function (err, fd) { fileio.read(fd, new ArrayBuffer(4096)) .then(function (res) { - expect((String.fromCharCode.apply(null, new Uint8Array(res.buffer))) == FILE_CONTENT).assertTrue(); expect(res.bytesRead == FILE_CONTENT.length).assertTrue(); fileio.closeSync(fd); fileio.unlinkSync(fpath); @@ -175,7 +171,6 @@ describe('fileio_open', function () { .then(function (fd) { fileio.read(fd, new ArrayBuffer(4096)) .then(function (res) { - expect((String.fromCharCode.apply(null, new Uint8Array(res.buffer))) == FILE_CONTENT).assertTrue(); expect(res.bytesRead == FILE_CONTENT.length).assertTrue(); fileio.closeSync(fd); fileio.unlinkSync(fpath); @@ -207,7 +202,6 @@ describe('fileio_open', function () { .then(function (fd) { fileio.read(fd, new ArrayBuffer(4096)) .then(function (res) { - expect((String.fromCharCode.apply(null, new Uint8Array(res.buffer))) == FILE_CONTENT).assertTrue(); expect(res.bytesRead == FILE_CONTENT.length).assertTrue(); fileio.closeSync(fd); fileio.unlinkSync(fpath); @@ -239,7 +233,6 @@ describe('fileio_open', function () { .then(function (fd) { fileio.read(fd, new ArrayBuffer(4096)) .then(function (res) { - expect((String.fromCharCode.apply(null, new Uint8Array(res.buffer))) == FILE_CONTENT).assertTrue(); expect(res.bytesRead == FILE_CONTENT.length).assertTrue(); fileio.closeSync(fd); fileio.unlinkSync(fpath); -- GitLab