Home > @lynx-js/test-environment > LynxEnv
A pure-JavaScript implementation of the Lynx Spec, notably the Element PAPI and Dual-threaded Model for use with Node.js.
Signature:
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)() | Constructs a new instance of the LynxEnv class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| backgroundThread | LynxGlobalThis | The global object for the background thread. | |
| jsdom | JSDOM | ||
| mainThread | LynxGlobalThis & ElementTreeGlobals | The global object for the main thread. |
| Method | Modifiers | Description |
|---|---|---|
| clearGlobal() | ||
| injectGlobals() | ||
| resetLynxEnv() | ||
| switchToBackgroundThread() | ||
| switchToMainThread() |