|
| 1 | +import P from "./serialization.page.js"; |
| 2 | +import { serializationTest } from "./serializationTest.js"; |
| 3 | +import { browser } from "@wdio/globals"; |
| 4 | + |
| 5 | +describe("DataChannel:MsgPack", function () { |
| 6 | + beforeAll(async function () { |
| 7 | + await P.init(); |
| 8 | + }); |
| 9 | + beforeEach(async function () { |
| 10 | + if ( |
| 11 | + // @ts-ignore |
| 12 | + browser.capabilities.browserName === "firefox" && |
| 13 | + // @ts-ignore |
| 14 | + parseInt(browser.capabilities.browserVersion) < 102 |
| 15 | + ) { |
| 16 | + pending("Firefox 102+ required for Streams"); |
| 17 | + } |
| 18 | + }); |
| 19 | + it("should transfer numbers", serializationTest("./numbers", "MsgPack")); |
| 20 | + it("should transfer strings", serializationTest("./strings", "MsgPack")); |
| 21 | + it( |
| 22 | + "should transfer long string", |
| 23 | + serializationTest("./long_string", "MsgPack"), |
| 24 | + ); |
| 25 | + it("should transfer objects", serializationTest("./objects", "MsgPack")); |
| 26 | + it("should transfer arrays", serializationTest("./arrays", "MsgPack")); |
| 27 | + it( |
| 28 | + "should transfer Dates as strings", |
| 29 | + serializationTest("./dates", "MsgPack"), |
| 30 | + ); |
| 31 | + // it("should transfer ArrayBuffers", serializationTest("./arraybuffers", "MsgPack")); |
| 32 | + it( |
| 33 | + "should transfer TypedArrayView", |
| 34 | + serializationTest("./typed_array_view", "MsgPack"), |
| 35 | + ); |
| 36 | + it( |
| 37 | + "should transfer Uint8Arrays", |
| 38 | + serializationTest("./Uint8Array", "MsgPack"), |
| 39 | + ); |
| 40 | + it( |
| 41 | + "should transfer Int32Arrays as Uint8Arrays", |
| 42 | + serializationTest("./Int32Array_as_Uint8Array", "MsgPack"), |
| 43 | + ); |
| 44 | +}); |
0 commit comments