1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import P from "./serialization.page.js";
- import { serializationTest } from "./serializationTest.js";
- describe("DataChannel:JSON", () => {
- beforeAll(
- async () => {
- await P.init();
- },
- jasmine.DEFAULT_TIMEOUT_INTERVAL,
- 2,
- );
- it(
- "should transfer numbers",
- serializationTest("./numbers", "json"),
- jasmine.DEFAULT_TIMEOUT_INTERVAL,
- 2,
- );
- it(
- "should transfer strings",
- serializationTest("./strings", "json"),
- jasmine.DEFAULT_TIMEOUT_INTERVAL,
- 2,
- );
- // it("should transfer long string", serializationTest("./long_string", "json"));
- it(
- "should transfer objects",
- serializationTest("./objects", "json"),
- jasmine.DEFAULT_TIMEOUT_INTERVAL,
- 2,
- );
- it(
- "should transfer arrays (no chunks)",
- serializationTest("./arrays_unchunked", "json"),
- jasmine.DEFAULT_TIMEOUT_INTERVAL,
- 2,
- );
- it(
- "should transfer Dates as strings",
- serializationTest("./dates_as_json_string", "json"),
- jasmine.DEFAULT_TIMEOUT_INTERVAL,
- 2,
- );
- // it("should transfer ArrayBuffers", serializationTest("./arraybuffers", "json"));
- // it("should transfer TypedArrayView", serializationTest("./typed_array_view", "json"));
- // it(
- // "should transfer Uint8Arrays",
- // serializationTest("./Uint8Array", "json"),
- // );
- // it(
- // "should transfer Int32Arrays",
- // serializationTest("./Int32Array", "json"),
- // );
- });
|