Commit 83a4bd35 authored by Linshizhi's avatar Linshizhi

remove unused test.

parent 1586ab99
......@@ -452,39 +452,3 @@ describe("BLK-BASED Channel Spec", () => {
});
});
fdescribe("123", () => {
fit("Data transfer to Webworker", async () => {
const rgbBlock = 1920*1080*4;
let data = new Uint8Array([...Array(rgbBlock).keys()]);
let ww = new Worker("../resources/tests/chnlWWHash.js");
await sleep(3000);
let chnn = new Channel(rgbBlock*3)
chnn.enableBlockMode(rgbBlock);
ww.postMessage(chnn.getShMem());
await sleep(3000);
for (let i = 0; i < 3000; ++i) {
while (true) {
let buffers = chnn.writeStep1(rgbBlock);
if (buffers.length == 0) {
await sleep(10);
continue;
}
buffers[0].set(data, 0);
chnn.writeStep2();
break;
}
// while (chnn.push(data) == false) {
// await sleep(10);
//}
}
console.log("Done");
await sleep(1000);
}, 3600000)
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment