@elaraai/e3-web 0.0.0-stage → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +54 -0
- package/README.md +395 -2
- package/dist/src/app.d.ts +91 -0
- package/dist/src/app.d.ts.map +1 -0
- package/dist/src/app.js +112 -0
- package/dist/src/app.js.map +1 -0
- package/dist/src/bridge/bridge.spec.d.ts +6 -0
- package/dist/src/bridge/bridge.spec.d.ts.map +1 -0
- package/dist/src/bridge/bridge.spec.js +56 -0
- package/dist/src/bridge/bridge.spec.js.map +1 -0
- package/dist/src/bridge/page.d.ts +149 -0
- package/dist/src/bridge/page.d.ts.map +1 -0
- package/dist/src/bridge/page.js +328 -0
- package/dist/src/bridge/page.js.map +1 -0
- package/dist/src/bridge/protocol.d.ts +181 -0
- package/dist/src/bridge/protocol.d.ts.map +1 -0
- package/dist/src/bridge/protocol.js +113 -0
- package/dist/src/bridge/protocol.js.map +1 -0
- package/dist/src/bridge/worker.d.ts +124 -0
- package/dist/src/bridge/worker.d.ts.map +1 -0
- package/dist/src/bridge/worker.js +185 -0
- package/dist/src/bridge/worker.js.map +1 -0
- package/dist/src/browser/bridge.page.d.ts +12 -0
- package/dist/src/browser/bridge.page.d.ts.map +1 -0
- package/dist/src/browser/bridge.page.js +79 -0
- package/dist/src/browser/bridge.page.js.map +1 -0
- package/dist/src/browser/bridge.spec.d.ts +6 -0
- package/dist/src/browser/bridge.spec.d.ts.map +1 -0
- package/dist/src/browser/bridge.spec.js +105 -0
- package/dist/src/browser/bridge.spec.js.map +1 -0
- package/dist/src/browser/bridge.worker.d.ts +6 -0
- package/dist/src/browser/bridge.worker.d.ts.map +1 -0
- package/dist/src/browser/bridge.worker.js +35 -0
- package/dist/src/browser/bridge.worker.js.map +1 -0
- package/dist/src/browser/compliance.d.ts +68 -0
- package/dist/src/browser/compliance.d.ts.map +1 -0
- package/dist/src/browser/compliance.js +30 -0
- package/dist/src/browser/compliance.js.map +1 -0
- package/dist/src/browser/compliance.page.d.ts +6 -0
- package/dist/src/browser/compliance.page.d.ts.map +1 -0
- package/dist/src/browser/compliance.page.js +204 -0
- package/dist/src/browser/compliance.page.js.map +1 -0
- package/dist/src/browser/compliance.spec.d.ts +6 -0
- package/dist/src/browser/compliance.spec.d.ts.map +1 -0
- package/dist/src/browser/compliance.spec.js +147 -0
- package/dist/src/browser/compliance.spec.js.map +1 -0
- package/dist/src/browser/e3-api-1.spec.d.ts +6 -0
- package/dist/src/browser/e3-api-1.spec.d.ts.map +1 -0
- package/dist/src/browser/e3-api-1.spec.js +12 -0
- package/dist/src/browser/e3-api-1.spec.js.map +1 -0
- package/dist/src/browser/e3-api-2.spec.d.ts +6 -0
- package/dist/src/browser/e3-api-2.spec.d.ts.map +1 -0
- package/dist/src/browser/e3-api-2.spec.js +12 -0
- package/dist/src/browser/e3-api-2.spec.js.map +1 -0
- package/dist/src/browser/e3-api-3.spec.d.ts +6 -0
- package/dist/src/browser/e3-api-3.spec.d.ts.map +1 -0
- package/dist/src/browser/e3-api-3.spec.js +12 -0
- package/dist/src/browser/e3-api-3.spec.js.map +1 -0
- package/dist/src/browser/e3-api-parts.spec.d.ts +6 -0
- package/dist/src/browser/e3-api-parts.spec.d.ts.map +1 -0
- package/dist/src/browser/e3-api-parts.spec.js +45 -0
- package/dist/src/browser/e3-api-parts.spec.js.map +1 -0
- package/dist/src/browser/e3-api.d.ts +28 -0
- package/dist/src/browser/e3-api.d.ts.map +1 -0
- package/dist/src/browser/e3-api.js +144 -0
- package/dist/src/browser/e3-api.js.map +1 -0
- package/dist/src/browser/e3-client.worker.d.ts +6 -0
- package/dist/src/browser/e3-client.worker.d.ts.map +1 -0
- package/dist/src/browser/e3-client.worker.js +19 -0
- package/dist/src/browser/e3-client.worker.js.map +1 -0
- package/dist/src/browser/e3-forward.d.ts +27 -0
- package/dist/src/browser/e3-forward.d.ts.map +1 -0
- package/dist/src/browser/e3-forward.js +81 -0
- package/dist/src/browser/e3-forward.js.map +1 -0
- package/dist/src/browser/e3-forward.spec.d.ts +6 -0
- package/dist/src/browser/e3-forward.spec.d.ts.map +1 -0
- package/dist/src/browser/e3-forward.spec.js +84 -0
- package/dist/src/browser/e3-forward.spec.js.map +1 -0
- package/dist/src/browser/e3-port.worker.d.ts +6 -0
- package/dist/src/browser/e3-port.worker.d.ts.map +1 -0
- package/dist/src/browser/e3-port.worker.js +21 -0
- package/dist/src/browser/e3-port.worker.js.map +1 -0
- package/dist/src/browser/e3-unit.worker.d.ts +6 -0
- package/dist/src/browser/e3-unit.worker.d.ts.map +1 -0
- package/dist/src/browser/e3-unit.worker.js +18 -0
- package/dist/src/browser/e3-unit.worker.js.map +1 -0
- package/dist/src/browser/e3-wire.d.ts +43 -0
- package/dist/src/browser/e3-wire.d.ts.map +1 -0
- package/dist/src/browser/e3-wire.js +32 -0
- package/dist/src/browser/e3-wire.js.map +1 -0
- package/dist/src/browser/e3.page.d.ts +21 -0
- package/dist/src/browser/e3.page.d.ts.map +1 -0
- package/dist/src/browser/e3.page.js +119 -0
- package/dist/src/browser/e3.page.js.map +1 -0
- package/dist/src/browser/e3.spec.d.ts +6 -0
- package/dist/src/browser/e3.spec.d.ts.map +1 -0
- package/dist/src/browser/e3.spec.js +358 -0
- package/dist/src/browser/e3.spec.js.map +1 -0
- package/dist/src/browser/e3.worker.d.ts +6 -0
- package/dist/src/browser/e3.worker.d.ts.map +1 -0
- package/dist/src/browser/e3.worker.js +38 -0
- package/dist/src/browser/e3.worker.js.map +1 -0
- package/dist/src/browser/harness.d.ts +175 -0
- package/dist/src/browser/harness.d.ts.map +1 -0
- package/dist/src/browser/harness.js +375 -0
- package/dist/src/browser/harness.js.map +1 -0
- package/dist/src/browser/page.d.ts +47 -0
- package/dist/src/browser/page.d.ts.map +1 -0
- package/dist/src/browser/page.js +47 -0
- package/dist/src/browser/page.js.map +1 -0
- package/dist/src/browser/repository.page.d.ts +85 -0
- package/dist/src/browser/repository.page.d.ts.map +1 -0
- package/dist/src/browser/repository.page.js +271 -0
- package/dist/src/browser/repository.page.js.map +1 -0
- package/dist/src/browser/runner.page.d.ts +6 -0
- package/dist/src/browser/runner.page.d.ts.map +1 -0
- package/dist/src/browser/runner.page.js +62 -0
- package/dist/src/browser/runner.page.js.map +1 -0
- package/dist/src/browser/runner.spec.d.ts +6 -0
- package/dist/src/browser/runner.spec.d.ts.map +1 -0
- package/dist/src/browser/runner.spec.js +46 -0
- package/dist/src/browser/runner.spec.js.map +1 -0
- package/dist/src/browser/storage.page.d.ts +6 -0
- package/dist/src/browser/storage.page.d.ts.map +1 -0
- package/dist/src/browser/storage.page.js +289 -0
- package/dist/src/browser/storage.page.js.map +1 -0
- package/dist/src/browser/storage.spec.d.ts +6 -0
- package/dist/src/browser/storage.spec.d.ts.map +1 -0
- package/dist/src/browser/storage.spec.js +211 -0
- package/dist/src/browser/storage.spec.js.map +1 -0
- package/dist/src/browser/unit.worker.d.ts +6 -0
- package/dist/src/browser/unit.worker.d.ts.map +1 -0
- package/dist/src/browser/unit.worker.js +17 -0
- package/dist/src/browser/unit.worker.js.map +1 -0
- package/dist/src/execution/WebTaskRunner.d.ts +159 -0
- package/dist/src/execution/WebTaskRunner.d.ts.map +1 -0
- package/dist/src/execution/WebTaskRunner.js +581 -0
- package/dist/src/execution/WebTaskRunner.js.map +1 -0
- package/dist/src/execution/WebTaskRunner.spec.d.ts +6 -0
- package/dist/src/execution/WebTaskRunner.spec.d.ts.map +1 -0
- package/dist/src/execution/WebTaskRunner.spec.js +91 -0
- package/dist/src/execution/WebTaskRunner.spec.js.map +1 -0
- package/dist/src/execution/e3-platform.d.ts +41 -0
- package/dist/src/execution/e3-platform.d.ts.map +1 -0
- package/dist/src/execution/e3-platform.js +52 -0
- package/dist/src/execution/e3-platform.js.map +1 -0
- package/dist/src/execution/in-process.d.ts +32 -0
- package/dist/src/execution/in-process.d.ts.map +1 -0
- package/dist/src/execution/in-process.js +89 -0
- package/dist/src/execution/in-process.js.map +1 -0
- package/dist/src/execution/pool.d.ts +172 -0
- package/dist/src/execution/pool.d.ts.map +1 -0
- package/dist/src/execution/pool.js +352 -0
- package/dist/src/execution/pool.js.map +1 -0
- package/dist/src/execution/pool.spec.d.ts +6 -0
- package/dist/src/execution/pool.spec.d.ts.map +1 -0
- package/dist/src/execution/pool.spec.js +252 -0
- package/dist/src/execution/pool.spec.js.map +1 -0
- package/dist/src/execution/protocol.d.ts +108 -0
- package/dist/src/execution/protocol.d.ts.map +1 -0
- package/dist/src/execution/protocol.js +27 -0
- package/dist/src/execution/protocol.js.map +1 -0
- package/dist/src/execution/unit-server.d.ts +131 -0
- package/dist/src/execution/unit-server.d.ts.map +1 -0
- package/dist/src/execution/unit-server.js +142 -0
- package/dist/src/execution/unit-server.js.map +1 -0
- package/dist/src/index.d.ts +39 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +37 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.spec.d.ts +6 -0
- package/dist/src/index.spec.d.ts.map +1 -0
- package/dist/src/index.spec.js +212 -0
- package/dist/src/index.spec.js.map +1 -0
- package/dist/src/node.d.ts +12 -0
- package/dist/src/node.d.ts.map +1 -0
- package/dist/src/node.js +12 -0
- package/dist/src/node.js.map +1 -0
- package/dist/src/storage/WebStateStore.d.ts +64 -0
- package/dist/src/storage/WebStateStore.d.ts.map +1 -0
- package/dist/src/storage/WebStateStore.js +237 -0
- package/dist/src/storage/WebStateStore.js.map +1 -0
- package/dist/src/storage/WebStorage.d.ts +225 -0
- package/dist/src/storage/WebStorage.d.ts.map +1 -0
- package/dist/src/storage/WebStorage.js +1462 -0
- package/dist/src/storage/WebStorage.js.map +1 -0
- package/dist/src/storage/adapters.d.ts +610 -0
- package/dist/src/storage/adapters.d.ts.map +1 -0
- package/dist/src/storage/adapters.js +246 -0
- package/dist/src/storage/adapters.js.map +1 -0
- package/dist/src/storage/indexeddb.d.ts +93 -0
- package/dist/src/storage/indexeddb.d.ts.map +1 -0
- package/dist/src/storage/indexeddb.js +384 -0
- package/dist/src/storage/indexeddb.js.map +1 -0
- package/dist/src/storage/indexeddb.spec.d.ts +6 -0
- package/dist/src/storage/indexeddb.spec.d.ts.map +1 -0
- package/dist/src/storage/indexeddb.spec.js +77 -0
- package/dist/src/storage/indexeddb.spec.js.map +1 -0
- package/dist/src/storage/memory.d.ts +275 -0
- package/dist/src/storage/memory.d.ts.map +1 -0
- package/dist/src/storage/memory.js +724 -0
- package/dist/src/storage/memory.js.map +1 -0
- package/dist/src/storage/memory.spec.d.ts +6 -0
- package/dist/src/storage/memory.spec.d.ts.map +1 -0
- package/dist/src/storage/memory.spec.js +71 -0
- package/dist/src/storage/memory.spec.js.map +1 -0
- package/dist/src/storage/node-files.d.ts +38 -0
- package/dist/src/storage/node-files.d.ts.map +1 -0
- package/dist/src/storage/node-files.js +148 -0
- package/dist/src/storage/node-files.js.map +1 -0
- package/dist/src/storage/node-files.spec.d.ts +6 -0
- package/dist/src/storage/node-files.spec.d.ts.map +1 -0
- package/dist/src/storage/node-files.spec.js +40 -0
- package/dist/src/storage/node-files.spec.js.map +1 -0
- package/dist/src/storage/opfs.d.ts +145 -0
- package/dist/src/storage/opfs.d.ts.map +1 -0
- package/dist/src/storage/opfs.js +514 -0
- package/dist/src/storage/opfs.js.map +1 -0
- package/dist/src/storage/opfs.spec.d.ts +6 -0
- package/dist/src/storage/opfs.spec.d.ts.map +1 -0
- package/dist/src/storage/opfs.spec.js +51 -0
- package/dist/src/storage/opfs.spec.js.map +1 -0
- package/dist/src/storage/record-keys.d.ts +78 -0
- package/dist/src/storage/record-keys.d.ts.map +1 -0
- package/dist/src/storage/record-keys.js +71 -0
- package/dist/src/storage/record-keys.js.map +1 -0
- package/dist/src/storage/stores.spec.d.ts +6 -0
- package/dist/src/storage/stores.spec.d.ts.map +1 -0
- package/dist/src/storage/stores.spec.js +326 -0
- package/dist/src/storage/stores.spec.js.map +1 -0
- package/dist/src/storage/web-locks.d.ts +103 -0
- package/dist/src/storage/web-locks.d.ts.map +1 -0
- package/dist/src/storage/web-locks.js +228 -0
- package/dist/src/storage/web-locks.js.map +1 -0
- package/dist/src/testing/adapter-contract.d.ts +116 -0
- package/dist/src/testing/adapter-contract.d.ts.map +1 -0
- package/dist/src/testing/adapter-contract.js +769 -0
- package/dist/src/testing/adapter-contract.js.map +1 -0
- package/dist/src/testing/assert.d.ts +75 -0
- package/dist/src/testing/assert.d.ts.map +1 -0
- package/dist/src/testing/assert.js +146 -0
- package/dist/src/testing/assert.js.map +1 -0
- package/dist/src/testing/assert.spec.d.ts +6 -0
- package/dist/src/testing/assert.spec.d.ts.map +1 -0
- package/dist/src/testing/assert.spec.js +62 -0
- package/dist/src/testing/assert.spec.js.map +1 -0
- package/dist/src/testing/bridge-contract.d.ts +55 -0
- package/dist/src/testing/bridge-contract.d.ts.map +1 -0
- package/dist/src/testing/bridge-contract.js +376 -0
- package/dist/src/testing/bridge-contract.js.map +1 -0
- package/dist/src/testing/bridge-handler.d.ts +35 -0
- package/dist/src/testing/bridge-handler.d.ts.map +1 -0
- package/dist/src/testing/bridge-handler.js +108 -0
- package/dist/src/testing/bridge-handler.js.map +1 -0
- package/dist/src/testing/callers.d.ts +29 -0
- package/dist/src/testing/callers.d.ts.map +1 -0
- package/dist/src/testing/callers.js +24 -0
- package/dist/src/testing/callers.js.map +1 -0
- package/dist/src/testing/e3-fixtures.d.ts +38 -0
- package/dist/src/testing/e3-fixtures.d.ts.map +1 -0
- package/dist/src/testing/e3-fixtures.js +126 -0
- package/dist/src/testing/e3-fixtures.js.map +1 -0
- package/dist/src/testing/hold-platform.d.ts +33 -0
- package/dist/src/testing/hold-platform.d.ts.map +1 -0
- package/dist/src/testing/hold-platform.js +41 -0
- package/dist/src/testing/hold-platform.js.map +1 -0
- package/dist/src/testing/runner-cases.d.ts +112 -0
- package/dist/src/testing/runner-cases.d.ts.map +1 -0
- package/dist/src/testing/runner-cases.js +959 -0
- package/dist/src/testing/runner-cases.js.map +1 -0
- package/dist/src/testing/runner-fixtures.d.ts +13 -0
- package/dist/src/testing/runner-fixtures.d.ts.map +1 -0
- package/dist/src/testing/runner-fixtures.js +173 -0
- package/dist/src/testing/runner-fixtures.js.map +1 -0
- package/dist/src/testing/test-platform.d.ts +73 -0
- package/dist/src/testing/test-platform.d.ts.map +1 -0
- package/dist/src/testing/test-platform.js +143 -0
- package/dist/src/testing/test-platform.js.map +1 -0
- package/dist/src/transfer/WebTransferBackend.d.ts +780 -0
- package/dist/src/transfer/WebTransferBackend.d.ts.map +1 -0
- package/dist/src/transfer/WebTransferBackend.js +1140 -0
- package/dist/src/transfer/WebTransferBackend.js.map +1 -0
- package/dist/src/transfer/WebTransferBackend.spec.d.ts +6 -0
- package/dist/src/transfer/WebTransferBackend.spec.d.ts.map +1 -0
- package/dist/src/transfer/WebTransferBackend.spec.js +582 -0
- package/dist/src/transfer/WebTransferBackend.spec.js.map +1 -0
- package/dist/src/transfer/endpoints.d.ts +46 -0
- package/dist/src/transfer/endpoints.d.ts.map +1 -0
- package/dist/src/transfer/endpoints.js +157 -0
- package/dist/src/transfer/endpoints.js.map +1 -0
- package/dist/src/units.d.ts +51 -0
- package/dist/src/units.d.ts.map +1 -0
- package/dist/src/units.js +74 -0
- package/dist/src/units.js.map +1 -0
- package/dist/src/worker.d.ts +126 -0
- package/dist/src/worker.d.ts.map +1 -0
- package/dist/src/worker.js +186 -0
- package/dist/src/worker.js.map +1 -0
- package/dist/src/worker.spec.d.ts +6 -0
- package/dist/src/worker.spec.d.ts.map +1 -0
- package/dist/src/worker.spec.js +195 -0
- package/dist/src/worker.spec.js.map +1 -0
- package/package.json +76 -3
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* east-node-std's compliance suite over east-web-std, in Chromium: what its
|
|
7
|
+
* test page (`compliance.page.ts`) and its spec (`compliance.spec.ts`) share.
|
|
8
|
+
*
|
|
9
|
+
* `make -C libs/east-node test-export-std` writes east-node-std's East test
|
|
10
|
+
* suites as IR, one JSON file per module's suite, to `EAST_NODE_STD_IR` (the
|
|
11
|
+
* root `paths.mk` sets it to this checkout's `tmp/east-node-std`). The spec
|
|
12
|
+
* has the harness serve that directory under {@link SUITES}; the page loads a
|
|
13
|
+
* module's suite from there, runs it over east-web-std, and answers what each
|
|
14
|
+
* of its East suites and tests did.
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
/** The name the harness serves the export under: a module's suite is at
|
|
19
|
+
* `/<SUITES>/<its file>`. */
|
|
20
|
+
export declare const SUITES = "east-node-std";
|
|
21
|
+
/**
|
|
22
|
+
* The file east-node-std's `describeEast` exports a module's suite to.
|
|
23
|
+
*
|
|
24
|
+
* @param module - The module, by east-node-std's name for it (`Fetch`)
|
|
25
|
+
* @returns The suite's file name in the export
|
|
26
|
+
*/
|
|
27
|
+
export declare function suiteFile(module: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* What an East suite (`describe`) or test did, as the page's test host
|
|
30
|
+
* recorded it.
|
|
31
|
+
*/
|
|
32
|
+
export interface EastTestRecord {
|
|
33
|
+
/** A suite, or a test */
|
|
34
|
+
readonly kind: 'describe' | 'test';
|
|
35
|
+
/** The suites it is in, outermost first, then its own name */
|
|
36
|
+
readonly path: readonly string[];
|
|
37
|
+
/** Whether its body ran to its end */
|
|
38
|
+
readonly passed: boolean;
|
|
39
|
+
/** Why it failed — the failed assertion's message, or the error's, with
|
|
40
|
+
* the East locations it was raised at — or `null` when it passed */
|
|
41
|
+
readonly message: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* What a suite's program did, run in the page.
|
|
45
|
+
*/
|
|
46
|
+
export interface SuiteRun {
|
|
47
|
+
/** Each suite and test the program declared, in the order each started */
|
|
48
|
+
readonly records: readonly EastTestRecord[];
|
|
49
|
+
/** What the program wrote to standard output, through the page's console
|
|
50
|
+
* sink */
|
|
51
|
+
readonly stdout: string;
|
|
52
|
+
/** What it wrote to standard error */
|
|
53
|
+
readonly stderr: string;
|
|
54
|
+
/** Why the program failed outside its suites — it did not compile, say —
|
|
55
|
+
* or `null` */
|
|
56
|
+
readonly error: string | null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The modules whose suites the page runs, and those it does not.
|
|
60
|
+
*/
|
|
61
|
+
export interface ComplianceModules {
|
|
62
|
+
/** The modules east-web-std provides: the page runs each one's suite */
|
|
63
|
+
readonly provided: readonly string[];
|
|
64
|
+
/** The modules a browser has no meaning for, which east-web-std leaves
|
|
65
|
+
* out */
|
|
66
|
+
readonly notProvided: readonly string[];
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=compliance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance.d.ts","sourceRoot":"","sources":["../../../src/browser/compliance.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH;8BAC8B;AAC9B,eAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,yBAAyB;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IACnC,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,sCAAsC;IACtC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;yEACqE;IACrE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;IAC5C;eACW;IACX,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;oBACgB;IAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC;cACU;IACV,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* east-node-std's compliance suite over east-web-std, in Chromium: what its
|
|
7
|
+
* test page (`compliance.page.ts`) and its spec (`compliance.spec.ts`) share.
|
|
8
|
+
*
|
|
9
|
+
* `make -C libs/east-node test-export-std` writes east-node-std's East test
|
|
10
|
+
* suites as IR, one JSON file per module's suite, to `EAST_NODE_STD_IR` (the
|
|
11
|
+
* root `paths.mk` sets it to this checkout's `tmp/east-node-std`). The spec
|
|
12
|
+
* has the harness serve that directory under {@link SUITES}; the page loads a
|
|
13
|
+
* module's suite from there, runs it over east-web-std, and answers what each
|
|
14
|
+
* of its East suites and tests did.
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
/** The name the harness serves the export under: a module's suite is at
|
|
19
|
+
* `/<SUITES>/<its file>`. */
|
|
20
|
+
export const SUITES = 'east-node-std';
|
|
21
|
+
/**
|
|
22
|
+
* The file east-node-std's `describeEast` exports a module's suite to.
|
|
23
|
+
*
|
|
24
|
+
* @param module - The module, by east-node-std's name for it (`Fetch`)
|
|
25
|
+
* @returns The suite's file name in the export
|
|
26
|
+
*/
|
|
27
|
+
export function suiteFile(module) {
|
|
28
|
+
return `${module}_platform_functions.json`;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=compliance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance.js","sourceRoot":"","sources":["../../../src/browser/compliance.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH;8BAC8B;AAC9B,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,MAAc;IACtC,OAAO,GAAG,MAAM,0BAA0B,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance.page.d.ts","sourceRoot":"","sources":["../../../src/browser/compliance.page.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The compliance spec's test page: east-node-std's exported compliance suite,
|
|
7
|
+
* run over east-web-std in a browser, as east-web-std's Node leg runs it in
|
|
8
|
+
* Node.
|
|
9
|
+
*
|
|
10
|
+
* It loads a module's suite from where the harness serves the export, and
|
|
11
|
+
* runs its program over `createWebPlatform({ console, test })`: the program's
|
|
12
|
+
* console output goes to a sink of the page's, and its suites and tests run
|
|
13
|
+
* through a test host that records each one — its name path, whether it
|
|
14
|
+
* passed, and why it failed. A canary program, built here, has a test that
|
|
15
|
+
* passes, one whose assertion fails, one that raises an East error and a suite
|
|
16
|
+
* that fails outside its tests, so the spec can show that the page reports a
|
|
17
|
+
* failure as one.
|
|
18
|
+
*
|
|
19
|
+
* The harness bundles it for Chromium; `compliance.spec.ts` drives it.
|
|
20
|
+
*
|
|
21
|
+
* @packageDocumentation
|
|
22
|
+
*/
|
|
23
|
+
import { ArrayType, AsyncEastIR, AsyncFunctionType, East, EastError, IntegerType, IRType, NullType, SourceMap, StringType, StructType, decodeJSONFor, setLocationCapture, } from '@elaraai/east';
|
|
24
|
+
import { TestFailure, createWebPlatform } from '@elaraai/east-web-std';
|
|
25
|
+
import { SUITES, suiteFile } from './compliance.js';
|
|
26
|
+
import { servePage } from './page.js';
|
|
27
|
+
/** The modules east-web-std provides: the page runs each one's suite. */
|
|
28
|
+
const PROVIDED = ['Console', 'Crypto', 'Fetch', 'Path', 'Random', 'Time'];
|
|
29
|
+
/** The modules a browser has no meaning for, which east-web-std leaves out. */
|
|
30
|
+
const NOT_PROVIDED = ['Env', 'FileSystem', 'Json'];
|
|
31
|
+
// The canary is built in this bundle, where East's frames and the page's share
|
|
32
|
+
// a file and a captured location would name nothing: its nodes carry none, so
|
|
33
|
+
// its errors' messages are theirs alone.
|
|
34
|
+
setLocationCapture(false);
|
|
35
|
+
// The wrapper east-node-std's `describeEast` exports a suite in: the suite's
|
|
36
|
+
// IR, and the stacks its location ids name
|
|
37
|
+
const LocationType = StructType({ column: IntegerType, filename: StringType, line: IntegerType });
|
|
38
|
+
const SourceMapType = StructType({ stacks: ArrayType(ArrayType(LocationType)) });
|
|
39
|
+
const ExportWrapperType = StructType({ ir: IRType, source_map: SourceMapType });
|
|
40
|
+
const decodeSuite = decodeJSONFor(ExportWrapperType);
|
|
41
|
+
/**
|
|
42
|
+
* Loads a module's suite from where the harness serves the export, with the
|
|
43
|
+
* source map its location ids resolve against.
|
|
44
|
+
*
|
|
45
|
+
* @param module - The module, by east-node-std's name for it
|
|
46
|
+
* @returns The suite's program
|
|
47
|
+
* @throws {Error} When the harness serves no such suite, or what it serves is
|
|
48
|
+
* not one
|
|
49
|
+
*/
|
|
50
|
+
async function loadSuite(module) {
|
|
51
|
+
const url = `/${SUITES}/${suiteFile(module)}`;
|
|
52
|
+
const response = await fetch(url);
|
|
53
|
+
if (!response.ok)
|
|
54
|
+
throw new Error(`${url}: the harness answered ${response.status} ${await response.text()}`);
|
|
55
|
+
const { ir, source_map } = decodeSuite(new Uint8Array(await response.arrayBuffer()));
|
|
56
|
+
if (ir.type !== 'AsyncFunction')
|
|
57
|
+
throw new Error(`${url} holds a ${ir.type}, not the async function a suite is`);
|
|
58
|
+
const program = new AsyncEastIR(ir);
|
|
59
|
+
// Interning the stacks in their order gives each the id it was exported
|
|
60
|
+
// under: the export is a source map's entries, which are distinct and start
|
|
61
|
+
// with the empty stack at id 0
|
|
62
|
+
const map = new SourceMap();
|
|
63
|
+
for (const stack of source_map.stacks.slice(1))
|
|
64
|
+
map.intern_stack(stack);
|
|
65
|
+
if (map.size !== BigInt(source_map.stacks.length))
|
|
66
|
+
throw new Error(`${url}: its source map did not rebuild id for id`);
|
|
67
|
+
program.source_map = map;
|
|
68
|
+
return program;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Why a body failed: a failed assertion's message, an East error's with the
|
|
72
|
+
* East locations it was raised at, or any other error's name and message.
|
|
73
|
+
*
|
|
74
|
+
* @param error - What the body threw
|
|
75
|
+
* @returns The message
|
|
76
|
+
*/
|
|
77
|
+
function messageOf(error) {
|
|
78
|
+
if (error instanceof EastError)
|
|
79
|
+
return error.formattedMessage;
|
|
80
|
+
if (error instanceof TestFailure)
|
|
81
|
+
return error.message;
|
|
82
|
+
return error instanceof Error ? `${error.name}: ${error.message}` : `${error}`;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A test host that runs each suite and test where the program declares it,
|
|
86
|
+
* and records each one: its name path, whether its body ran to its end, and
|
|
87
|
+
* why it did not. Every test runs, whether or not the ones before it passed.
|
|
88
|
+
*
|
|
89
|
+
* @param records - Where the records go, in the order each suite and test
|
|
90
|
+
* starts
|
|
91
|
+
* @returns The host
|
|
92
|
+
*/
|
|
93
|
+
function recordingHost(records) {
|
|
94
|
+
const suites = [];
|
|
95
|
+
/** Runs a suite's or a test's body, under a record of its own. */
|
|
96
|
+
async function run(kind, name, body) {
|
|
97
|
+
const record = { kind, path: [...suites, name], passed: true, message: null };
|
|
98
|
+
records.push(record);
|
|
99
|
+
if (kind === 'describe')
|
|
100
|
+
suites.push(name);
|
|
101
|
+
try {
|
|
102
|
+
await body();
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
record.passed = false;
|
|
106
|
+
record.message = messageOf(error);
|
|
107
|
+
}
|
|
108
|
+
finally {
|
|
109
|
+
if (kind === 'describe')
|
|
110
|
+
suites.pop();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
describe: (name, body) => run('describe', name, body),
|
|
115
|
+
test: (name, body) => run('test', name, body),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Runs a test program over east-web-std: its console output to the page's
|
|
120
|
+
* sink, and its suites and tests through a host that records each.
|
|
121
|
+
*
|
|
122
|
+
* @param program - The program
|
|
123
|
+
* @returns What it did
|
|
124
|
+
*/
|
|
125
|
+
async function runProgram(program) {
|
|
126
|
+
const records = [];
|
|
127
|
+
let stdout = '';
|
|
128
|
+
let stderr = '';
|
|
129
|
+
const platform = createWebPlatform({
|
|
130
|
+
console: {
|
|
131
|
+
stdout: (text) => { stdout += text; },
|
|
132
|
+
stderr: (text) => { stderr += text; },
|
|
133
|
+
},
|
|
134
|
+
test: recordingHost(records),
|
|
135
|
+
});
|
|
136
|
+
let error = null;
|
|
137
|
+
try {
|
|
138
|
+
await program.compile(platform)();
|
|
139
|
+
}
|
|
140
|
+
catch (err) {
|
|
141
|
+
error = messageOf(err);
|
|
142
|
+
}
|
|
143
|
+
return { records, stdout, stderr, error };
|
|
144
|
+
}
|
|
145
|
+
// The platform functions the canary calls, declared as east-node-std's
|
|
146
|
+
// `describeEast`, its `Assert` and its Console declare them
|
|
147
|
+
const describe = East.asyncPlatform('describe', [StringType, AsyncFunctionType([], NullType)], NullType);
|
|
148
|
+
const test = East.asyncPlatform('test', [StringType, AsyncFunctionType([], NullType)], NullType);
|
|
149
|
+
const testPass = East.platform('testPass', [], NullType);
|
|
150
|
+
const testFail = East.platform('testFail', [StringType], NullType);
|
|
151
|
+
const consoleLog = East.platform('console_log', [StringType], NullType);
|
|
152
|
+
/**
|
|
153
|
+
* The canary: a program whose suites and tests pass or fail as their names
|
|
154
|
+
* say — a test fails by an assertion and by an East error, and a suite by an
|
|
155
|
+
* East error outside its tests — and which writes a line to standard output.
|
|
156
|
+
*
|
|
157
|
+
* @returns The program
|
|
158
|
+
*/
|
|
159
|
+
function canary() {
|
|
160
|
+
return East.asyncFunction([], NullType, ($) => {
|
|
161
|
+
$(consoleLog('the canary sings'));
|
|
162
|
+
$(describe('canary', East.asyncFunction([], NullType, ($) => {
|
|
163
|
+
$(test('passes', East.asyncFunction([], NullType, ($) => {
|
|
164
|
+
$(testPass());
|
|
165
|
+
})));
|
|
166
|
+
$(test('fails an assertion', East.asyncFunction([], NullType, ($) => {
|
|
167
|
+
$(testFail('the canary\'s assertion'));
|
|
168
|
+
})));
|
|
169
|
+
$(test('raises an East error', East.asyncFunction([], NullType, ($) => {
|
|
170
|
+
$.error('the canary\'s error');
|
|
171
|
+
})));
|
|
172
|
+
$(describe('nested', East.asyncFunction([], NullType, ($) => {
|
|
173
|
+
$(test('passes', East.asyncFunction([], NullType, ($) => {
|
|
174
|
+
$(testPass());
|
|
175
|
+
})));
|
|
176
|
+
})));
|
|
177
|
+
})));
|
|
178
|
+
$(describe('a suite that fails outside its tests', East.asyncFunction([], NullType, ($) => {
|
|
179
|
+
$(test('passes', East.asyncFunction([], NullType, ($) => {
|
|
180
|
+
$(testPass());
|
|
181
|
+
})));
|
|
182
|
+
$.error('the suite\'s error');
|
|
183
|
+
})));
|
|
184
|
+
}).toIR();
|
|
185
|
+
}
|
|
186
|
+
servePage({
|
|
187
|
+
/** The modules whose suites the page runs, and those east-web-std leaves
|
|
188
|
+
* out. */
|
|
189
|
+
modules() {
|
|
190
|
+
return { provided: PROVIDED, notProvided: NOT_PROVIDED };
|
|
191
|
+
},
|
|
192
|
+
/** Runs the suite of a module east-web-std provides, and answers what it
|
|
193
|
+
* did. */
|
|
194
|
+
async runSuite(module) {
|
|
195
|
+
if (!PROVIDED.includes(module))
|
|
196
|
+
throw new Error(`east-web-std provides no ${module}: the page runs no suite of it`);
|
|
197
|
+
return runProgram(await loadSuite(module));
|
|
198
|
+
},
|
|
199
|
+
/** Runs the canary, and answers what it did. */
|
|
200
|
+
runCanary() {
|
|
201
|
+
return runProgram(canary());
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
//# sourceMappingURL=compliance.page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance.page.js","sourceRoot":"","sources":["../../../src/browser/compliance.page.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,aAAa,EACb,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAiB,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,SAAS,EAA8D,MAAM,iBAAiB,CAAC;AAChH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,yEAAyE;AACzE,MAAM,QAAQ,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE1E,+EAA+E;AAC/E,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAEnD,+EAA+E;AAC/E,8EAA8E;AAC9E,yCAAyC;AACzC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAE1B,6EAA6E;AAC7E,2CAA2C;AAC3C,MAAM,Y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AC3B,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,gCAAgC,CAAC,CAAC;QACpH,OAAO,UAAU,CAAC,MAAM,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,gDAAgD;IAChD,SAAS;QACP,OAAO,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9B,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/compliance.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* east-node-std's compliance suite over east-web-std, in Chromium: the
|
|
7
|
+
* Chromium leg of what east-web-std's own `compliance.spec.ts` runs in Node.
|
|
8
|
+
*
|
|
9
|
+
* `make -C libs/east-node test-export-std` exports the suite to
|
|
10
|
+
* `EAST_NODE_STD_IR`, which the root `paths.mk` sets to this checkout's
|
|
11
|
+
* `tmp/east-node-std`, and this reads it from the same place. The harness serves the export, and a page
|
|
12
|
+
* runs the suite of each module east-web-std provides. Each module is a test
|
|
13
|
+
* here, which fails listing every East test that failed, with its message. A
|
|
14
|
+
* canary shows the page reports a failure as one, and every suite in the
|
|
15
|
+
* export is one the page runs or one east-web-std leaves out. Each test ends
|
|
16
|
+
* asserting the page raised nothing.
|
|
17
|
+
*
|
|
18
|
+
* The Fetch suite calls httpbin on :8085 (the workspace root's
|
|
19
|
+
* `make services-up`). The page is on another loopback port, so each request
|
|
20
|
+
* crosses origins, as an app's would.
|
|
21
|
+
*
|
|
22
|
+
* Like every Chromium spec it never skips: when the export is missing or
|
|
23
|
+
* Chromium does not launch, its `before` hook fails with the remediation.
|
|
24
|
+
*/
|
|
25
|
+
import { after, before, describe, it } from 'node:test';
|
|
26
|
+
import assert from 'node:assert/strict';
|
|
27
|
+
import { existsSync, readdirSync } from 'node:fs';
|
|
28
|
+
import { fileURLToPath } from 'node:url';
|
|
29
|
+
import { SUITES, suiteFile } from './compliance.js';
|
|
30
|
+
import { Harness } from './harness.js';
|
|
31
|
+
/** Where the export is: `EAST_NODE_STD_IR`, which the root `paths.mk` sets to
|
|
32
|
+
* this checkout's `tmp/east-node-std` when this runs through make. */
|
|
33
|
+
const IR_DIR = process.env.EAST_NODE_STD_IR;
|
|
34
|
+
/** Where the Fetch suite sends its requests. */
|
|
35
|
+
const HTTPBIN = 'http://localhost:8085';
|
|
36
|
+
const entries = {
|
|
37
|
+
compliance: fileURLToPath(new URL('./compliance.page.js', import.meta.url)),
|
|
38
|
+
};
|
|
39
|
+
/** Text whose lines after the first are indented, to sit under a line of a
|
|
40
|
+
* failure's listing. */
|
|
41
|
+
function indented(text) {
|
|
42
|
+
return text.split('\n').join('\n ');
|
|
43
|
+
}
|
|
44
|
+
/** A suite or test that failed, as a line of a failure's listing: where it
|
|
45
|
+
* is, and why. */
|
|
46
|
+
function listed(record) {
|
|
47
|
+
return ` - ${record.path.join(' > ')}: ${indented(record.message ?? '(no message)')}`;
|
|
48
|
+
}
|
|
49
|
+
/** What a program wrote to one of its streams, as lines of a failure's
|
|
50
|
+
* listing; none when it wrote nothing. */
|
|
51
|
+
function written(stream, text) {
|
|
52
|
+
return text === '' ? [] : [` its ${stream}:`, ` ${indented(text.replace(/\n$/, ''))}`];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Why the Fetch suite cannot pass when httpbin does not answer Node either,
|
|
56
|
+
* as a line of a failure's listing.
|
|
57
|
+
*
|
|
58
|
+
* @returns The remediation, or nothing when httpbin answers
|
|
59
|
+
*/
|
|
60
|
+
async function httpbinRemediation() {
|
|
61
|
+
try {
|
|
62
|
+
const response = await fetch(`${HTTPBIN}/get`);
|
|
63
|
+
await response.body?.cancel();
|
|
64
|
+
if (response.ok)
|
|
65
|
+
return [];
|
|
66
|
+
return [` httpbin at ${HTTPBIN} answers ${response.status} to GET /get: the Fetch suite needs httpbin there.`];
|
|
67
|
+
}
|
|
68
|
+
catch (err) {
|
|
69
|
+
const why = err instanceof Error ? err.message : `${err}`;
|
|
70
|
+
return [` httpbin does not answer at ${HTTPBIN} (${why}): the Fetch suite calls it. Start it with \`make services-up\` at the workspace root.`];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
describe('east-node-std\'s compliance suite over east-web-std, in Chromium', () => {
|
|
74
|
+
let harness;
|
|
75
|
+
/** The page every suite runs in */
|
|
76
|
+
let page;
|
|
77
|
+
/** The modules the page runs the suites of, and those it leaves out */
|
|
78
|
+
let modules;
|
|
79
|
+
/** The export's directory, once `before` has found it */
|
|
80
|
+
let irDir;
|
|
81
|
+
before(async () => {
|
|
82
|
+
if (IR_DIR === undefined) {
|
|
83
|
+
throw new Error('EAST_NODE_STD_IR is unset: run it through make (`make -C libs/e3 test`), which sets it to this checkout\'s tmp/east-node-std');
|
|
84
|
+
}
|
|
85
|
+
if (!existsSync(IR_DIR)) {
|
|
86
|
+
throw new Error(`nothing at ${IR_DIR}: export east-node-std's compliance suite with \`make -C libs/east-node test-export-std\``);
|
|
87
|
+
}
|
|
88
|
+
irDir = IR_DIR;
|
|
89
|
+
harness = await Harness.open({ entries, directories: { [SUITES]: irDir } });
|
|
90
|
+
page = await harness.newPage('compliance');
|
|
91
|
+
modules = await page.call('modules');
|
|
92
|
+
});
|
|
93
|
+
after(async () => {
|
|
94
|
+
await harness?.close();
|
|
95
|
+
});
|
|
96
|
+
/** Asserts the page has raised nothing, a call's answer saying so or not. */
|
|
97
|
+
function raisedNothing() {
|
|
98
|
+
assert.deepEqual(page.raisedErrors.map((error) => error.stack ?? error.message), [], 'the page raised nothing');
|
|
99
|
+
}
|
|
100
|
+
it('records each East suite and test, a failure with its message, as a canary program shows', async () => {
|
|
101
|
+
const run = await page.call('runCanary');
|
|
102
|
+
const expected = {
|
|
103
|
+
records: [
|
|
104
|
+
{ kind: 'describe', path: ['canary'], passed: true, message: null },
|
|
105
|
+
{ kind: 'test', path: ['canary', 'passes'], passed: true, message: null },
|
|
106
|
+
{ kind: 'test', path: ['canary', 'fails an assertion'], passed: false, message: 'the canary\'s assertion' },
|
|
107
|
+
{ kind: 'test', path: ['canary', 'raises an East error'], passed: false, message: 'the canary\'s error' },
|
|
108
|
+
{ kind: 'describe', path: ['canary', 'nested'], passed: true, message: null },
|
|
109
|
+
{ kind: 'test', path: ['canary', 'nested', 'passes'], passed: true, message: null },
|
|
110
|
+
{ kind: 'describe', path: ['a suite that fails outside its tests'], passed: false, message: 'the suite\'s error' },
|
|
111
|
+
{ kind: 'test', path: ['a suite that fails outside its tests', 'passes'], passed: true, message: null },
|
|
112
|
+
],
|
|
113
|
+
stdout: 'the canary sings\n',
|
|
114
|
+
stderr: '',
|
|
115
|
+
error: null,
|
|
116
|
+
};
|
|
117
|
+
assert.deepEqual(run, expected);
|
|
118
|
+
raisedNothing();
|
|
119
|
+
});
|
|
120
|
+
it('every suite in the export is one east-web-std runs or leaves out', () => {
|
|
121
|
+
const exported = readdirSync(irDir).filter((file) => file.endsWith('.json')).sort();
|
|
122
|
+
assert.deepEqual(exported, [...modules.provided, ...modules.notProvided].map(suiteFile).sort());
|
|
123
|
+
});
|
|
124
|
+
it('runs the suite of each module east-web-std provides', async (t) => {
|
|
125
|
+
for (const module of modules.provided) {
|
|
126
|
+
await t.test(module, async (t) => {
|
|
127
|
+
const run = await page.call('runSuite', module);
|
|
128
|
+
const tests = run.records.filter((record) => record.kind === 'test');
|
|
129
|
+
const failed = run.records.filter((record) => !record.passed);
|
|
130
|
+
if (failed.length > 0 || run.error !== null) {
|
|
131
|
+
assert.fail([
|
|
132
|
+
`${module}'s suite failed in Chromium: ${tests.filter((record) => !record.passed).length} of its ${tests.length} East tests failed`,
|
|
133
|
+
...failed.map(listed),
|
|
134
|
+
...(run.error === null ? [] : [` - the program: ${indented(run.error)}`]),
|
|
135
|
+
...written('standard output', run.stdout),
|
|
136
|
+
...written('standard error', run.stderr),
|
|
137
|
+
...(module === 'Fetch' ? await httpbinRemediation() : []),
|
|
138
|
+
].join('\n'));
|
|
139
|
+
}
|
|
140
|
+
assert.ok(tests.length > 0, `${module}'s suite declared no East test`);
|
|
141
|
+
t.diagnostic(`${tests.length} East tests passed`);
|
|
142
|
+
raisedNothing();
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
//# sourceMappingURL=compliance.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance.spec.js","sourceRoot":"","sources":["../../../src/browser/compliance.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAA8D,MAAM,iBAAiB,CAAC;AAChH,OAAO,EAAE,OAAO,EAAoB,MAAM,cAAc,CAAC;AAEzD;uEACuE;AACvE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;AAE5C,gDAAgD;AAChD,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAExC,MAAM,OAAO,GAAG;IACd,UAAU,EAAE,aAAa,CAAC,IAAI,GAAG,CAAC,sBAAsB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;CAC5E,CAAC;AAEF;yBACyB;AACzB,SAAS,Q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AAC,MAAM,oBAAoB;wBACnI,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;wBACrB,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,oBAAoB,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;wBAC1E,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAC;wBACzC,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC;wBACxC,GAAG,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;qBAC1D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;gBAChB,CAAC;gBACD,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,MAAM,gCAAgC,CAAC,CAAC;gBACvE,CAAC,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,MAAM,oBAAoB,CAAC,CAAC;gBAClD,aAAa,EAAE,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e3-api-1.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/e3-api-1.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The shared API suites against e3 in Chromium, part 1 of
|
|
7
|
+
* `API_SUITE_PARTS` (`e3-api.ts`): a browser and a page of its own, run
|
|
8
|
+
* beside the other parts.
|
|
9
|
+
*/
|
|
10
|
+
import { apiSuitesInChromium } from './e3-api.js';
|
|
11
|
+
apiSuitesInChromium(import.meta.url);
|
|
12
|
+
//# sourceMappingURL=e3-api-1.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e3-api-1.spec.js","sourceRoot":"","sources":["../../../src/browser/e3-api-1.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e3-api-2.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/e3-api-2.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The shared API suites against e3 in Chromium, part 2 of
|
|
7
|
+
* `API_SUITE_PARTS` (`e3-api.ts`): a browser and a page of its own, run
|
|
8
|
+
* beside the other parts.
|
|
9
|
+
*/
|
|
10
|
+
import { apiSuitesInChromium } from './e3-api.js';
|
|
11
|
+
apiSuitesInChromium(import.meta.url);
|
|
12
|
+
//# sourceMappingURL=e3-api-2.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e3-api-2.spec.js","sourceRoot":"","sources":["../../../src/browser/e3-api-2.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e3-api-3.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/e3-api-3.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The shared API suites against e3 in Chromium, part 3 of
|
|
7
|
+
* `API_SUITE_PARTS` (`e3-api.ts`): a browser and a page of its own, run
|
|
8
|
+
* beside the other parts.
|
|
9
|
+
*/
|
|
10
|
+
import { apiSuitesInChromium } from './e3-api.js';
|
|
11
|
+
apiSuitesInChromium(import.meta.url);
|
|
12
|
+
//# sourceMappingURL=e3-api-3.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e3-api-3.spec.js","sourceRoot":"","sources":["../../../src/browser/e3-api-3.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e3-api-parts.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/e3-api-parts.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|