From cb87b8482b5f66cca2b25df1c5ee5aa1bc6e0068 Mon Sep 17 00:00:00 2001 From: Jason Cheatham Date: Wed, 4 Dec 2019 11:35:33 -0500 Subject: [PATCH] Initial reunion of main projects * Add development note to README * Use cli as main intern UI * Unit tests pass in node * Simplify lint script --- .gitignore | 1 + README.md | 4 + docs/api.json | 227431 ++++++++++----- docs/webdriver/api.json | 43182 +++ docs/webdriver/architecture.md | 86 + docs/webdriver/how_to.md | 88 + docs/webdriver/logo.svg | 19 + intern.json | 107 +- package-lock.json | 4597 +- package.json | 201 +- prettier.config.js | 1 - {src/schemas => schemas}/config.json | 8 +- schemas/webdrivers.json | 36 + scripts/api.ts | 126 + scripts/build.ts | 101 + scripts/clean.ts | 7 + scripts/lib/util.ts | 151 + scripts/lib/watch.ts | 80 + scripts/lint.ts | 16 + scripts/release.ts | 410 + scripts/test.ts | 17 + src/bin/intern.ts | 107 +- src/browser/tsconfig.json | 7 - src/cli/index.ts | 513 + src/cli/lib/interfaces.d.ts | 22 + src/cli/lib/util.ts | 241 + src/common/index.ts | 12 + src/common/lib/Evented.ts | 213 + src/common/lib/Task.ts | 579 + src/common/lib/global.ts | 18 + src/common/lib/request.ts | 307 + src/common/lib/util.ts | 153 + src/core/bin/intern.ts | 110 + src/{ => core}/browser/config.ts | 3 +- src/{ => core}/browser/intern.ts | 3 +- src/{ => core}/browser/remote.html | 0 src/{ => core}/browser/remote.ts | 2 +- src/{ => core}/favicon.png | Bin src/{ => core}/index.html | 0 src/{ => core}/index.ts | 2 +- src/{ => core}/lib/BenchmarkSuite.ts | 0 src/{ => core}/lib/BenchmarkTest.ts | 7 +- src/{ => core}/lib/Channel.ts | 0 src/{ => core}/lib/Deferred.ts | 5 +- src/{ => core}/lib/Environment.ts | 0 src/{ => core}/lib/ProxiedSession.ts | 5 +- src/{ => core}/lib/RemoteSuite.ts | 4 +- src/{ => core}/lib/Server.ts | 10 +- src/{ => core}/lib/Suite.ts | 13 +- src/{ => core}/lib/Test.ts | 8 +- src/{ => core}/lib/browser/shim.ts | 0 src/{ => core}/lib/browser/util.ts | 7 +- src/{ => core}/lib/channels/Base.ts | 2 +- src/{ => core}/lib/channels/Http.ts | 2 +- src/{ => core}/lib/channels/WebSocket.ts | 2 +- src/{ => core}/lib/common/ErrorFormatter.ts | 4 +- src/{ => core}/lib/common/config.ts | 7 +- src/{ => core}/lib/common/console.ts | 2 +- src/{ => core}/lib/common/path.ts | 0 src/{ => core}/lib/common/util.ts | 5 +- src/{ => core}/lib/executors/Browser.ts | 2 +- src/{ => core}/lib/executors/Executor.ts | 8 +- src/{ => core}/lib/executors/Node.ts | 23 +- src/{ => core}/lib/interfaces/bdd.ts | 0 src/{ => core}/lib/interfaces/benchmark.ts | 2 +- src/{ => core}/lib/interfaces/object.ts | 2 +- src/{ => core}/lib/interfaces/tdd.ts | 2 +- src/{ => core}/lib/middleware/filterUrl.ts | 0 src/{ => core}/lib/middleware/finalError.ts | 0 src/{ => core}/lib/middleware/instrument.ts | 2 +- src/{ => core}/lib/middleware/post.ts | 0 .../lib/middleware/resolveSuites.ts | 0 src/{ => core}/lib/middleware/unhandled.ts | 2 +- src/{ => core}/lib/node/ErrorFormatter.ts | 0 src/{ => core}/lib/node/process.ts | 0 src/{ => core}/lib/node/util.ts | 23 +- src/{ => core}/lib/reporters/Benchmark.ts | 0 src/{ => core}/lib/reporters/Cobertura.ts | 0 src/{ => core}/lib/reporters/Console.ts | 0 src/{ => core}/lib/reporters/Coverage.ts | 0 src/{ => core}/lib/reporters/Dom.ts | 2 +- src/{ => core}/lib/reporters/Html.ts | 4 +- src/{ => core}/lib/reporters/HtmlCoverage.ts | 0 src/{ => core}/lib/reporters/JUnit.ts | 0 src/{ => core}/lib/reporters/JsonCoverage.ts | 0 src/{ => core}/lib/reporters/Lcov.ts | 0 src/{ => core}/lib/reporters/Pretty.ts | 4 +- src/{ => core}/lib/reporters/Reporter.ts | 2 +- src/{ => core}/lib/reporters/Runner.ts | 6 +- src/{ => core}/lib/reporters/Simple.ts | 0 src/{ => core}/lib/reporters/TeamCity.ts | 0 src/{ => core}/lib/reporters/TextCoverage.ts | 0 src/{ => core}/lib/reporters/html/html.styl | 0 src/{ => core}/lib/reporters/html/icons.ts | 0 src/{ => core}/lib/resolveEnvironments.ts | 6 +- src/{ => core}/lib/types.ts | 0 src/{ => core}/lib/typings.d.ts | 0 src/{ => core}/loaders/default.ts | 0 src/{ => core}/loaders/dojo.ts | 0 src/{ => core}/loaders/dojo2.ts | 0 src/{ => core}/loaders/esm.ts | 0 src/{ => core}/loaders/globals.d.ts | 0 src/{ => core}/loaders/systemjs.ts | 15 +- src/tasks/intern.ts | 9 +- src/tunnels/BrowserStackTunnel.ts | 349 + src/tunnels/CrossBrowserTestingTunnel.ts | 258 + src/tunnels/NullTunnel.ts | 40 + src/tunnels/SauceLabsTunnel.ts | 617 + src/tunnels/SeleniumTunnel.ts | 698 + src/tunnels/TestingBotTunnel.ts | 295 + src/tunnels/Tunnel.ts | 783 + src/tunnels/bin/digdugEnvironments.ts | 52 + src/tunnels/interfaces.ts | 42 + src/tunnels/lib/util.ts | 142 + src/tunnels/webdrivers.json | 41 + src/webdriver/Command.ts | 1868 + src/webdriver/Element.ts | 803 + src/webdriver/Server.ts | 2026 + src/webdriver/Session.ts | 2552 + src/webdriver/helpers/pollUntil.ts | 218 + src/webdriver/helpers/pollUntilTruthy.ts | 93 + src/webdriver/index.ts | 11 + src/webdriver/interfaces.ts | 297 + src/webdriver/keys.ts | 198 + src/webdriver/lib/Locator.ts | 398 + src/webdriver/lib/findDisplayed.ts | 59 + src/webdriver/lib/statusCodes.ts | 93 + src/webdriver/lib/util.ts | 136 + src/webdriver/lib/waitForDeleted.ts | 76 + tests/benchmark/example.ts | 6 +- tests/examples/example.intern.ts | 2 +- tests/functional/lib/ProxiedSession.ts | 12 +- tests/functional/webdriver/Command.ts | 527 + tests/functional/webdriver/Element.ts | 1267 + tests/functional/webdriver/Server.ts | 270 + tests/functional/webdriver/Session.ts | 2246 + tests/functional/webdriver/data/default.html | 14 + .../functional/webdriver/data/dimensions.html | 71 + tests/functional/webdriver/data/elements.html | 74 + tests/functional/webdriver/data/form.html | 31 + tests/functional/webdriver/data/frame.html | 14 + tests/functional/webdriver/data/pointer.html | 112 + tests/functional/webdriver/data/popup.html | 12 + tests/functional/webdriver/data/prompts.html | 15 + .../functional/webdriver/data/scripting.html | 21 + .../functional/webdriver/data/scrollable.html | 39 + tests/functional/webdriver/data/upload.html | 10 + tests/functional/webdriver/data/upload.txt | 1 + .../functional/webdriver/data/visibility.html | 39 + tests/functional/webdriver/data/window.html | 16 + .../functional/webdriver/helpers/pollUntil.ts | 113 + .../webdriver/helpers/pollUntilTruthy.ts | 100 + tests/functional/webdriver/support/util.ts | 61 + tests/globals.d.ts | 5 +- .../integration/tunnels/BrowserStackTunnel.ts | 21 + .../tunnels/CrossBrowserTestingTunnel.ts | 29 + tests/integration/tunnels/SauceLabsTunnel.ts | 19 + tests/integration/tunnels/SeleniumTunnel.ts | 141 + tests/integration/tunnels/TestingBotTunnel.ts | 18 + tests/support/globalUi.ts | 10 +- tests/support/integration.ts | 143 + tests/support/nodeMocking.ts | 4 +- tests/support/unit/executor.ts | 2 +- tests/support/unit/factories.ts | 4 +- tests/support/unit/mocks.ts | 21 +- tests/support/util.ts | 46 + tests/tsconfig.json | 51 - tests/unit/cli/util.ts | 107 + tests/unit/{ => core}/bin/intern.ts | 106 +- tests/unit/{ => core}/index.ts | 8 +- tests/unit/{ => core}/lib/BenchmarkTest.ts | 16 +- tests/unit/{ => core}/lib/Channel.ts | 12 +- tests/unit/{ => core}/lib/Deferred.ts | 2 +- tests/unit/{ => core}/lib/Environment.ts | 2 +- tests/unit/{ => core}/lib/ProxiedSession.ts | 6 +- tests/unit/{ => core}/lib/RemoteSuite.ts | 15 +- tests/unit/{ => core}/lib/Server.ts | 20 +- tests/unit/{ => core}/lib/Suite.ts | 16 +- tests/unit/{ => core}/lib/Test.ts | 12 +- tests/unit/{ => core}/lib/browser/util.ts | 10 +- tests/unit/{ => core}/lib/channels/Base.ts | 8 +- tests/unit/{ => core}/lib/channels/Http.ts | 10 +- .../unit/{ => core}/lib/channels/WebSocket.ts | 12 +- .../{ => core}/lib/common/ErrorFormatter.ts | 8 +- tests/unit/{ => core}/lib/common/console.ts | 10 +- tests/unit/{ => core}/lib/common/path.ts | 2 +- tests/unit/{ => core}/lib/common/util.ts | 6 +- .../unit/{ => core}/lib/executors/Browser.ts | 14 +- .../unit/{ => core}/lib/executors/Executor.ts | 28 +- tests/unit/{ => core}/lib/executors/Node.ts | 165 +- tests/unit/{ => core}/lib/interfaces/bdd.ts | 4 +- .../{ => core}/lib/interfaces/benchmark.ts | 14 +- .../unit/{ => core}/lib/interfaces/object.ts | 10 +- tests/unit/{ => core}/lib/interfaces/tdd.ts | 12 +- .../{ => core}/lib/middleware/filterUrl.ts | 4 +- .../{ => core}/lib/middleware/finalError.ts | 6 +- .../{ => core}/lib/middleware/instrument.ts | 22 +- tests/unit/{ => core}/lib/middleware/post.ts | 4 +- .../lib/middleware/resolveSuites.ts | 10 +- .../{ => core}/lib/middleware/unhandled.ts | 4 +- .../{ => core}/lib/node/ErrorFormatter.ts | 10 +- tests/unit/{ => core}/lib/node/util.ts | 16 +- .../{ => core}/lib/reporters/Benchmark.ts | 8 +- .../{ => core}/lib/reporters/Cobertura.ts | 2 +- .../unit/{ => core}/lib/reporters/Console.ts | 10 +- .../unit/{ => core}/lib/reporters/Coverage.ts | 6 +- tests/unit/{ => core}/lib/reporters/Dom.ts | 14 +- tests/unit/{ => core}/lib/reporters/Html.ts | 14 +- .../{ => core}/lib/reporters/HtmlCoverage.ts | 2 +- tests/unit/{ => core}/lib/reporters/JUnit.ts | 8 +- .../{ => core}/lib/reporters/JsonCoverage.ts | 2 +- tests/unit/{ => core}/lib/reporters/Lcov.ts | 2 +- tests/unit/{ => core}/lib/reporters/Pretty.ts | 25 +- .../unit/{ => core}/lib/reporters/Reporter.ts | 12 +- tests/unit/{ => core}/lib/reporters/Runner.ts | 8 +- tests/unit/{ => core}/lib/reporters/Simple.ts | 6 +- .../unit/{ => core}/lib/reporters/TeamCity.ts | 8 +- .../{ => core}/lib/reporters/TextCoverage.ts | 2 +- .../lib/reporters/support/MockStream.ts | 0 .../{ => core}/lib/reporters/support/dom.ts | 0 .../{ => core}/lib/reporters/support/mocks.ts | 0 .../{ => core}/lib/resolveEnvironments.ts | 10 +- tests/unit/{ => core}/loaders/default.ts | 4 +- tests/unit/{ => core}/loaders/dojo.ts | 4 +- tests/unit/{ => core}/loaders/dojo2.ts | 4 +- tests/unit/{ => core}/loaders/esm.ts | 4 +- tests/unit/{ => core}/loaders/systemjs.ts | 4 +- tests/unit/{ => core}/tasks/intern.ts | 10 +- .../unit/lib/reporters/support/baseline.json | 29 - tests/unit/tunnels/BrowserStackTunnel.ts | 74 + .../unit/tunnels/CrossBrowserTestingTunnel.ts | 28 + tests/unit/tunnels/SauceLabsTunnel.ts | 71 + tests/unit/tunnels/SeleniumTunnel.ts | 84 + tests/unit/tunnels/TestingBotTunnel.ts | 19 + tests/unit/tunnels/Tunnel.ts | 84 + tests/unit/tunnels/lib/util.ts | 46 + tests/unit/webdriver/lib/util.ts | 50 + tsconfig-bin.json | 15 + tsconfig-browser.json | 7 + .../tsconfig.json => tsconfig-examples.json | 0 tsconfig-lib.json | 24 + tsconfig-tests.json | 13 + tsconfig.json | 28 +- tslint.json | 43 +- webpack.config.ts | 16 +- 245 files changed, 222529 insertions(+), 75872 deletions(-) create mode 100644 docs/webdriver/api.json create mode 100644 docs/webdriver/architecture.md create mode 100644 docs/webdriver/how_to.md create mode 100644 docs/webdriver/logo.svg delete mode 100644 prettier.config.js rename {src/schemas => schemas}/config.json (99%) create mode 100644 schemas/webdrivers.json create mode 100644 scripts/api.ts create mode 100644 scripts/build.ts create mode 100644 scripts/clean.ts create mode 100644 scripts/lib/util.ts create mode 100644 scripts/lib/watch.ts create mode 100644 scripts/lint.ts create mode 100644 scripts/release.ts create mode 100644 scripts/test.ts mode change 100644 => 100755 src/bin/intern.ts delete mode 100644 src/browser/tsconfig.json create mode 100644 src/cli/index.ts create mode 100644 src/cli/lib/interfaces.d.ts create mode 100644 src/cli/lib/util.ts create mode 100644 src/common/index.ts create mode 100644 src/common/lib/Evented.ts create mode 100644 src/common/lib/Task.ts create mode 100644 src/common/lib/global.ts create mode 100644 src/common/lib/request.ts create mode 100644 src/common/lib/util.ts create mode 100644 src/core/bin/intern.ts rename src/{ => core}/browser/config.ts (79%) rename src/{ => core}/browser/intern.ts (90%) rename src/{ => core}/browser/remote.html (100%) rename src/{ => core}/browser/remote.ts (97%) rename src/{ => core}/favicon.png (100%) rename src/{ => core}/index.html (100%) rename src/{ => core}/index.ts (93%) rename src/{ => core}/lib/BenchmarkSuite.ts (100%) rename src/{ => core}/lib/BenchmarkTest.ts (98%) rename src/{ => core}/lib/Channel.ts (100%) rename src/{ => core}/lib/Deferred.ts (93%) rename src/{ => core}/lib/Environment.ts (100%) rename src/{ => core}/lib/ProxiedSession.ts (97%) rename src/{ => core}/lib/RemoteSuite.ts (98%) rename src/{ => core}/lib/Server.ts (98%) rename src/{ => core}/lib/Suite.ts (99%) rename src/{ => core}/lib/Test.ts (99%) rename src/{ => core}/lib/browser/shim.ts (100%) rename src/{ => core}/lib/browser/util.ts (95%) rename src/{ => core}/lib/channels/Base.ts (96%) rename src/{ => core}/lib/channels/Http.ts (97%) rename src/{ => core}/lib/channels/WebSocket.ts (97%) rename src/{ => core}/lib/common/ErrorFormatter.ts (98%) rename src/{ => core}/lib/common/config.ts (98%) rename src/{ => core}/lib/common/console.ts (92%) rename src/{ => core}/lib/common/path.ts (100%) rename src/{ => core}/lib/common/util.ts (99%) rename src/{ => core}/lib/executors/Browser.ts (98%) rename src/{ => core}/lib/executors/Executor.ts (99%) rename src/{ => core}/lib/executors/Node.ts (97%) rename src/{ => core}/lib/interfaces/bdd.ts (100%) rename src/{ => core}/lib/interfaces/benchmark.ts (98%) rename src/{ => core}/lib/interfaces/object.ts (99%) rename src/{ => core}/lib/interfaces/tdd.ts (98%) rename src/{ => core}/lib/middleware/filterUrl.ts (100%) rename src/{ => core}/lib/middleware/finalError.ts (100%) rename src/{ => core}/lib/middleware/instrument.ts (98%) rename src/{ => core}/lib/middleware/post.ts (100%) rename src/{ => core}/lib/middleware/resolveSuites.ts (100%) rename src/{ => core}/lib/middleware/unhandled.ts (86%) rename src/{ => core}/lib/node/ErrorFormatter.ts (100%) rename src/{ => core}/lib/node/process.ts (100%) rename src/{ => core}/lib/node/util.ts (91%) rename src/{ => core}/lib/reporters/Benchmark.ts (100%) rename src/{ => core}/lib/reporters/Cobertura.ts (100%) rename src/{ => core}/lib/reporters/Console.ts (100%) rename src/{ => core}/lib/reporters/Coverage.ts (100%) rename src/{ => core}/lib/reporters/Dom.ts (98%) rename src/{ => core}/lib/reporters/Html.ts (99%) rename src/{ => core}/lib/reporters/HtmlCoverage.ts (100%) rename src/{ => core}/lib/reporters/JUnit.ts (100%) rename src/{ => core}/lib/reporters/JsonCoverage.ts (100%) rename src/{ => core}/lib/reporters/Lcov.ts (100%) rename src/{ => core}/lib/reporters/Pretty.ts (99%) rename src/{ => core}/lib/reporters/Reporter.ts (99%) rename src/{ => core}/lib/reporters/Runner.ts (98%) rename src/{ => core}/lib/reporters/Simple.ts (100%) rename src/{ => core}/lib/reporters/TeamCity.ts (100%) rename src/{ => core}/lib/reporters/TextCoverage.ts (100%) rename src/{ => core}/lib/reporters/html/html.styl (100%) rename src/{ => core}/lib/reporters/html/icons.ts (100%) rename src/{ => core}/lib/resolveEnvironments.ts (97%) rename src/{ => core}/lib/types.ts (100%) rename src/{ => core}/lib/typings.d.ts (100%) rename src/{ => core}/loaders/default.ts (100%) rename src/{ => core}/loaders/dojo.ts (100%) rename src/{ => core}/loaders/dojo2.ts (100%) rename src/{ => core}/loaders/esm.ts (100%) rename src/{ => core}/loaders/globals.d.ts (100%) rename src/{ => core}/loaders/systemjs.ts (80%) create mode 100644 src/tunnels/BrowserStackTunnel.ts create mode 100644 src/tunnels/CrossBrowserTestingTunnel.ts create mode 100644 src/tunnels/NullTunnel.ts create mode 100644 src/tunnels/SauceLabsTunnel.ts create mode 100644 src/tunnels/SeleniumTunnel.ts create mode 100644 src/tunnels/TestingBotTunnel.ts create mode 100644 src/tunnels/Tunnel.ts create mode 100755 src/tunnels/bin/digdugEnvironments.ts create mode 100644 src/tunnels/interfaces.ts create mode 100644 src/tunnels/lib/util.ts create mode 100644 src/tunnels/webdrivers.json create mode 100644 src/webdriver/Command.ts create mode 100644 src/webdriver/Element.ts create mode 100644 src/webdriver/Server.ts create mode 100644 src/webdriver/Session.ts create mode 100644 src/webdriver/helpers/pollUntil.ts create mode 100644 src/webdriver/helpers/pollUntilTruthy.ts create mode 100644 src/webdriver/index.ts create mode 100644 src/webdriver/interfaces.ts create mode 100644 src/webdriver/keys.ts create mode 100644 src/webdriver/lib/Locator.ts create mode 100644 src/webdriver/lib/findDisplayed.ts create mode 100644 src/webdriver/lib/statusCodes.ts create mode 100644 src/webdriver/lib/util.ts create mode 100644 src/webdriver/lib/waitForDeleted.ts create mode 100644 tests/functional/webdriver/Command.ts create mode 100644 tests/functional/webdriver/Element.ts create mode 100644 tests/functional/webdriver/Server.ts create mode 100644 tests/functional/webdriver/Session.ts create mode 100644 tests/functional/webdriver/data/default.html create mode 100644 tests/functional/webdriver/data/dimensions.html create mode 100644 tests/functional/webdriver/data/elements.html create mode 100644 tests/functional/webdriver/data/form.html create mode 100644 tests/functional/webdriver/data/frame.html create mode 100644 tests/functional/webdriver/data/pointer.html create mode 100644 tests/functional/webdriver/data/popup.html create mode 100644 tests/functional/webdriver/data/prompts.html create mode 100644 tests/functional/webdriver/data/scripting.html create mode 100644 tests/functional/webdriver/data/scrollable.html create mode 100644 tests/functional/webdriver/data/upload.html create mode 100644 tests/functional/webdriver/data/upload.txt create mode 100644 tests/functional/webdriver/data/visibility.html create mode 100644 tests/functional/webdriver/data/window.html create mode 100644 tests/functional/webdriver/helpers/pollUntil.ts create mode 100644 tests/functional/webdriver/helpers/pollUntilTruthy.ts create mode 100644 tests/functional/webdriver/support/util.ts create mode 100644 tests/integration/tunnels/BrowserStackTunnel.ts create mode 100644 tests/integration/tunnels/CrossBrowserTestingTunnel.ts create mode 100644 tests/integration/tunnels/SauceLabsTunnel.ts create mode 100644 tests/integration/tunnels/SeleniumTunnel.ts create mode 100644 tests/integration/tunnels/TestingBotTunnel.ts create mode 100644 tests/support/integration.ts create mode 100644 tests/support/util.ts delete mode 100644 tests/tsconfig.json create mode 100644 tests/unit/cli/util.ts rename tests/unit/{ => core}/bin/intern.ts (66%) rename tests/unit/{ => core}/index.ts (71%) rename tests/unit/{ => core}/lib/BenchmarkTest.ts (97%) rename tests/unit/{ => core}/lib/Channel.ts (89%) rename tests/unit/{ => core}/lib/Deferred.ts (92%) rename tests/unit/{ => core}/lib/Environment.ts (91%) rename tests/unit/{ => core}/lib/ProxiedSession.ts (89%) rename tests/unit/{ => core}/lib/RemoteSuite.ts (96%) rename tests/unit/{ => core}/lib/Server.ts (97%) rename tests/unit/{ => core}/lib/Suite.ts (99%) rename tests/unit/{ => core}/lib/Test.ts (98%) rename tests/unit/{ => core}/lib/browser/util.ts (97%) rename tests/unit/{ => core}/lib/channels/Base.ts (83%) rename tests/unit/{ => core}/lib/channels/Http.ts (94%) rename tests/unit/{ => core}/lib/channels/WebSocket.ts (91%) rename tests/unit/{ => core}/lib/common/ErrorFormatter.ts (95%) rename tests/unit/{ => core}/lib/common/console.ts (88%) rename tests/unit/{ => core}/lib/common/path.ts (96%) rename tests/unit/{ => core}/lib/common/util.ts (99%) rename tests/unit/{ => core}/lib/executors/Browser.ts (96%) rename tests/unit/{ => core}/lib/executors/Executor.ts (96%) rename tests/unit/{ => core}/lib/executors/Node.ts (91%) rename tests/unit/{ => core}/lib/interfaces/bdd.ts (93%) rename tests/unit/{ => core}/lib/interfaces/benchmark.ts (92%) rename tests/unit/{ => core}/lib/interfaces/object.ts (96%) rename tests/unit/{ => core}/lib/interfaces/tdd.ts (95%) rename tests/unit/{ => core}/lib/middleware/filterUrl.ts (91%) rename tests/unit/{ => core}/lib/middleware/finalError.ts (85%) rename tests/unit/{ => core}/lib/middleware/instrument.ts (91%) rename tests/unit/{ => core}/lib/middleware/post.ts (98%) rename tests/unit/{ => core}/lib/middleware/resolveSuites.ts (84%) rename tests/unit/{ => core}/lib/middleware/unhandled.ts (90%) rename tests/unit/{ => core}/lib/node/ErrorFormatter.ts (95%) rename tests/unit/{ => core}/lib/node/util.ts (97%) rename tests/unit/{ => core}/lib/reporters/Benchmark.ts (98%) rename tests/unit/{ => core}/lib/reporters/Cobertura.ts (92%) rename tests/unit/{ => core}/lib/reporters/Console.ts (96%) rename tests/unit/{ => core}/lib/reporters/Coverage.ts (95%) rename tests/unit/{ => core}/lib/reporters/Dom.ts (92%) rename tests/unit/{ => core}/lib/reporters/Html.ts (95%) rename tests/unit/{ => core}/lib/reporters/HtmlCoverage.ts (91%) rename tests/unit/{ => core}/lib/reporters/JUnit.ts (98%) rename tests/unit/{ => core}/lib/reporters/JsonCoverage.ts (81%) rename tests/unit/{ => core}/lib/reporters/Lcov.ts (83%) rename tests/unit/{ => core}/lib/reporters/Pretty.ts (95%) rename tests/unit/{ => core}/lib/reporters/Reporter.ts (94%) rename tests/unit/{ => core}/lib/reporters/Runner.ts (98%) rename tests/unit/{ => core}/lib/reporters/Simple.ts (93%) rename tests/unit/{ => core}/lib/reporters/TeamCity.ts (96%) rename tests/unit/{ => core}/lib/reporters/TextCoverage.ts (91%) rename tests/unit/{ => core}/lib/reporters/support/MockStream.ts (100%) rename tests/unit/{ => core}/lib/reporters/support/dom.ts (100%) rename tests/unit/{ => core}/lib/reporters/support/mocks.ts (100%) rename tests/unit/{ => core}/lib/resolveEnvironments.ts (98%) rename tests/unit/{ => core}/loaders/default.ts (95%) rename tests/unit/{ => core}/loaders/dojo.ts (96%) rename tests/unit/{ => core}/loaders/dojo2.ts (96%) rename tests/unit/{ => core}/loaders/esm.ts (95%) rename tests/unit/{ => core}/loaders/systemjs.ts (96%) rename tests/unit/{ => core}/tasks/intern.ts (94%) delete mode 100644 tests/unit/lib/reporters/support/baseline.json create mode 100644 tests/unit/tunnels/BrowserStackTunnel.ts create mode 100644 tests/unit/tunnels/CrossBrowserTestingTunnel.ts create mode 100644 tests/unit/tunnels/SauceLabsTunnel.ts create mode 100644 tests/unit/tunnels/SeleniumTunnel.ts create mode 100644 tests/unit/tunnels/TestingBotTunnel.ts create mode 100644 tests/unit/tunnels/Tunnel.ts create mode 100644 tests/unit/tunnels/lib/util.ts create mode 100644 tests/unit/webdriver/lib/util.ts create mode 100644 tsconfig-bin.json create mode 100644 tsconfig-browser.json rename tests/examples/tsconfig.json => tsconfig-examples.json (100%) create mode 100644 tsconfig-lib.json create mode 100644 tsconfig-tests.json diff --git a/.gitignore b/.gitignore index 7d3067394..d8319d584 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ _examples/ _tests/ _publish/ src/**/*.js +selenium-standalone/ benchmark.json baselines.json baseline.json diff --git a/README.md b/README.md index c2ab30e5e..bbac192ad 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ Software testing for humans +> ⚠️ This documentation is for the development version of Intern. For the +> current release version, go +> [here](//https://github.com/theintern/intern/tree/4.7). + Intern is a complete test system for JavaScript designed to help you write and run consistent, high-quality test cases for your JavaScript libraries and applications. It can be used to test _any_ JavaScript code. diff --git a/docs/api.json b/docs/api.json index 3c65eb959..c83b878fb 100644 --- a/docs/api.json +++ b/docs/api.json @@ -1,238 +1,89 @@ { "id": 0, - "name": "intern", + "name": "intern - v5.0.0-pre", "kind": 0, "flags": {}, "children": [ { - "id": 4346, - "name": "\"bin/intern\"", + "id": 387, + "name": "\"common/index\"", "kind": 1, "kindString": "External module", "flags": { "isExported": true }, - "originalName": "src/bin/intern.ts", - "children": [ - { - "id": 4347, - "name": "printHelp", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 4348, - "name": "printHelp", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 4349, - "name": "config", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 4350, - "name": "file", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "bin/intern.ts", - "line": 58, - "character": 18 - } - ] - } - ], - "groups": [ - { - "title": "Functions", - "kind": 64, - "children": [ - 4347 - ] - } - ], + "originalName": "src/common/index.ts", "sources": [ { - "fileName": "bin/intern.ts", + "fileName": "src/common/index.ts", "line": 1, "character": 0 } ] }, { - "id": 4342, - "name": "\"index\"", + "id": 187, + "name": "\"common/lib/Evented\"", "kind": 1, "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true - }, - "originalName": "src/index.ts", - "comment": { - "shortText": "This is the default public API for Intern. Since most of Intern's public API\nis accessible through the [[lib/executors/Executor.Executor]] classes, this\nmodule simply exports a reference to the global executor instance." + "isExported": true }, + "originalName": "src/common/lib/Evented.ts", "children": [ { - "id": 4344, - "name": "__global", - "kind": 2, - "kindString": "Module", + "id": 188, + "name": "Evented", + "kind": 128, + "kindString": "Class", "flags": { - "isExternal": true + "isExported": true }, - "children": [ + "comment": { + "shortText": "An event emitter" + }, + "typeParameter": [ { - "id": 4345, - "name": "intern", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true, - "isConst": true - }, - "comment": { - "shortText": "Intern installs an instance of an Executor subclass (Node in Node.js, or\nBrowser in a browser environment) on a global `intern` constant." - }, - "sources": [ - { - "fileName": "index.ts", - "line": 18, - "character": 21 - } - ], + "id": 189, + "name": "M", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { "type": "reference", - "name": "NodeExecutor" + "name": "CustomEventTypes", + "id": 215 } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 4345 - ] - } - ], - "sources": [ + }, { - "fileName": "index.ts", - "line": 13, - "character": 14 - } - ] - }, - { - "id": 4343, - "name": "intern", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true, - "isConst": true - }, - "sources": [ + "id": 190, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, { - "fileName": "index.ts", - "line": 10, - "character": 12 + "id": 191, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } } ], - "type": { - "type": "reference", - "name": "Node", - "id": 2600 - }, - "defaultValue": " (global.intern = new NodeExecutor())" - } - ], - "groups": [ - { - "title": "Modules", - "kind": 2, - "children": [ - 4344 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 4343 - ] - } - ], - "sources": [ - { - "fileName": "index.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 3652, - "name": "\"lib/BenchmarkSuite\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/BenchmarkSuite.ts", - "children": [ - { - "id": 3653, - "name": "BenchmarkSuite", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "BenchmarkSuite is a specialization of [[lib/Suite]] that manages\n[[lib/BenchmarkTest|BenchmarkTests]]." - }, "children": [ { - "id": 3657, + "id": 194, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -241,1563 +92,1713 @@ }, "signatures": [ { - "id": 3658, - "name": "new BenchmarkSuite", + "id": 195, + "name": "new Evented", "kind": 16384, "kindString": "Constructor signature", "flags": {}, - "parameters": [ - { - "id": 3659, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "BenchmarkSuiteOptions", - "id": 3737 - } - } - ], "type": { "type": "reference", - "name": "BenchmarkSuite", - "id": 3653 - }, - "overwrites": { - "type": "reference", - "name": "Suite.__constructor", - "id": 3415 + "name": "Evented", + "id": 188 } } ], "sources": [ { - "fileName": "lib/BenchmarkSuite.ts", - "line": 20, - "character": 45 + "fileName": "src/common/lib/Evented.ts", + "line": 27, + "character": 28 } - ], - "overwrites": { - "type": "reference", - "name": "Suite.__constructor", - "id": 3415 - } + ] }, { - "id": 3660, - "name": "after", + "id": 192, + "name": "__typeMap__", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true - }, - "comment": { - "shortText": "An optional method that is run after all the suite's tests have completed" + "isProtected": true, + "isExported": true, + "isOptional": true }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 22, - "character": 7 + "fileName": "src/common/lib/Evented.ts", + "line": 20, + "character": 23 } ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.after", - "id": 3401 - }, - "implementationOf": { "type": "reference", - "name": "BenchmarkSuiteProperties.after", - "id": 3728 + "name": "M", + "id": 189 } }, { - "id": 3661, - "name": "afterEach", + "id": 193, + "name": "listenersMap", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "comment": { - "shortText": "An optional method that is run after each test has completed" + "shortText": "map of listeners keyed by event type" }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 27, - "character": 11 + "fileName": "src/common/lib/Evented.ts", + "line": 24, + "character": 24 } ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.afterEach", - "id": 3402 - }, - "implementationOf": { "type": "reference", - "name": "BenchmarkSuiteProperties.afterEach", - "id": 3729 - } - }, - { - "id": 3654, - "name": "afterEachLoop", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A function that is run after each test call by benchmark.js" - }, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 15, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ + "name": "Map", + "typeArguments": [ { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + } + } + ] }, { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "implementationOf": { - "type": "reference", - "name": "BenchmarkSuiteProperties.afterEachLoop", - "id": 3727 - } - }, - { - "id": 3662, - "name": "async", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A convenience function that generates and returns a special\n[[lib/Deferred.Deferred]] that can be used for asynchronous testing" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 33, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 3663, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ + "type": "array", + "elementType": { + "type": "reference", + "name": "EventedCallback", + "id": 223, + "typeArguments": [ { - "id": 3664, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 3665, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "type": { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "O", + "constraint": { "type": "reference", - "name": "Deferred", - "id": 3, + "name": "EventObject", + "id": 219, "typeArguments": [ { - "type": "intrinsic", - "name": "void" + "type": "typeParameter", + "name": "T" } ] } } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 33, - "character": 8 - } ] } - }, - { - "type": "intrinsic", - "name": "undefined" } ] }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.async", - "id": 3403 - } + "defaultValue": " new Map()" }, { - "id": 3666, - "name": "before", - "kind": 1024, - "kindString": "Property", + "id": 213, + "name": "destroy", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "An optional method that is run before any of this suite's tests are\nstarted" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 + "id": 214, + "name": "destroy", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Destrpys all handers registered for the instance", + "text": "Returns a promise that resolves once all handles have been destroyed\n" }, - { - "type": "intrinsic", - "name": "undefined" + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.before", - "id": 3407 - }, - "implementationOf": { - "type": "reference", - "name": "BenchmarkSuiteProperties.before", - "id": 3731 - } - }, - { - "id": 3667, - "name": "beforeEach", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An optional method that is run before each test" - }, + } + ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 44, - "character": 12 + "fileName": "src/common/lib/Evented.ts", + "line": 113, + "character": 9 } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.beforeEach", - "id": 3408 - }, - "implementationOf": { - "type": "reference", - "name": "BenchmarkSuiteProperties.beforeEach", - "id": 3732 - } + ] }, { - "id": 3655, - "name": "beforeEachLoop", - "kind": 1024, - "kindString": "Property", + "id": 196, + "name": "emit", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A function that is run before each test call by benchmark.js" - }, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 18, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "implementationOf": { - "type": "reference", - "name": "BenchmarkSuiteProperties.beforeEachLoop", - "id": 3726 - } - }, - { - "id": 3668, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The error that caused this suite to fail" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 47, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "InternError", - "id": 23 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.error", - "id": 3409 - } - }, - { - "id": 3669, - "name": "parent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "This suite's parent Suite" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 50, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Suite", - "id": 3400 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.parent", - "id": 3410 - } - }, - { - "id": 3670, - "name": "publishAfterSetup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "If true, the suite will emit a suiteStart event after the `before`\ncallback has finished, and will emit a suiteEnd event before the `after`\ncallback has finished." - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 57, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false", - "inheritedFrom": { - "type": "reference", - "name": "Suite.publishAfterSetup", - "id": 3411 - }, - "implementationOf": { - "type": "reference", - "name": "BenchmarkSuiteProperties.publishAfterSetup", - "id": 3735 - } - }, - { - "id": 3671, - "name": "skipped", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The reason why this suite was skipped" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 60, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" + "id": 197, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Emits the event object for the specified type" }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.skipped", - "id": 3412 - } - }, - { - "id": 3656, - "name": "tests", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 20, - "character": 7 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "union", - "types": [ + "typeParameter": [ { - "type": "reference", - "name": "BenchmarkTest", - "id": 1984 - }, + "id": 198, + "name": "K", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + } + } + } + ], + "parameters": [ { - "type": "reference", - "name": "BenchmarkSuite", - "id": 3653 + "id": 199, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "the event to emit\n" + }, + "type": { + "type": "indexedAccess", + "objectType": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + }, + "indexType": { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + } + } + } + } } - ] - } - }, - "overwrites": { - "type": "reference", - "name": "Suite.tests", - "id": 3413 - } - }, - { - "id": 3672, - "name": "timeElapsed", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The time required to run all the tests in this suite" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 66, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.timeElapsed", - "id": 3414 - } - }, - { - "id": 3673, - "name": "bail", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." - }, - "getSignature": [ - { - "id": 3674, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." - }, + ], "type": { "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.bail", - "id": 3418 + "name": "void" } - } - ], - "setSignature": [ + }, { - "id": 3675, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 200, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." - }, "parameters": [ { - "id": 3676, - "name": "value", + "id": 201, + "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "boolean" + "type": "typeParameter", + "name": "O", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } } } ], "type": { "type": "intrinsic", "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.bail", - "id": 3418 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 102, - "character": 10 + "fileName": "src/common/lib/Evented.ts", + "line": 38, + "character": 6 }, { - "fileName": "lib/Suite.ts", - "line": 106, - "character": 10 + "fileName": "src/common/lib/Evented.ts", + "line": 39, + "character": 6 + }, + { + "fileName": "src/common/lib/Evented.ts", + "line": 40, + "character": 6 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.bail", - "id": 3418 - }, - "implementationOf": { - "type": "reference", - "name": "BenchmarkSuiteProperties.bail", - "id": 3730 - } + ] }, { - "id": 3677, - "name": "executor", - "kind": 262144, - "kindString": "Accessor", + "id": 202, + "name": "on", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The executor used to run this Suite." - }, - "getSignature": [ + "signatures": [ { - "id": 3678, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 203, + "name": "on", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The executor used to run this Suite." + "shortText": "Catch all handler for various call signatures. The signatures are defined in\n`BaseEventedEvents`. You can add your own event type -> handler types by extending\n`BaseEventedEvents`. See example for details." }, + "typeParameter": [ + { + "id": 204, + "name": "K", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + } + } + } + ], + "parameters": [ + { + "id": 205, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + } + } + } + }, + { + "id": 206, + "name": "listener", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "EventedCallbackOrArray", + "id": 229, + "typeArguments": [ + { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + } + } + }, + { + "type": "indexedAccess", + "objectType": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + }, + "indexType": { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "typeParameter", + "name": "M", + "constraint": { + "type": "reference", + "name": "CustomEventTypes", + "id": 215 + } + } + } + } + } + ] + } + } + ], "type": { "type": "reference", - "name": "Executor", - "id": 3780 - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.executor", - "id": 3422 + "name": "Handle", + "id": 133 } - } - ], - "setSignature": [ + }, { - "id": 3679, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 207, + "name": "on", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "The executor used to run this Suite." - }, "parameters": [ { - "id": 3680, - "name": "value", + "id": 208, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + }, + { + "id": 209, + "name": "listener", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Executor", - "id": 3780 + "name": "EventedCallbackOrArray", + "id": 229, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "O", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ] } } ], "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { "type": "reference", - "name": "Suite.executor", - "id": 3422 + "name": "Handle", + "id": 133 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 113, - "character": 14 + "fileName": "src/common/lib/Evented.ts", + "line": 66, + "character": 4 }, { - "fileName": "lib/Suite.ts", - "line": 118, - "character": 14 + "fileName": "src/common/lib/Evented.ts", + "line": 70, + "character": 4 + }, + { + "fileName": "src/common/lib/Evented.ts", + "line": 71, + "character": 4 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.executor", - "id": 3422 - } + ] }, { - "id": 3681, - "name": "grep", - "kind": 262144, - "kindString": "Accessor", + "id": 210, + "name": "own", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." - }, - "getSignature": [ - { - "id": 3682, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." - }, - "type": { - "type": "reference", - "name": "RegExp" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.grep", - "id": 3426 - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 3683, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 211, + "name": "own", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." + "shortText": "Register handles for the instance that will be destroyed when\n`this.destroy` is called", + "text": "Returns a handle for the handle, removes the handle for the instance and\ncalls destroy\n" }, "parameters": [ { - "id": 3684, - "name": "value", + "id": 212, + "name": "handles", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "RegExp" + "type": "union", + "types": [ + { + "type": "reference", + "name": "Handle", + "id": 133 + }, + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Handle", + "id": 133 + } + } + ] } } ], "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { "type": "reference", - "name": "Suite.grep", - "id": 3426 + "name": "Handle", + "id": 133 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 130, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 134, - "character": 10 + "fileName": "src/common/lib/Evented.ts", + "line": 94, + "character": 5 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.grep", - "id": 3426 - }, - "implementationOf": { + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 194 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 192, + 193 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 213, + 196, + 202, + 210 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 11, + "character": 28 + } + ], + "extendedBy": [ + { + "type": "reference", + "name": "ResponseClass", + "id": 306 + }, + { + "type": "reference", + "name": "Tunnel", + "id": 2303 + } + ] + }, + { + "id": 215, + "name": "CustomEventTypes", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 216, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { "type": "reference", - "name": "BenchmarkSuiteProperties.grep", - "id": 3733 + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] } - }, + } + ], + "indexSignature": [ { - "id": 3709, - "name": "hasParent", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." - }, - "getSignature": [ + "id": 217, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ { - "id": 3710, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 218, + "name": "index", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." - }, "type": { "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.hasParent", - "id": 3454 + "name": "string" } } ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 278, - "character": 15 + "type": { + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.hasParent", - "id": 3454 } - }, + } + ], + "sources": [ { - "id": 3689, - "name": "id", - "kind": 262144, - "kindString": "Accessor", + "fileName": "src/common/lib/Evented.ts", + "line": 148, + "character": 33 + } + ] + }, + { + "id": 219, + "name": "EventObject", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The base event object, which provides a `type` property" + }, + "typeParameter": [ + { + "id": 220, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 221, + "name": "type", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, "comment": { - "shortText": "The unique identifier of the suite, assuming all combinations of suite +\ntest are unique." + "shortText": "The type of the event" }, - "getSignature": [ - { - "id": 3690, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The unique identifier of the suite, assuming all combinations of suite +\ntest are unique." - }, - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.id", - "id": 3434 - } - } - ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 157, - "character": 8 + "fileName": "src/common/lib/Evented.ts", + "line": 171, + "character": 15 } ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.id", - "id": 3434 + "type": { + "type": "typeParameter", + "name": "T" } - }, + } + ], + "groups": [ { - "id": 3685, - "name": "name", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "This suite's name" + "title": "Properties", + "kind": 1024, + "children": [ + 221 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 169, + "character": 28 + } + ], + "extendedBy": [ + { + "type": "reference", + "name": "TunnelEventObject", + "id": 2405 + } + ] + }, + { + "id": 232, + "name": "EventType", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 164, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, - "getSignature": [ - { - "id": 3686, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "This suite's name" - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.name", - "id": 3430 + { + "type": "intrinsic", + "name": "symbol" + } + ] + } + }, + { + "id": 223, + "name": "EventedCallback", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 224, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 225, + "name": "E", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" } - } - ], - "setSignature": [ + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 136, + "character": 27 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 226, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ { - "id": 3687, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 227, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "This suite's name" + "shortText": "A callback that takes an `event` argument" }, "parameters": [ { - "id": 3688, - "name": "value", + "id": 228, + "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The event object\n" + }, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "type": "typeParameter", + "name": "E", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } } } ], "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.name", - "id": 3430 + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "void" + } + ] } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 142, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 146, - "character": 10 + "fileName": "src/common/lib/Evented.ts", + "line": 139, + "character": 3 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.name", - "id": 3430 + ] + } + } + }, + { + "id": 229, + "name": "EventedCallbackOrArray", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A type which is either a targeted event listener or an array of listeners", + "tags": [ + { + "tag": "template", + "text": "T The type of target for the events" }, - "implementationOf": { - "type": "reference", - "name": "BenchmarkSuiteProperties.name", - "id": 3734 + { + "tag": "template", + "text": "E The event type for the events\n" } + ] + }, + "typeParameter": [ + { + "id": 230, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} }, { - "id": 3705, - "name": "numFailedTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." - }, - "getSignature": [ - { - "id": 3706, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.numFailedTests", - "id": 3450 - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 248, - "character": 20 - } - ], - "inheritedFrom": { + "id": 231, + "name": "E", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { "type": "reference", - "name": "Suite.numFailedTests", - "id": 3450 + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } - }, + } + ], + "sources": [ { - "id": 3703, - "name": "numPassedTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The total number of tests in this test suite that passed." - }, - "getSignature": [ - { - "id": 3704, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The total number of tests in this test suite that passed." - }, - "type": { - "type": "intrinsic", - "name": "number" + "fileName": "src/common/lib/Evented.ts", + "line": 159, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "EventedCallback", + "id": 223, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.numPassedTests", - "id": 3448 + { + "type": "typeParameter", + "name": "E", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } } + ] + }, + { + "type": "array", + "elementType": { + "type": "reference", + "name": "EventedCallback", + "id": 223, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "E", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ] } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 233, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.numPassedTests", - "id": 3448 } - }, + ] + } + }, + { + "id": 222, + "name": "regexMap", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "comment": { + "shortText": "Map of computed regular expressions, keyed by string" + }, + "sources": [ { - "id": 3707, - "name": "numSkippedTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." + "fileName": "src/common/lib/Evented.ts", + "line": 6, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Map", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, - "getSignature": [ - { - "id": 3708, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.numSkippedTests", - "id": 3452 - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 263, - "character": 21 - } - ], - "inheritedFrom": { + { "type": "reference", - "name": "Suite.numSkippedTests", - "id": 3452 + "name": "RegExp" } - }, + ] + }, + "defaultValue": " new Map()" + }, + { + "id": 233, + "name": "destroyed", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ { - "id": 3701, - "name": "numTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, + "id": 234, + "name": "destroyed", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." + "shortText": "No op function used to replace own, once instance has been destoryed" }, - "getSignature": [ + "parameters": [ { - "id": 3702, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 235, + "name": "_handles", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." - }, "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.numTests", - "id": 3446 + "type": "union", + "types": [ + { + "type": "reference", + "name": "Handle", + "id": 133 + }, + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Handle", + "id": 133 + } + } + ] } } ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 221, - "character": 14 - } - ], - "inheritedFrom": { + "type": { "type": "reference", - "name": "Suite.numTests", - "id": 3446 + "name": "Handle", + "id": 133 } - }, + } + ], + "sources": [ { - "id": 3691, - "name": "parentId", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, + "fileName": "src/common/lib/Evented.ts", + "line": 177, + "character": 18 + } + ] + }, + { + "id": 236, + "name": "isGlobMatch", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 237, + "name": "isGlobMatch", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "shortText": "The unique identifier of the suite's parent." + "shortText": "Determines is the event type glob has been matched", + "text": "Returns a boolean that indicates if the glob is matched\n" }, - "getSignature": [ + "parameters": [ { - "id": 3692, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 238, + "name": "globString", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The unique identifier of the suite's parent." - }, "type": { "type": "union", "types": [ { "type": "intrinsic", - "name": "undefined" + "name": "string" }, + { + "type": "intrinsic", + "name": "symbol" + } + ] + } + }, + { + "id": 239, + "name": "targetString", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ { "type": "intrinsic", "name": "string" + }, + { + "type": "intrinsic", + "name": "symbol" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.parentId", - "id": 3436 } } ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 186, + "character": 20 + } + ] + }, + { + "id": 240, + "name": "noop", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 241, + "name": "noop", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "No operation function to replace own once instance is destoryed" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 211, + "character": 13 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 188 + ] + }, + { + "title": "Interfaces", + "kind": 256, + "children": [ + 215, + 219 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 232, + 223, + 229 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 222 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 233, + 236, + 240 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"common/lib/Task\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/common/lib/Task.ts", + "children": [ + { + "id": 106, + "name": "State", + "kind": 4, + "kindString": "Enumeration", + "flags": {}, + "comment": { + "shortText": "The internal state of a task" + }, + "children": [ + { + "id": 110, + "name": "Canceled", + "kind": 16, + "kindString": "Enumeration member", + "flags": {}, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 171, - "character": 14 + "fileName": "src/common/lib/Task.ts", + "line": 560, + "character": 10 } ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.parentId", - "id": 3436 - } + "defaultValue": "3" }, { - "id": 3693, - "name": "remote", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." - }, - "getSignature": [ + "id": 107, + "name": "Fulfilled", + "kind": 16, + "kindString": "Enumeration member", + "flags": {}, + "sources": [ { - "id": 3694, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." - }, - "type": { - "type": "reference", - "name": "Remote", - "id": 2813 - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.remote", - "id": 3438 - } + "fileName": "src/common/lib/Task.ts", + "line": 557, + "character": 11 } ], - "setSignature": [ + "defaultValue": "0" + }, + { + "id": 108, + "name": "Pending", + "kind": 16, + "kindString": "Enumeration member", + "flags": {}, + "sources": [ { - "id": 3695, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", - "flags": {}, - "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." - }, - "parameters": [ - { - "id": 3696, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Remote", - "id": 2813 - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.remote", - "id": 3438 - } + "fileName": "src/common/lib/Task.ts", + "line": 558, + "character": 9 } ], + "defaultValue": "1" + }, + { + "id": 109, + "name": "Rejected", + "kind": 16, + "kindString": "Enumeration member", + "flags": {}, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 184, - "character": 12 - }, - { - "fileName": "lib/Suite.ts", - "line": 190, - "character": 12 + "fileName": "src/common/lib/Task.ts", + "line": 559, + "character": 10 } ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.remote", - "id": 3438 - } - }, + "defaultValue": "2" + } + ], + "groups": [ { - "id": 3697, - "name": "sessionId", - "kind": 262144, - "kindString": "Accessor", + "title": "Enumeration members", + "kind": 16, + "children": [ + 110, + 107, + 108, + 109 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 556, + "character": 16 + } + ] + }, + { + "id": 32, + "name": "Task", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Task is an implementation of CancellablePromise." + }, + "typeParameter": [ + { + "id": 33, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 64, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", "flags": { "isExported": true }, "comment": { - "shortText": "The sessionId of the environment in which the suite executed." + "shortText": "Create a new task. Executor is run immediately. The canceler will be\ncalled when the task is canceled." }, - "getSignature": [ - { - "id": 3698, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The sessionId of the environment in which the suite executed." - }, - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.sessionId", - "id": 3442 - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 3699, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 65, + "name": "new Task", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, "comment": { - "shortText": "The sessionId of the environment in which the suite executed." + "shortText": "Create a new task. Executor is run immediately. The canceler will be\ncalled when the task is canceled." }, "parameters": [ { - "id": 3700, - "name": "value", + "id": 66, + "name": "executor", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Method that initiates some task" + }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 67, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 68, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 69, + "name": "resolve", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 70, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 71, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 72, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 297, + "character": 14 + } + ] + } + } + }, + { + "id": 73, + "name": "reject", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 74, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 75, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 76, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 298, + "character": 13 + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 296, + "character": 13 + } + ] + } + } + }, + { + "id": 77, + "name": "canceler", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Method to call when the task is canceled\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 78, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 79, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + ] } } ], "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { "type": "reference", - "name": "Suite.sessionId", - "id": 3442 + "name": "Task", + "id": 32 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 200, - "character": 15 - }, + "fileName": "src/common/lib/Task.ts", + "line": 286, + "character": 24 + } + ] + }, + { + "id": 34, + "name": "[Symbol.toStringTag]", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set for compatibility with Promise" + }, + "sources": [ { - "fileName": "lib/Suite.ts", - "line": 213, - "character": 15 + "fileName": "src/common/lib/Task.ts", + "line": 41, + "character": 31 } ], - "inheritedFrom": { + "type": { + "type": "stringLiteral", + "value": "Promise" + }, + "implementationOf": { "type": "reference", - "name": "Suite.sessionId", - "id": 3442 + "name": "CancellablePromise.[Symbol.toStringTag]", + "id": 31 } }, { - "id": 3711, - "name": "timeout", - "kind": 262144, - "kindString": "Accessor", + "id": 80, + "name": "cancel", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "getSignature": [ + "signatures": [ { - "id": 3712, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 81, + "name": "cancel", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" + "comment": { + "shortText": "Immediately cancels this task if it has not already resolved. This Task\nand any descendants are synchronously set to the Canceled state and any\n`finally` added downstream from the canceled Task are invoked." }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.timeout", - "id": 3456 - } - } - ], - "setSignature": [ - { - "id": 3713, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", - "flags": {}, - "parameters": [ - { - "id": 3714, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], "type": { "type": "intrinsic", "name": "void" }, - "inheritedFrom": { + "implementationOf": { "type": "reference", - "name": "Suite.timeout", - "id": 3456 + "name": "CancellablePromise.cancel", + "id": 5 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 282, - "character": 13 - }, - { - "fileName": "lib/Suite.ts", - "line": 292, - "character": 13 + "fileName": "src/common/lib/Task.ts", + "line": 384, + "character": 8 } ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.timeout", - "id": 3456 - }, "implementationOf": { "type": "reference", - "name": "BenchmarkSuiteProperties.timeout", - "id": 3736 + "name": "CancellablePromise.cancel", + "id": 4 } }, { - "id": 3715, - "name": "add", + "id": 82, + "name": "catch", "kind": 2048, "kindString": "Method", "flags": { @@ -1805,114 +1806,142 @@ }, "signatures": [ { - "id": 3716, - "name": "add", + "id": 83, + "name": "catch", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Add a test or suite to this suite." + "shortText": "Adds a callback to be invoked when the wrapped Promise is rejected." }, + "typeParameter": [ + { + "id": 84, + "name": "TResult", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 3717, - "name": "suiteOrTest", + "id": 85, + "name": "onRejected", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, + "comment": { + "text": "A function to call to handle the error. The parameter\nto the function will be the caught error.\n" + }, "type": { "type": "union", "types": [ { - "type": "reference", - "name": "Suite", - "id": 3400 + "type": "reflection", + "declaration": { + "id": 86, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 87, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 88, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "TResult" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "TResult" + } + ] + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 397, + "character": 16 + } + ] + } }, { - "type": "reference", - "name": "Test", - "id": 3317 + "type": "intrinsic", + "name": "undefined" } ] } } ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.add", - "id": 3460 - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 299, - "character": 5 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.add", - "id": 3460 - } - }, - { - "id": 3718, - "name": "run", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 3719, - "name": "run", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Runs test suite in order:", - "text": "* before\n* (for each test)\n * beforeEach\n * test\n * afterEach\n* after\n\nIf before, beforeEach, afterEach, or after throw, the suite itself will\nbe marked as failed and no further tests in the suite will be executed.\n" - }, "type": { "type": "reference", - "name": "CancellablePromise", + "name": "Task", + "id": 32, "typeArguments": [ { - "type": "intrinsic", - "name": "void" + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "TResult" + } + ] } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.run", - "id": 3463 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 363, - "character": 5 + "fileName": "src/common/lib/Task.ts", + "line": 396, + "character": 7 } ], - "inheritedFrom": { + "implementationOf": { "type": "reference", - "name": "Suite.run", - "id": 3463 + "name": "CancellablePromise.catch", + "id": 6 } }, { - "id": 3720, - "name": "skip", + "id": 89, + "name": "finally", "kind": 2048, "kindString": "Method", "flags": { @@ -1920,59 +1949,97 @@ }, "signatures": [ { - "id": 3721, - "name": "skip", + "id": 90, + "name": "finally", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Skips this suite.", - "text": "Calling this function will cause all remaining tests in the suite to be\nskipped. If a message was provided, a reporter may report the suite’s\ntests as skipped. Skipped tests are not treated as passing or failing.\n\nIf this method is called from a test function (as this.parent.skip()),\nthe test will be immediately halted, just as if the test’s own skip\nmethod were called.\n" + "shortText": "Allows for cleanup actions to be performed after resolution of a Promise." }, "parameters": [ { - "id": 3722, - "name": "message", + "id": 91, + "name": "callback", "kind": 32768, "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "If provided, will be stored in this suite's `skipped`\nproperty.\n" + "flags": { + "isOptional": true }, "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"suite skipped\"" + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 92, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 93, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 405, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } } ], "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { "type": "reference", - "name": "Suite.skip", - "id": 3465 + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 736, - "character": 6 + "fileName": "src/common/lib/Task.ts", + "line": 405, + "character": 9 } ], - "inheritedFrom": { + "implementationOf": { "type": "reference", - "name": "Suite.skip", - "id": 3465 + "name": "CancellablePromise.finally", + "id": 13 } }, { - "id": 3723, - "name": "toJSON", + "id": 94, + "name": "then", "kind": 2048, "kindString": "Method", "flags": { @@ -1980,2114 +2047,3118 @@ }, "signatures": [ { - "id": 3724, - "name": "toJSON", + "id": 95, + "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, - "type": { - "type": "intrinsic", - "name": "object" + "comment": { + "shortText": "Adds a callback to be invoked when the Task resolves or is rejected." }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.toJSON", - "id": 3468 - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 743, - "character": 8 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Suite.toJSON", - "id": 3468 - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 3657 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 3660, - 3661, - 3654, - 3662, - 3666, - 3667, - 3655, - 3668, - 3669, - 3670, - 3671, - 3656, - 3672 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 3673, - 3677, - 3681, - 3709, - 3689, - 3685, - 3705, - 3703, - 3707, - 3701, - 3691, - 3693, - 3697, - 3711 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 3715, - 3718, - 3720, - 3723 - ] - } - ], - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 12, - "character": 35 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "Suite", - "id": 3400 - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "SuiteProperties", - "id": 3479 - }, - { - "type": "reference", - "name": "BenchmarkSuiteProperties", - "id": 3725 - } - ] - }, - { - "id": 3725, - "name": "BenchmarkSuiteProperties", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 3728, - "name": "after", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 804, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.after", - "id": 3480 - } - }, - { - "id": 3729, - "name": "afterEach", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 805, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { + "typeParameter": [ + { + "id": 96, + "name": "TResult1", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 97, + "name": "TResult2", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 98, + "name": "onFulfilled", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "A function to call to handle the resolution. The\nparamter to the function will be the resolved value, if any." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 99, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 100, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 101, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "TResult1" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "TResult1" + } + ] + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 437, + "character": 7 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 102, + "name": "onRejected", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "A function to call to handle the error. The parameter\nto the function will be the caught error.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 103, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 104, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 105, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "TResult2" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "TResult2" + } + ] + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 441, + "character": 7 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "TResult1" + }, + { + "type": "typeParameter", + "name": "TResult2" + } + ] + } + ] } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.afterEach", - "id": 3481 - } - }, - { - "id": 3727, - "name": "afterEachLoop", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 29, - "character": 15 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 3730, - "name": "bail", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 806, + "fileName": "src/common/lib/Task.ts", + "line": 435, "character": 6 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "boolean" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { + "implementationOf": { "type": "reference", - "name": "SuiteProperties.bail", - "id": 3482 + "name": "CancellablePromise.then", + "id": 18 } }, { - "id": 3731, - "name": "before", - "kind": 1024, - "kindString": "Property", + "id": 48, + "name": "all", + "kind": 2048, + "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 807, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.before", - "id": 3483 - } - }, - { - "id": 3732, - "name": "beforeEach", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "comment": { + "shortText": "Return a Task that resolves when all of the passed in objects have\nresolved. When used with a key/value pair, the returned promise's\nargument is a key/value pair of the original keys with their resolved\nvalues.", + "text": "```ts\nTask.all({ one: 1, two: 2 }).then(results => console.log(results));\n// { one: 1, two: 2 }\n```\n" }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 808, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 + "id": 49, + "name": "all", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Return a Task that resolves when all of the passed in objects have\nresolved. When used with a key/value pair, the returned promise's\nargument is a key/value pair of the original keys with their resolved\nvalues.", + "text": "```ts\nExtensiblePromise.all({ one: 1, two: 2 }).then(results => console.log(results));\n// { one: 1, two: 2 }\n```\n" }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.beforeEach", - "id": 3484 - } - }, - { - "id": 3726, - "name": "beforeEachLoop", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 28, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { + "typeParameter": [ + { + "id": 50, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 51, + "name": "iterable", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "An iterable of values to resolve, or a key/value pair of\nvalues to resolve. These can be Promises, ExtensiblePromises, or other\nobjects\n" + }, + "type": { + "type": "reference", + "name": "DictionaryOfPromises", + "id": 115, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ], + "type": { "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 52, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 53, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 54, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 103, + "character": 57 + } + ] + } + } + ] } - ] - } - }, - { - "id": 3733, - "name": "grep", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + }, { - "fileName": "lib/Suite.ts", - "line": 809, - "character": 6 - } - ], - "type": { - "type": "reference", - "name": "RegExp" - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.grep", - "id": 3485 - } - }, - { - "id": 3734, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 810, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.name", - "id": 3486 - } - }, - { - "id": 3735, - "name": "publishAfterSetup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 811, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.publishAfterSetup", - "id": 3487 - } - }, - { - "id": 3736, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 812, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "name": "SuiteProperties.timeout", - "id": 3488 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 3728, - 3729, - 3727, - 3730, - 3731, - 3732, - 3726, - 3733, - 3734, - 3735, - 3736 - ] - } - ], - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 27, - "character": 41 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "SuiteProperties", - "id": 3479 - } - ], - "implementedBy": [ - { - "type": "reference", - "name": "BenchmarkSuite", - "id": 3653 - } - ] - }, - { - "id": 3737, - "name": "BenchmarkSuiteOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 32, - "character": 33 - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "name": "Partial", - "typeArguments": [ - { - "type": "reference", - "name": "BenchmarkSuiteProperties", - "id": 3725 - } - ] - }, - { - "type": "reflection", - "declaration": { - "id": 3738, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "id": 55, + "name": "all", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "children": [ + "comment": { + "shortText": "Return a Task that resolves when all of the passed in objects have\nresolved. When used with a key/value pair, the returned promise's\nargument is a key/value pair of the original keys with their resolved\nvalues.", + "text": "```ts\nTask.all({ one: 1, two: 2 }).then(results => console.log(results));\n// { one: 1, two: 2 }\n```\n" + }, + "typeParameter": [ { - "id": 3739, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 33, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, + "id": 56, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ { - "id": 3740, - "name": "parent", - "kind": 32, - "kindString": "Variable", + "id": 57, + "name": "iterable", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 34, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Suite", - "id": 3400 - } - }, - { - "id": 3741, - "name": "tests", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true + "comment": { + "shortText": "An iterable of values to resolve, or a key/value pair of\nvalues to resolve. These can be Promises, ExtensiblePromises, or other\nobjects\n" }, - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 35, - "character": 7 - } - ], "type": { "type": "array", "elementType": { "type": "union", "types": [ { - "type": "reference", - "name": "BenchmarkTest", - "id": 1984 + "type": "unknown", + "name": "T" }, { "type": "reference", - "name": "BenchmarkSuite", - "id": 3653 + "name": "PromiseLike", + "typeArguments": [ + { + "type": "unknown", + "name": "T" + } + ] } ] } } } ], - "groups": [ + "type": { + "type": "reference", + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } + } + ] + } + }, + { + "id": 58, + "name": "all", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Return a Task that resolves when all of the passed in objects have\nresolved. When used with a key/value pair, the returned promise's\nargument is a key/value pair of the original keys with their resolved\nvalues.", + "text": "```ts\nTask.all({ one: 1, two: 2 }).then(results => console.log(results));\n// { one: 1, two: 2 }\n```\n" + }, + "typeParameter": [ { - "title": "Variables", - "kind": 32, - "children": [ - 3739, - 3740, - 3741 - ] + "id": 59, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} } ], - "sources": [ + "parameters": [ { - "fileName": "lib/BenchmarkSuite.ts", - "line": 32, - "character": 71 + "id": 60, + "name": "iterable", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "An iterable of values to resolve, or a key/value pair of\nvalues to resolve. These can be Promises, ExtensiblePromises, or other\nobjects\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ] + } } - ] - } - } - ] - } - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 3653 - ] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [ - 3725 - ] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [ - 3737 - ] - } - ], - "sources": [ - { - "fileName": "lib/BenchmarkSuite.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1983, - "name": "\"lib/BenchmarkTest\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/BenchmarkTest.ts", - "children": [ - { - "id": 1984, - "name": "BenchmarkTest", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "BenchmarkTest wraps a Benchmark.js Benchmark, mapping its API to that used by\n[[lib/Test]]." - }, - "children": [ - { - "id": 1987, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ + ], + "type": { + "type": "reference", + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } + } + ] + } + }, { - "id": 1988, - "name": "new BenchmarkTest", - "kind": 16384, - "kindString": "Constructor signature", + "id": 61, + "name": "all", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Return a Task that resolves when all of the passed in objects have\nresolved. When used with a key/value pair, the returned promise's\nargument is a key/value pair of the original keys with their resolved\nvalues.", + "text": "```ts\nTask.all({ one: 1, two: 2 }).then(results => console.log(results));\n// { one: 1, two: 2 }\n```\n" + }, + "typeParameter": [ + { + "id": 62, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 1989, - "name": "descriptor", + "id": 63, + "name": "iterable", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "An iterable of values to resolve, or a key/value pair of\nvalues to resolve. These can be Promises, ExtensiblePromises, or other\nobjects\n" + }, "type": { "type": "reference", - "name": "BenchmarkTestOptions", - "id": 2427 + "name": "ListOfPromises", + "id": 120, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } } ], "type": { "type": "reference", - "name": "BenchmarkTest", - "id": 1984 - }, - "overwrites": { - "type": "reference", - "name": "Test.__constructor", - "id": 3331 + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } + } + ] } } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 32, - "character": 29 + "fileName": "src/common/lib/Task.ts", + "line": 103, + "character": 12 + }, + { + "fileName": "src/common/lib/Task.ts", + "line": 120, + "character": 12 + }, + { + "fileName": "src/common/lib/Task.ts", + "line": 137, + "character": 12 + }, + { + "fileName": "src/common/lib/Task.ts", + "line": 154, + "character": 12 + }, + { + "fileName": "src/common/lib/Task.ts", + "line": 171, + "character": 12 } - ], - "overwrites": { - "type": "reference", - "name": "Test.__constructor", - "id": 3331 - } + ] }, { - "id": 2014, - "name": "_hasPassed", - "kind": 1024, - "kindString": "Property", + "id": 35, + "name": "race", + "kind": 2048, + "kindString": "Method", "flags": { - "isProtected": true, + "isStatic": true, "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/Test.ts", - "line": 37, - "character": 22 + "id": 36, + "name": "race", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Return a Task that resolves when one of the passed in objects have\nresolved" + }, + "typeParameter": [ + { + "id": 37, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 38, + "name": "iterable", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "An iterable of values to resolve. These can be Promises,\nTasks, or other objects\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Iterable", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ] + } + ] + }, + { + "type": "array", + "elementType": { + "type": "union", + "types": [ + { + "type": "unknown", + "name": "T" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "unknown", + "name": "T" + } + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false", - "inheritedFrom": { - "type": "reference", - "name": "Test._hasPassed", - "id": 3324 - } + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 50, + "character": 13 + } + ] }, { - "id": 2015, - "name": "_isAsync", - "kind": 1024, - "kindString": "Property", + "id": 39, + "name": "reject", + "kind": 2048, + "kindString": "Method", "flags": { - "isProtected": true, + "isStatic": true, "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/Test.ts", - "line": 39, - "character": 20 - } + "id": 40, + "name": "reject", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Return a rejected promise wrapped in a Task" + }, + "typeParameter": [ + { + "id": 41, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 42, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The reason for the rejection\n" + }, + "type": { + "type": "reference", + "name": "Error", + "id": 690 + } + } + ], + "type": { + "type": "reference", + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false", - "inheritedFrom": { - "type": "reference", - "name": "Test._isAsync", - "id": 3325 - } + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 63, + "character": 15 + } + ] }, { - "id": 2017, - "name": "_runTask", - "kind": 1024, - "kindString": "Property", + "id": 43, + "name": "resolve", + "kind": 2048, + "kindString": "Method", "flags": { - "isProtected": true, + "isPublic": true, + "isStatic": true, "isExported": true }, - "sources": [ + "comment": { + "shortText": "Return a resolved task." + }, + "signatures": [ { - "fileName": "lib/Test.ts", - "line": 43, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 44, + "name": "resolve", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Return a resolved task." + }, + "type": { "type": "reference", - "name": "CancellablePromise", + "name": "Task", + "id": 32, "typeArguments": [ { "type": "intrinsic", - "name": "any" + "name": "void" } ] + } + }, + { + "id": 45, + "name": "resolve", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Return a resolved task." }, - { - "type": "intrinsic", - "name": "undefined" + "typeParameter": [ + { + "id": 46, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 47, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The value to resolve with\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "Task", + "id": 32, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Test._runTask", - "id": 3327 - } - }, - { - "id": 2018, - "name": "_timeElapsed", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, + } + ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 45, - "character": 24 + "fileName": "src/common/lib/Task.ts", + "line": 70, + "character": 23 + }, + { + "fileName": "src/common/lib/Task.ts", + "line": 77, + "character": 23 + }, + { + "fileName": "src/common/lib/Task.ts", + "line": 84, + "character": 23 } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Test._timeElapsed", - "id": 3328 - } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 64 + ] }, { - "id": 2016, - "name": "_timeout", + "title": "Properties", "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ + "children": [ + 34 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 80, + 82, + 89, + 94, + 48, + 35, + 39, + 43 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 39, + "character": 25 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ { - "fileName": "lib/Test.ts", - "line": 41, - "character": 20 + "type": "typeParameter", + "name": "T" } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Test._timeout", - "id": 3326 - } - }, + ] + } + ] + }, + { + "id": 2, + "name": "CancellablePromise", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "typeParameter": [ { - "id": 2019, - "name": "_timer", + "id": 3, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 30, + "name": "Promise", "kind": 1024, "kindString": "Property", "flags": { - "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "lib/Test.ts", - "line": 49, - "character": 18 + "fileName": "node_modules/typescript/lib/lib.es2015.promise.d.ts", + "line": 152, + "character": 19 } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { "type": "reference", - "name": "Test._timer", - "id": 3329 + "name": "PromiseConstructor" } }, { - "id": 2020, - "name": "_usesRemote", + "id": 31, + "name": "[Symbol.toStringTag]", "kind": 1024, "kindString": "Property", "flags": { - "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "lib/Test.ts", - "line": 51, - "character": 23 + "fileName": "node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 169, + "character": 33 } ], "type": { "type": "intrinsic", - "name": "boolean" + "name": "string" }, - "defaultValue": "false", "inheritedFrom": { "type": "reference", - "name": "Test._usesRemote", - "id": 3330 + "name": "Promise.[Symbol.toStringTag]" } }, { - "id": 1986, - "name": "benchmark", - "kind": 1024, - "kindString": "Property", + "id": 4, + "name": "cancel", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The Benchmark.js test that actually performs benchmarking" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 32, - "character": 11 + "id": 5, + "name": "cancel", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Immediately cancels this promise if it has not already resolved. This\npromise and any descendants are synchronously stopped and any `finally`\ncallbacks added downstream from the canceled promise are invoked." + }, + "type": { + "type": "intrinsic", + "name": "void" + } } ], - "type": { - "type": "reference", - "name": "InternBenchmark", - "id": 2093 - } + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 7, + "character": 8 + } + ] }, { - "id": 2012, - "name": "error", - "kind": 1024, - "kindString": "Property", + "id": 6, + "name": "catch", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The error that caused this Test to fail" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Test.ts", - "line": 32, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 7, + "name": "catch", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Attaches a callback for only the rejection of the Promise.", + "returns": "A CancellablePromise for the completion of the callback.\n" + }, + "typeParameter": [ + { + "id": 8, + "name": "E", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 9, + "name": "onrejected", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The callback to execute when the Promise is rejected." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 10, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 11, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 12, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "E" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "E" + } + ] + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 15, + "character": 16 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { "type": "reference", - "name": "InternError", - "id": 23 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "E" + } + ] + } + ] }, - { - "type": "intrinsic", - "name": "undefined" + "overwrites": { + "type": "reference", + "name": "Promise.catch" } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.error", - "id": 3322 - } - }, - { - "id": 2009, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The name of this test" - }, + } + ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 20, - "character": 6 + "fileName": "src/common/lib/Task.ts", + "line": 14, + "character": 7 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.name", - "id": 3318 - }, - "implementationOf": { + "overwrites": { "type": "reference", - "name": "TestProperties.name", - "id": 3380 + "name": "Promise.catch" } }, { - "id": 2010, - "name": "parent", - "kind": 1024, - "kindString": "Property", + "id": 13, + "name": "finally", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "This test's parent Suite" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Test.ts", - "line": 23, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Suite", - "id": 3400 - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.parent", - "id": 3319 - }, - "implementationOf": { - "type": "reference", - "name": "TestProperties.parent", - "id": 3381 - } - }, - { - "id": 2011, - "name": "skipped", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "If this test was skipped, this will contain a message indicating why" - }, - "sources": [ - { - "fileName": "lib/Test.ts", - "line": 26, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" + "id": 14, + "name": "finally", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Allows for cleanup actions to be performed after resolution of this\npromise." }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.skipped", - "id": 3320 - }, - "implementationOf": { - "type": "reference", - "name": "TestProperties.skipped", - "id": 3382 - } - }, - { - "id": 2013, - "name": "suiteError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A suite lifecycle error that occurred after executing this Test" - }, - "sources": [ - { - "fileName": "lib/Test.ts", - "line": 35, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { + "parameters": [ + { + "id": 15, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 16, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 17, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 22, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { "type": "reference", - "name": "InternError", - "id": 23 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] }, - { - "type": "intrinsic", - "name": "undefined" + "overwrites": { + "type": "reference", + "name": "Promise.finally" } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.suiteError", - "id": 3323 - } - }, - { - "id": 1985, - "name": "test", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The test function managed by this test" - }, + } + ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 29, - "character": 6 + "fileName": "src/common/lib/Task.ts", + "line": 22, + "character": 9 } ], - "type": { - "type": "reference", - "name": "BenchmarkTestFunction", - "id": 2045 - }, "overwrites": { "type": "reference", - "name": "Test.test", - "id": 3321 - }, - "implementationOf": { - "type": "reference", - "name": "TestProperties.test", - "id": 3383 + "name": "Promise.finally" } }, { - "id": 2021, - "name": "executor", - "kind": 262144, - "kindString": "Accessor", + "id": 18, + "name": "then", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The executor running this test." - }, - "getSignature": [ + "signatures": [ { - "id": 2022, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 19, + "name": "then", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The executor running this test." + "shortText": "Attaches callbacks for the resolution and/or rejection of the Promise.", + "returns": "A CancellablePromise for the completion of which ever callback is executed.\n" }, + "typeParameter": [ + { + "id": 20, + "name": "V", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 21, + "name": "E", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 22, + "name": "onfulfilled", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The callback to execute when the Promise is resolved." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 23, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 24, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 25, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "V" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "V" + } + ] + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 31, + "character": 17 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 26, + "name": "onrejected", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The callback to execute when the Promise is rejected." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 27, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 28, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 29, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "E" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "E" + } + ] + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 32, + "character": 16 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], "type": { "type": "reference", - "name": "Executor", - "id": 3780 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "V" + }, + { + "type": "typeParameter", + "name": "E" + } + ] + } + ] }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Test.executor", - "id": 3337 + "name": "Promise.then" } } ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 74, - "character": 14 + "fileName": "src/common/lib/Task.ts", + "line": 30, + "character": 6 } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Test.executor", - "id": 3337 + "name": "Promise.then" } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 30, + 31 + ] }, { - "id": 2023, - "name": "hasPassed", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "True if the test function completed successfully" - }, - "getSignature": [ + "title": "Methods", + "kind": 2048, + "children": [ + 4, + 6, + 13, + 18 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 1, + "character": 35 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "Promise", + "typeArguments": [ { - "id": 2024, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "type": "typeParameter", + "name": "T" + } + ] + } + ], + "implementedBy": [ + { + "type": "reference", + "name": "Task", + "id": 32 + } + ] + }, + { + "id": 115, + "name": "DictionaryOfPromises", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An object mapping keys to Promises or resolved values" + }, + "typeParameter": [ + { + "id": 116, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 530, + "character": 32 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 117, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 118, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", "flags": {}, - "comment": { - "shortText": "True if the test function completed successfully" - }, + "parameters": [ + { + "id": 119, + "name": "_", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.hasPassed", - "id": 3339 + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ] } } ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 81, - "character": 15 + "fileName": "src/common/lib/Task.ts", + "line": 530, + "character": 43 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Test.hasPassed", - "id": 3339 - }, - "implementationOf": { - "type": "reference", - "name": "TestProperties.hasPassed", - "id": 3379 - } - }, - { - "id": 2025, - "name": "id", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, + ] + } + } + }, + { + "id": 120, + "name": "ListOfPromises", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A list of Promises or resolved values" + }, + "typeParameter": [ + { + "id": 121, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 537, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "Iterable", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ] + } + ] + } + }, + { + "id": 126, + "name": "isArrayLike", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 127, + "name": "isArrayLike", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "shortText": "The unique identifier of the test, assuming all combinations of suite +\ntest are unique." + "shortText": "A type guard for checking if something is ArrayLike" }, - "getSignature": [ + "parameters": [ { - "id": 2026, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 128, + "name": "value", + "kind": 32768, + "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The unique identifier of the test, assuming all combinations of suite +\ntest are unique." + "text": "The value to type guard against\n" }, "type": { "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.id", - "id": 3341 + "name": "any" } } ], - "sources": [ - { - "fileName": "lib/Test.ts", - "line": 89, - "character": 8 + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "ArrayLike", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] } - ], - "inheritedFrom": { - "type": "reference", - "name": "Test.id", - "id": 3341 } - }, + } + ], + "sources": [ { - "id": 2027, - "name": "isAsync", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, + "fileName": "src/common/lib/Task.ts", + "line": 568, + "character": 20 + } + ] + }, + { + "id": 129, + "name": "isIterable", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 130, + "name": "isIterable", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "shortText": "If true, this Test's test function is async" + "shortText": "A type guard for checking if something has an Iterable interface" }, - "getSignature": [ + "parameters": [ { - "id": 2028, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 131, + "name": "value", + "kind": 32768, + "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "If true, this Test's test function is async" + "text": "The value to type guard against\n" }, "type": { "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.isAsync", - "id": 3343 + "name": "any" } } ], - "sources": [ - { - "fileName": "lib/Test.ts", - "line": 103, - "character": 13 + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "Iterable", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] } - ], - "inheritedFrom": { - "type": "reference", - "name": "Test.isAsync", - "id": 3343 } - }, + } + ], + "sources": [ { - "id": 2029, - "name": "parentId", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, + "fileName": "src/common/lib/Task.ts", + "line": 577, + "character": 19 + } + ] + }, + { + "id": 122, + "name": "isPromiseLike", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 123, + "name": "isPromiseLike", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "shortText": "The unique identifier of the test's parent." + "shortText": "Returns true if a given value has a `then` method." }, - "getSignature": [ + "typeParameter": [ { - "id": 2030, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 124, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 125, + "name": "value", + "kind": 32768, + "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The unique identifier of the test's parent." + "text": "The value to check if is PromiseLike\n" }, "type": { "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.parentId", - "id": 3345 + "name": "any" } } ], - "sources": [ - { - "fileName": "lib/Test.ts", - "line": 110, - "character": 14 + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } - ], - "inheritedFrom": { - "type": "reference", - "name": "Test.parentId", - "id": 3345 } - }, + } + ], + "sources": [ { - "id": 2031, - "name": "remote", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, + "fileName": "src/common/lib/Task.ts", + "line": 544, + "character": 29 + } + ] + }, + { + "id": 111, + "name": "isTask", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 112, + "name": "isTask", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "shortText": "The WebDriver interface for driving a remote environment.", - "tags": [ - { - "tag": "see", - "text": "Suite#remote\n" - } - ] + "shortText": "A type guard that determines if `value` is a `Task`" }, - "getSignature": [ + "typeParameter": [ { - "id": 2032, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 113, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 114, + "name": "value", + "kind": 32768, + "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The WebDriver interface for driving a remote environment.", - "tags": [ - { - "tag": "see", - "text": "Suite#remote\n" - } - ] + "text": "The value to guard\n" }, "type": { - "type": "reference", - "name": "Remote", - "id": 2813 - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.remote", - "id": 3347 + "type": "intrinsic", + "name": "any" } } ], - "sources": [ - { - "fileName": "lib/Test.ts", - "line": 118, - "character": 12 + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "Task", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } - ], - "inheritedFrom": { - "type": "reference", - "name": "Test.remote", - "id": 3347 } - }, + } + ], + "sources": [ { - "id": 2033, - "name": "sessionId", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An identifier for the test session this Test is running in." - }, - "getSignature": [ + "fileName": "src/common/lib/Task.ts", + "line": 503, + "character": 22 + } + ] + } + ], + "groups": [ + { + "title": "Enumerations", + "kind": 4, + "children": [ + 106 + ] + }, + { + "title": "Classes", + "kind": 128, + "children": [ + 32 + ] + }, + { + "title": "Interfaces", + "kind": 256, + "children": [ + 2 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 115, + 120 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 126, + 129, + 122, + 111 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/Task.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 242, + "name": "\"common/lib/global\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/common/lib/global.ts", + "children": [ + { + "id": 243, + "name": "globalObject", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "src/common/lib/global.ts", + "line": 1, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " (function(): any {\n if (typeof window !== 'undefined') {\n // window is defined in browsers\n return window;\n }\n if (typeof global !== 'undefined') {\n // global spec defines a reference to the global object called 'global'\n // https://github.com/tc39/proposal-global\n // `global` is also defined in NodeJS\n return global;\n }\n if (typeof self !== 'undefined') {\n // self is defined in WebWorkers\n return self;\n }\n})()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 243 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/global.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 244, + "name": "\"common/lib/request\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/common/lib/request.ts", + "children": [ + { + "id": 291, + "name": "HeadersClass", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 292, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "signatures": [ { - "id": 2034, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 293, + "name": "new HeadersClass", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, - "comment": { - "shortText": "An identifier for the test session this Test is running in." - }, + "parameters": [ + { + "id": 294, + "name": "headers", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 295, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 296, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 297, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 146, + "character": 22 + } + ] + } + } + } + ], "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { "type": "reference", - "name": "Test.sessionId", - "id": 3349 + "name": "HeadersClass", + "id": 291 } } ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 126, - "character": 15 + "fileName": "src/common/lib/request.ts", + "line": 144, + "character": 42 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Test.sessionId", - "id": 3349 - } + ] }, { - "id": 1990, - "name": "timeElapsed", + "id": 298, + "name": "all", "kind": 262144, "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The number of milliseconds the test function took to complete." - }, + "flags": {}, "getSignature": [ { - "id": 1991, + "id": 299, "name": "__get", "kind": 524288, "kindString": "Get signature", "flags": {}, - "comment": { - "shortText": "The number of milliseconds the test function took to complete." - }, "type": { - "type": "intrinsic", - "name": "number" - }, - "overwrites": { - "type": "reference", - "name": "Test.timeElapsed", - "id": 3351 + "type": "reflection", + "declaration": { + "id": 300, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 301, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 302, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } } } ], - "setSignature": [ + "sources": [ { - "id": 1992, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "fileName": "src/common/lib/request.ts", + "line": 150, + "character": 9 + } + ] + }, + { + "id": 303, + "name": "get", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "signatures": [ + { + "id": 304, + "name": "get", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "The number of milliseconds the test function took to complete." - }, "parameters": [ { - "id": 1993, - "name": "_value", + "id": 305, + "name": "key", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", - "name": "number" + "name": "string" } } ], "type": { "type": "intrinsic", - "name": "void" + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 161, + "character": 5 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 292 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 298 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 303 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 143, + "character": 18 + } + ] + }, + { + "id": 306, + "name": "ResponseClass", + "kind": 128, + "kindString": "Class", + "flags": {}, + "typeParameter": [ + { + "id": 307, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 326, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 327, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ], + "children": [ + { + "id": 308, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "signatures": [ + { + "id": 309, + "name": "new ResponseClass", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 310, + "name": "response", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "AxiosResponse", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "ResponseClass", + "id": 306 }, "overwrites": { "type": "reference", - "name": "Test.timeElapsed", - "id": 3351 + "name": "Evented.__constructor", + "id": 194 } } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 100, - "character": 17 - }, - { - "fileName": "lib/BenchmarkTest.ts", - "line": 107, - "character": 17 + "fileName": "src/common/lib/request.ts", + "line": 170, + "character": 64 } ], "overwrites": { "type": "reference", - "name": "Test.timeElapsed", - "id": 3351 + "name": "Evented.__constructor", + "id": 194 } }, { - "id": 2035, - "name": "timeout", - "kind": 262144, - "kindString": "Accessor", + "id": 328, + "name": "__typeMap__", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isProtected": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 20, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "M", + "id": 189 + }, + "inheritedFrom": { + "type": "reference", + "name": "Evented.__typeMap__", + "id": 192 + } + }, + { + "id": 329, + "name": "listenersMap", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true }, "comment": { - "shortText": "The number of milliseconds this test can run before it will be canceled." + "shortText": "map of listeners keyed by event type" + }, + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 24, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "Map", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "ProgressEvent" + } + } + ] + }, + { + "type": "array", + "elementType": { + "type": "reference", + "name": "EventedCallback", + "id": 223, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "O", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ] + } + } + ] + }, + "defaultValue": " new Map()", + "inheritedFrom": { + "type": "reference", + "name": "Evented.listenersMap", + "id": 193 + } + }, + { + "id": 311, + "name": "headers", + "kind": 262144, + "kindString": "Accessor", + "flags": {}, + "comment": { + "shortText": "Header keys will always be lowercase" }, "getSignature": [ { - "id": 2036, + "id": 312, "name": "__get", "kind": 524288, "kindString": "Get signature", "flags": {}, "comment": { - "shortText": "The number of milliseconds this test can run before it will be canceled." + "shortText": "Header keys will always be lowercase" }, "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { "type": "reference", - "name": "Test.timeout", - "id": 3353 + "name": "Headers", + "id": 271 } } ], - "setSignature": [ + "sources": [ { - "id": 2037, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "fileName": "src/common/lib/request.ts", + "line": 179, + "character": 13 + } + ], + "implementationOf": { + "type": "reference", + "name": "Response.headers", + "id": 280 + } + }, + { + "id": 313, + "name": "ok", + "kind": 262144, + "kindString": "Accessor", + "flags": {}, + "getSignature": [ + { + "id": 314, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, - "comment": { - "shortText": "The number of milliseconds this test can run before it will be canceled." - }, - "parameters": [ - { - "id": 2038, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], "type": { "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.timeout", - "id": 3353 + "name": "boolean" } } ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 140, - "character": 13 - }, - { - "fileName": "lib/Test.ts", - "line": 150, - "character": 13 + "fileName": "src/common/lib/request.ts", + "line": 183, + "character": 8 } ], - "inheritedFrom": { - "type": "reference", - "name": "Test.timeout", - "id": 3353 - }, "implementationOf": { "type": "reference", - "name": "TestProperties.timeout", - "id": 3384 + "name": "Response.ok", + "id": 281 } }, { - "id": 1994, - "name": "async", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 315, + "name": "status", + "kind": 262144, + "kindString": "Accessor", + "flags": {}, + "getSignature": [ { - "id": 1995, - "name": "async", - "kind": 4096, - "kindString": "Call signature", + "id": 316, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, - "parameters": [ - { - "id": 1996, - "name": "_timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 1997, - "name": "_numCallsUntilResolution", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], "type": { - "type": "reference", - "name": "Deferred", - "id": 3, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "overwrites": { - "type": "reference", - "name": "Test.async", - "id": 3357 + "type": "intrinsic", + "name": "number" } } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 111, - "character": 7 + "fileName": "src/common/lib/request.ts", + "line": 188, + "character": 12 } ], - "overwrites": { + "implementationOf": { "type": "reference", - "name": "Test.async", - "id": 3357 + "name": "Response.status", + "id": 282 } }, { - "id": 2039, - "name": "restartTimeout", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 317, + "name": "statusText", + "kind": 262144, + "kindString": "Accessor", + "flags": {}, + "getSignature": [ { - "id": 2040, - "name": "restartTimeout", - "kind": 4096, - "kindString": "Call signature", + "id": 318, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, - "comment": { - "shortText": "During an asynchronous test run, restarts the timeout timer." - }, - "parameters": [ - { - "id": 2041, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], "type": { "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "Test.restartTimeout", - "id": 3361 + "name": "string" } } ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 213, + "fileName": "src/common/lib/request.ts", + "line": 192, "character": 16 } ], - "inheritedFrom": { + "implementationOf": { "type": "reference", - "name": "Test.restartTimeout", - "id": 3361 + "name": "Response.statusText", + "id": 283 } }, { - "id": 1998, - "name": "run", + "id": 319, + "name": "arrayBuffer", "kind": 2048, "kindString": "Method", - "flags": { - "isExported": true - }, + "flags": {}, "signatures": [ { - "id": 1999, - "name": "run", + "id": 320, + "name": "arrayBuffer", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", "name": "CancellablePromise", + "id": 2, "typeArguments": [ { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "ArrayBuffer" } ] }, - "overwrites": { + "implementationOf": { "type": "reference", - "name": "Test.run", - "id": 3364 + "name": "Response.arrayBuffer", + "id": 285 } } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 118, - "character": 5 + "fileName": "src/common/lib/request.ts", + "line": 196, + "character": 13 } ], - "overwrites": { + "implementationOf": { "type": "reference", - "name": "Test.run", - "id": 3364 + "name": "Response.arrayBuffer", + "id": 284 } }, { - "id": 2042, - "name": "skip", + "id": 347, + "name": "destroy", "kind": 2048, "kindString": "Method", - "flags": { - "isExported": true - }, + "flags": {}, "signatures": [ { - "id": 2043, - "name": "skip", + "id": 348, + "name": "destroy", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Skips this test.", - "text": "Calling this function will cause a test to halt immediately. If a message\nwas provided, a reporter may report the test as skipped. Skipped tests\nare not treated as passing or failing.\n" + "shortText": "Destrpys all handers registered for the instance", + "text": "Returns a promise that resolves once all handles have been destroyed\n" }, - "parameters": [ - { - "id": 2044, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "If provided, will be stored in this test's `skipped`\nproperty.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"skipped\"" - } - ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Test.skip", - "id": 3366 + "name": "Evented.destroy", + "id": 213 } } ], "sources": [ { - "fileName": "lib/Test.ts", - "line": 398, - "character": 6 + "fileName": "src/common/lib/Evented.ts", + "line": 113, + "character": 9 } ], "inheritedFrom": { "type": "reference", - "name": "Test.skip", - "id": 3366 + "name": "Evented.destroy", + "id": 213 } }, { - "id": 2000, - "name": "toJSON", + "id": 330, + "name": "emit", "kind": 2048, "kindString": "Method", - "flags": { - "isExported": true - }, + "flags": {}, "signatures": [ { - "id": 2001, - "name": "toJSON", + "id": 331, + "name": "emit", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Emits the event object for the specified type" + }, + "typeParameter": [ + { + "id": 332, + "name": "K", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "ProgressEvent" + } + } + } + ], + "parameters": [ + { + "id": 333, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "the event to emit\n" + }, + "type": { + "type": "indexedAccess", + "objectType": { + "type": "reference", + "name": "ProgressEvent" + }, + "indexType": { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "ProgressEvent" + } + } + } + } + } + ], "type": { - "type": "reflection", - "declaration": { - "id": 2002, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "Evented.emit", + "id": 196 + } + }, + { + "id": 334, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 335, + "name": "event", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "indexSignature": [ - { - "id": 2003, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ + "type": { + "type": "typeParameter", + "name": "O", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ { - "id": 2004, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "type": "typeParameter", + "name": "T" } - ], - "type": { - "type": "intrinsic", - "name": "any" - } + ] } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "void" }, - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Test.toJSON", - "id": 3369 + "name": "Evented.emit", + "id": 196 } } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 166, - "character": 8 + "fileName": "src/common/lib/Evented.ts", + "line": 38, + "character": 6 + }, + { + "fileName": "src/common/lib/Evented.ts", + "line": 39, + "character": 6 + }, + { + "fileName": "src/common/lib/Evented.ts", + "line": 40, + "character": 6 } ], - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Test.toJSON", - "id": 3369 + "name": "Evented.emit", + "id": 196 } }, { - "id": 2005, - "name": "async", + "id": 321, + "name": "json", "kind": 2048, "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, + "flags": {}, "signatures": [ { - "id": 2006, - "name": "async", + "id": 322, + "name": "json", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "typeParameter": [ + { + "id": 323, + "name": "R", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "unknown", + "name": "R" + } + ] + }, + "implementationOf": { + "type": "reference", + "name": "Response.json", + "id": 287 + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 215, + "character": 6 + } + ], + "implementationOf": { + "type": "reference", + "name": "Response.json", + "id": 286 + } + }, + { + "id": 336, + "name": "on", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "signatures": [ + { + "id": 337, + "name": "on", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Catch all handler for various call signatures. The signatures are defined in\n`BaseEventedEvents`. You can add your own event type -> handler types by extending\n`BaseEventedEvents`. See example for details." + }, + "typeParameter": [ + { + "id": 338, + "name": "K", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "ProgressEvent" + } + } + } + ], "parameters": [ { - "id": 2007, - "name": "testFunction", + "id": 339, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "ProgressEvent" + } + } + } + }, + { + "id": 340, + "name": "listener", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "BenchmarkDeferredTestFunction", - "id": 2052 + "name": "EventedCallbackOrArray", + "id": 229, + "typeArguments": [ + { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "ProgressEvent" + } + } + }, + { + "type": "indexedAccess", + "objectType": { + "type": "reference", + "name": "ProgressEvent" + }, + "indexType": { + "type": "typeParameter", + "name": "K", + "constraint": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "ProgressEvent" + } + } + } + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "Handle", + "id": 133 + }, + "inheritedFrom": { + "type": "reference", + "name": "Evented.on", + "id": 202 + } + }, + { + "id": 341, + "name": "on", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 342, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" } }, { - "id": 2008, - "name": "numCallsUntilResolution", + "id": 343, + "name": "listener", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, + "type": { + "type": "reference", + "name": "EventedCallbackOrArray", + "id": 229, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "O", + "constraint": { + "type": "reference", + "name": "EventObject", + "id": 219, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "Handle", + "id": 133 + }, + "inheritedFrom": { + "type": "reference", + "name": "Evented.on", + "id": 202 + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/Evented.ts", + "line": 66, + "character": 4 + }, + { + "fileName": "src/common/lib/Evented.ts", + "line": 70, + "character": 4 + }, + { + "fileName": "src/common/lib/Evented.ts", + "line": 71, + "character": 4 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Evented.on", + "id": 202 + } + }, + { + "id": 344, + "name": "own", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "signatures": [ + { + "id": 345, + "name": "own", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Register handles for the instance that will be destroyed when\n`this.destroy` is called", + "text": "Returns a handle for the handle, removes the handle for the instance and\ncalls destroy\n" + }, + "parameters": [ + { + "id": 346, + "name": "handles", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "type": { "type": "union", "types": [ { - "type": "intrinsic", - "name": "undefined" + "type": "reference", + "name": "Handle", + "id": 133 }, { - "type": "intrinsic", - "name": "number" + "type": "array", + "elementType": { + "type": "reference", + "name": "Handle", + "id": 133 + } } ] } @@ -4095,18 +5166,72 @@ ], "type": { "type": "reference", - "name": "BenchmarkTestFunction", - "id": 2045 + "name": "Handle", + "id": 133 + }, + "inheritedFrom": { + "type": "reference", + "name": "Evented.own", + "id": 210 } } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 179, - "character": 14 + "fileName": "src/common/lib/Evented.ts", + "line": 94, + "character": 5 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Evented.own", + "id": 210 + } + }, + { + "id": 324, + "name": "text", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "signatures": [ + { + "id": 325, + "name": "text", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "implementationOf": { + "type": "reference", + "name": "Response.text", + "id": 290 + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 219, + "character": 6 + } + ], + "implementationOf": { + "type": "reference", + "name": "Response.text", + "id": 289 + } } ], "groups": [ @@ -4114,265 +5239,278 @@ "title": "Constructors", "kind": 512, "children": [ - 1987 + 308 ] }, { "title": "Properties", "kind": 1024, "children": [ - 2014, - 2015, - 2017, - 2018, - 2016, - 2019, - 2020, - 1986, - 2012, - 2009, - 2010, - 2011, - 2013, - 1985 + 328, + 329 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 2021, - 2023, - 2025, - 2027, - 2029, - 2031, - 2033, - 1990, - 2035 + 311, + 313, + 315, + 317 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1994, - 2039, - 1998, - 2042, - 2000, - 2005 + 319, + 347, + 330, + 321, + 336, + 344, + 324 ] } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 27, - "character": 34 + "fileName": "src/common/lib/request.ts", + "line": 166, + "character": 19 } ], "extendedTypes": [ { "type": "reference", - "name": "Test", - "id": 3317 + "name": "Evented", + "id": 188, + "typeArguments": [ + { + "type": "reference", + "name": "ProgressEvent", + "id": 266 + } + ] } ], "implementedTypes": [ { "type": "reference", - "name": "TestProperties", - "id": 3378 + "name": "Response", + "id": 279 } ] }, { - "id": 2052, - "name": "BenchmarkDeferredTestFunction", + "id": 271, + "name": "Headers", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 2053, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2054, - "name": "this", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "BenchmarkTest", - "id": 1984 - } - }, + "id": 272, + "name": "all", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 2055, - "name": "deferred", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Deferred", - "id": 3, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - } + "fileName": "src/common/lib/request.ts", + "line": 50, + "character": 5 } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { + "type": "reflection", + "declaration": { + "id": 273, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 274, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 275, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { "type": "intrinsic", - "name": "any" + "name": "string" } - ] - } - ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 50, + "character": 6 + } + ] + } } }, { - "id": 2057, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2058, - "name": "this", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, + "id": 276, + "name": "get", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 277, + "name": "get", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 278, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "reference", - "name": "BenchmarkTest", - "id": 1984 + "type": "intrinsic", + "name": "string" } } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - ] - } + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 51, + "character": 5 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 272 + ] }, { - "id": 2059, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", + "title": "Methods", + "kind": 2048, + "children": [ + 276 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 49, + "character": 24 + } + ] + }, + { + "id": 266, + "name": "ProgressEvent", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 269, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 2060, - "name": "this", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Test", - "id": 3317 - } - }, - { - "id": 2061, - "name": "test", + "id": 270, + "name": "index", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "Test", - "id": 3317 + "type": "intrinsic", + "name": "string" } } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "reference", - "name": "PromiseLike", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - ] + "type": "intrinsic", + "name": "any" } } ], "children": [ { - "id": 2056, - "name": "options", + "id": 268, + "name": "bytes", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 199, - "character": 9 + "fileName": "src/common/lib/request.ts", + "line": 45, + "character": 7 } ], "type": { - "type": "reference", - "name": "BenchmarkOptions", - "id": 2071 + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 267, + "name": "total", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "overwrites": { - "type": "reference", - "name": "BenchmarkTestFunction.options", - "id": 2048 + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 44, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "number" } } ], @@ -4381,28 +5519,22 @@ "title": "Properties", "kind": 1024, "children": [ - 2056 + 268, + 267 ] } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 197, - "character": 46 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "BenchmarkTestFunction", - "id": 2045 + "fileName": "src/common/lib/request.ts", + "line": 43, + "character": 30 } ] }, { - "id": 2071, - "name": "BenchmarkOptions", + "id": 245, + "name": "RequestOptions", "kind": 256, "kindString": "Interface", "flags": { @@ -4410,8 +5542,8 @@ }, "children": [ { - "id": 2074, - "name": "async", + "id": 246, + "name": "data", "kind": 1024, "kindString": "Property", "flags": { @@ -4420,36 +5552,19 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 65, - "character": 13 + "fileName": "src/common/lib/request.ts", + "line": 30, + "character": 6 } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.async" + "type": "intrinsic", + "name": "any" } }, { - "id": 2075, - "name": "defer", + "id": 247, + "name": "followRedirects", "kind": 1024, "kindString": "Property", "flags": { @@ -4458,9 +5573,9 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 66, - "character": 13 + "fileName": "src/common/lib/request.ts", + "line": 31, + "character": 17 } ], "type": { @@ -4479,15 +5594,11 @@ "name": "true" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.defer" } }, { - "id": 2076, - "name": "delay", + "id": 248, + "name": "handleAs", "kind": 1024, "kindString": "Property", "flags": { @@ -4496,32 +5607,28 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 67, - "character": 13 + "fileName": "src/common/lib/request.ts", + "line": 32, + "character": 10 } ], "type": { "type": "union", "types": [ { - "type": "intrinsic", - "name": "undefined" + "type": "stringLiteral", + "value": "text" }, { - "type": "intrinsic", - "name": "number" + "type": "stringLiteral", + "value": "json" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.delay" } }, { - "id": 2091, - "name": "fn", + "id": 249, + "name": "headers", "kind": 1024, "kindString": "Property", "flags": { @@ -4530,32 +5637,69 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 82, - "character": 10 + "fileName": "src/common/lib/request.ts", + "line": 33, + "character": 9 } ], "type": { "type": "union", "types": [ { - "type": "reference", - "name": "Function" + "type": "intrinsic", + "name": "undefined" }, { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 250, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 251, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 252, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ] + } } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.fn" } }, { - "id": 2077, - "name": "id", + "id": 253, + "name": "method", "kind": 1024, "kindString": "Property", "flags": { @@ -4564,32 +5708,20 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 68, - "character": 10 + "fileName": "src/common/lib/request.ts", + "line": 34, + "character": 8 } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { "type": "reference", - "name": "Options.id" + "name": "RequestMethod", + "id": 349 } }, { - "id": 2078, - "name": "initCount", + "id": 262, + "name": "onDownloadProgress", "kind": 1024, "kindString": "Property", "flags": { @@ -4598,9 +5730,9 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 69, - "character": 17 + "fileName": "src/common/lib/request.ts", + "line": 40, + "character": 20 } ], "type": { @@ -4611,19 +5743,47 @@ "name": "undefined" }, { - "type": "intrinsic", - "name": "number" + "type": "reflection", + "declaration": { + "id": 263, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 264, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 265, + "name": "progressEvent", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.initCount" } }, { - "id": 2079, - "name": "maxTime", + "id": 254, + "name": "password", "kind": 1024, "kindString": "Property", "flags": { @@ -4632,9 +5792,9 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 70, - "character": 15 + "fileName": "src/common/lib/request.ts", + "line": 35, + "character": 10 } ], "type": { @@ -4646,18 +5806,14 @@ }, { "type": "intrinsic", - "name": "number" + "name": "string" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.maxTime" } }, { - "id": 2080, - "name": "minSamples", + "id": 259, + "name": "proxy", "kind": 1024, "kindString": "Property", "flags": { @@ -4666,9 +5822,9 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 71, - "character": 18 + "fileName": "src/common/lib/request.ts", + "line": 37, + "character": 7 } ], "type": { @@ -4680,18 +5836,14 @@ }, { "type": "intrinsic", - "name": "number" + "name": "string" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.minSamples" } }, { - "id": 2081, - "name": "minTime", + "id": 255, + "name": "query", "kind": 1024, "kindString": "Property", "flags": { @@ -4700,9 +5852,9 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 72, - "character": 15 + "fileName": "src/common/lib/request.ts", + "line": 36, + "character": 7 } ], "type": { @@ -4710,22 +5862,57 @@ "types": [ { "type": "intrinsic", - "name": "undefined" + "name": "string" }, { - "type": "intrinsic", - "name": "number" + "type": "reflection", + "declaration": { + "id": 256, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 257, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 258, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 36, + "character": 18 + } + ] + } } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.minTime" } }, { - "id": 2082, - "name": "name", + "id": 260, + "name": "user", "kind": 1024, "kindString": "Property", "flags": { @@ -4734,9 +5921,9 @@ }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 73, - "character": 12 + "fileName": "src/common/lib/request.ts", + "line": 38, + "character": 6 } ], "type": { @@ -4751,15 +5938,11 @@ "name": "string" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.name" } }, { - "id": 2073, - "name": "numCallsUntilResolution", + "id": 261, + "name": "username", "kind": 1024, "kindString": "Property", "flags": { @@ -4768,9 +5951,9 @@ }, "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 216, - "character": 25 + "fileName": "src/common/lib/request.ts", + "line": 39, + "character": 10 } ], "type": { @@ -4782,296 +5965,245 @@ }, { "type": "intrinsic", - "name": "number" + "name": "string" } ] } - }, + } + ], + "groups": [ { - "id": 2083, - "name": "onAbort", + "title": "Properties", + "kind": 1024, + "children": [ + 246, + 247, + 248, + 249, + 253, + 262, + 254, + 259, + 255, + 260, + 261 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 29, + "character": 31 + } + ] + }, + { + "id": 279, + "name": "Response", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 280, + "name": "headers", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 74, - "character": 15 + "fileName": "src/common/lib/request.ts", + "line": 55, + "character": 9 } ], "type": { "type": "reference", - "name": "Function" - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.onAbort" + "name": "Headers", + "id": 271 } }, { - "id": 2084, - "name": "onComplete", + "id": 281, + "name": "ok", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 75, - "character": 18 + "fileName": "src/common/lib/request.ts", + "line": 56, + "character": 4 } ], "type": { - "type": "reference", - "name": "Function" - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.onComplete" + "type": "intrinsic", + "name": "boolean" } }, { - "id": 2085, - "name": "onCycle", + "id": 282, + "name": "status", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 76, - "character": 15 + "fileName": "src/common/lib/request.ts", + "line": 57, + "character": 8 } ], "type": { - "type": "reference", - "name": "Function" - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.onCycle" + "type": "intrinsic", + "name": "number" } }, { - "id": 2086, - "name": "onError", + "id": 283, + "name": "statusText", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 77, - "character": 15 + "fileName": "src/common/lib/request.ts", + "line": 58, + "character": 12 } ], "type": { - "type": "reference", - "name": "Function" - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.onError" + "type": "intrinsic", + "name": "string" } }, { - "id": 2087, - "name": "onReset", - "kind": 1024, - "kindString": "Property", + "id": 284, + "name": "arrayBuffer", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 78, - "character": 15 + "id": 285, + "name": "arrayBuffer", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reference", + "name": "ArrayBuffer" + } + ] + } } ], - "type": { - "type": "reference", - "name": "Function" - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.onReset" - } - }, - { - "id": 2088, - "name": "onStart", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 79, - "character": 15 + "fileName": "src/common/lib/request.ts", + "line": 59, + "character": 13 } - ], - "type": { - "type": "reference", - "name": "Function" - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.onStart" - } + ] }, { - "id": 2092, - "name": "queued", - "kind": 1024, - "kindString": "Property", + "id": 286, + "name": "json", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 83, - "character": 14 + "id": 287, + "name": "json", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "typeParameter": [ + { + "id": 288, + "name": "R", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "typeParameter", + "name": "R" + } + ] + } } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.queued" - } - }, - { - "id": 2089, - "name": "setup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 80, - "character": 13 + "fileName": "src/common/lib/request.ts", + "line": 60, + "character": 6 } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.setup" - } + ] }, { - "id": 2072, - "name": "skip", - "kind": 1024, - "kindString": "Property", + "id": 289, + "name": "text", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 215, - "character": 6 + "id": 290, + "name": "text", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 2090, - "name": "teardown", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 81, - "character": 16 + "fileName": "src/common/lib/request.ts", + "line": 61, + "character": 6 } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Options.teardown" - } + ] } ], "groups": [ @@ -5079,2521 +6211,2915 @@ "title": "Properties", "kind": 1024, "children": [ - 2074, - 2075, - 2076, - 2091, - 2077, - 2078, - 2079, - 2080, - 2081, - 2082, - 2073, - 2083, - 2084, - 2085, - 2086, - 2087, - 2088, - 2092, - 2089, - 2072, - 2090 + 280, + 281, + 282, + 283 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 284, + 286, + 289 ] } ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 214, - "character": 33 + "fileName": "src/common/lib/request.ts", + "line": 54, + "character": 25 } ], - "extendedTypes": [ + "implementedBy": [ { "type": "reference", - "name": "Options" + "name": "ResponseClass", + "id": 306 } ] }, { - "id": 2045, - "name": "BenchmarkTestFunction", - "kind": 256, - "kindString": "Interface", + "id": 349, + "name": "RequestMethod", + "kind": 4194304, + "kindString": "Type alias", "flags": { "isExported": true }, + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 15, + "character": 25 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "delete" + }, + { + "type": "stringLiteral", + "value": "DELETE" + }, + { + "type": "stringLiteral", + "value": "get" + }, + { + "type": "stringLiteral", + "value": "GET" + }, + { + "type": "stringLiteral", + "value": "head" + }, + { + "type": "stringLiteral", + "value": "HEAD" + }, + { + "type": "stringLiteral", + "value": "options" + }, + { + "type": "stringLiteral", + "value": "OPTIONS" + }, + { + "type": "stringLiteral", + "value": "post" + }, + { + "type": "stringLiteral", + "value": "POST" + }, + { + "type": "stringLiteral", + "value": "put" + }, + { + "type": "stringLiteral", + "value": "PUT" + } + ] + } + }, + { + "id": 363, + "name": "getArrayBufferFromBlob", + "kind": 64, + "kindString": "Function", + "flags": {}, "signatures": [ { - "id": 2046, - "name": "__call", + "id": 364, + "name": "getArrayBufferFromBlob", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 2047, - "name": "this", + "id": 365, + "name": "blob", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "BenchmarkTest", - "id": 1984 + "name": "Blob" } } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "void" - }, + "type": "reference", + "name": "Promise", + "typeArguments": [ { "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] + "name": "ArrayBuffer" } ] } - }, + } + ], + "sources": [ { - "id": 2049, - "name": "__call", + "fileName": "src/common/lib/request.ts", + "line": 266, + "character": 31 + } + ] + }, + { + "id": 366, + "name": "getArrayBufferFromText", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 367, + "name": "getArrayBufferFromText", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 2050, - "name": "this", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Test", - "id": 3317 - } - }, - { - "id": 2051, - "name": "test", + "id": 368, + "name": "text", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "Test", - "id": 3317 + "type": "intrinsic", + "name": "string" } } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "void" - }, + "type": "reference", + "name": "Promise", + "typeArguments": [ { "type": "reference", - "name": "PromiseLike", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] + "name": "ArrayBuffer" } ] } } ], - "children": [ + "sources": [ { - "id": 2048, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + "fileName": "src/common/lib/request.ts", + "line": 273, + "character": 31 + } + ] + }, + { + "id": 356, + "name": "getFileReaderPromise", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 357, + "name": "getFileReaderPromise", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "typeParameter": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 194, - "character": 9 + "id": 358, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "ArrayBuffer" + } + ] + } + } + ], + "parameters": [ + { + "id": 359, + "name": "reader", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "FileReader" + } } ], "type": { "type": "reference", - "name": "BenchmarkOptions", - "id": 2071 + "name": "Promise", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "ArrayBuffer" + } + ] + } + } + ] } } ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 2048 - ] - } - ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 192, - "character": 38 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "TestFunction", - "id": 3374 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "BenchmarkDeferredTestFunction", - "id": 2052 + "fileName": "src/common/lib/request.ts", + "line": 246, + "character": 29 } ] }, { - "id": 2062, - "name": "BenchmarkTestProperties", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ + "id": 369, + "name": "getTextFromArrayBuffer", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ { - "id": 2066, - "name": "hasPassed", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "id": 370, + "name": "getTextFromArrayBuffer", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "fileName": "lib/Test.ts", - "line": 464, - "character": 11 + "id": 371, + "name": "buffer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "ArrayBuffer" + } } ], "type": { "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "TestProperties.hasPassed", - "id": 3379 + "name": "string" } - }, - { - "id": 2067, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 277, + "character": 31 + } + ] + }, + { + "id": 360, + "name": "getTextFromBlob", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 361, + "name": "getTextFromBlob", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "fileName": "lib/Test.ts", - "line": 465, - "character": 6 + "id": 362, + "name": "blob", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Blob" + } } ], "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { "type": "reference", - "name": "TestProperties.name", - "id": 3380 + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] } - }, + } + ], + "sources": [ { - "id": 2065, - "name": "numCallsUntilResolution", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/common/lib/request.ts", + "line": 259, + "character": 24 + } + ] + }, + { + "id": 372, + "name": "isArrayBuffer", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 373, + "name": "isArrayBuffer", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 205, - "character": 25 + "id": 374, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } } ], "type": { - "type": "intrinsic", - "name": "number" + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "ArrayBuffer" + } } - }, + } + ], + "sources": [ { - "id": 2068, - "name": "parent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/common/lib/request.ts", + "line": 288, + "character": 22 + } + ] + }, + { + "id": 375, + "name": "isBlob", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 376, + "name": "isBlob", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "fileName": "lib/Test.ts", - "line": 466, - "character": 8 + "id": 377, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } } ], "type": { - "type": "reference", - "name": "Suite", - "id": 3400 - }, - "inheritedFrom": { - "type": "reference", - "name": "TestProperties.parent", - "id": 3381 + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "Blob" + } } - }, + } + ], + "sources": [ { - "id": 2064, - "name": "skip", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/common/lib/request.ts", + "line": 294, + "character": 15 + } + ] + }, + { + "id": 378, + "name": "isBuffer", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 379, + "name": "isBuffer", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 204, - "character": 6 + "id": 380, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } } ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "Buffer" + } + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 301, + "character": 17 + } + ] + }, + { + "id": 354, + "name": "noValidation", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 355, + "name": "noValidation", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "type": { "type": "intrinsic", - "name": "string" + "name": "boolean" } - }, + } + ], + "sources": [ { - "id": 2069, - "name": "skipped", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/common/lib/request.ts", + "line": 242, + "character": 21 + } + ] + }, + { + "id": 350, + "name": "request", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 351, + "name": "request", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "fileName": "lib/Test.ts", - "line": 467, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 352, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { "type": "intrinsic", "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "TestProperties.skipped", - "id": 3382 - } - }, - { - "id": 2063, - "name": "test", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + }, { - "fileName": "lib/BenchmarkTest.ts", - "line": 203, - "character": 6 + "id": 353, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "RequestOptions", + "id": 245 + }, + "defaultValue": " {}" } ], "type": { "type": "reference", - "name": "BenchmarkTestFunction", - "id": 2045 - }, - "overwrites": { - "type": "reference", - "name": "TestProperties.test", - "id": 3383 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reference", + "name": "Response", + "id": 279 + } + ] } - }, + } + ], + "sources": [ { - "id": 2070, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/common/lib/request.ts", + "line": 64, + "character": 31 + } + ] + }, + { + "id": 381, + "name": "serializeParams", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 382, + "name": "serializeParams", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "fileName": "lib/Test.ts", - "line": 469, - "character": 9 + "id": 383, + "name": "params", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 384, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 385, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 386, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 305, + "character": 32 + } + ] + } + } } ], "type": { "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "name": "TestProperties.timeout", - "id": 3384 + "name": "string" } } ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 2066, - 2067, - 2065, - 2068, - 2064, - 2069, - 2063, - 2070 - ] - } - ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 202, - "character": 40 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "TestProperties", - "id": 3378 + "fileName": "src/common/lib/request.ts", + "line": 305, + "character": 24 } ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 291, + 306 + ] }, { - "id": 2093, - "name": "InternBenchmark", + "title": "Interfaces", + "kind": 256, + "children": [ + 271, + 266, + 245, + 279 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 349 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 363, + 366, + 356, + 369, + 360, + 372, + 375, + 378, + 354, + 350, + 381 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/request.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 132, + "name": "\"common/lib/util\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/common/lib/util.ts", + "children": [ + { + "id": 133, + "name": "Handle", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, + "comment": { + "shortText": "A consistent API to manage how callers can cleanup when doing a function." + }, "children": [ { - "id": 2309, - "name": "Deferred", - "kind": 128, - "kindString": "Class", + "id": 134, + "name": "destroy", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "children": [ + "signatures": [ { - "id": 2310, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true + "id": 135, + "name": "destroy", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Perform the destruction/cleanup logic associated with this handle" }, - "signatures": [ - { - "id": 2311, - "name": "new Deferred", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 2312, - "name": "clone", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Benchmark" - } - } - ], - "type": { - "type": "reference", - "name": "Deferred", - "id": 2309 - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 130, - "character": 27 - } - ] - }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ { - "id": 2313, - "name": "benchmark", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 133, - "character": 17 - } - ], + "fileName": "src/common/lib/util.ts", + "line": 8, + "character": 9 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 134 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 4, + "character": 23 + } + ] + }, + { + "id": 178, + "name": "_deepMixin", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 179, + "name": "_deepMixin", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "typeParameter": [ + { + "id": 180, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { "type": "reference", - "name": "Benchmark" + "name": "__type" } }, { - "id": 2314, - "name": "cycles", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 134, - "character": 14 - } - ], + "id": 181, + "name": "U", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "__type" } - }, + } + ], + "parameters": [ { - "id": 2315, - "name": "elapsed", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 135, - "character": 15 - } - ], + "id": 182, + "name": "kwArgs", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "type": { - "type": "intrinsic", - "name": "number" + "type": "reflection", + "declaration": { + "id": 183, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 186, + "name": "copied", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 117, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 184, + "name": "sources", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 115, + "character": 9 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "unknown", + "name": "U" + } + ] + } + } + }, + { + "id": 185, + "name": "target", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 116, + "character": 8 + } + ], + "type": { + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "reference", + "name": "__type" + } + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 186, + 184, + 185 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 114, + "character": 55 + } + ] + } } - }, - { - "id": 2316, - "name": "timeStamp", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "reference", + "name": "__type" + } }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 136, - "character": 17 + { + "type": "typeParameter", + "name": "U", + "constraint": { + "type": "reference", + "name": "__type" } - ], - "type": { - "type": "intrinsic", - "name": "number" } + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 114, + "character": 19 + } + ] + }, + { + "id": 171, + "name": "copyArray", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 172, + "name": "copyArray", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "typeParameter": [ + { + "id": 173, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} } ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 2310 - ] - }, + "parameters": [ { - "title": "Properties", - "kind": 1024, - "children": [ - 2313, - 2314, - 2315, - 2316 - ] + "id": 174, + "name": "array", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } + } } ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 130, - "character": 25 + "type": { + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" } - ] - }, + } + } + ], + "sources": [ { - "id": 2317, - "name": "Event", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true + "fileName": "src/common/lib/util.ts", + "line": 98, + "character": 18 + } + ] + }, + { + "id": 141, + "name": "createCompositeHandle", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 142, + "name": "createCompositeHandle", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns a single handle that can be used to destroy multiple handles\nsimultaneously." }, - "children": [ + "parameters": [ { - "id": 2318, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 143, + "name": "handles", + "kind": 32768, + "kindString": "Parameter", "flags": { - "isExported": true + "isRest": true }, - "signatures": [ - { - "id": 2319, - "name": "new Event", - "kind": 16384, - "kindString": "Constructor signature", + "comment": { + "text": "An array of handles with `destroy` methods\n" + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Handle", + "id": 133 + } + } + } + ], + "type": { + "type": "reference", + "name": "Handle", + "id": 133 + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 37, + "character": 37 + } + ] + }, + { + "id": 136, + "name": "createHandle", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 137, + "name": "createHandle", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns an object with a destroy method that, when called, calls the\npassed-in destructor. This is intended to provide a unified interface for\ncreating \"remove\" / \"destroy\" handlers for event listeners, timers, etc." + }, + "parameters": [ + { + "id": 138, + "name": "destructor", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "A function that will be called when the handle's `destroy`\nmethod is invoked\n" + }, + "type": { + "type": "reflection", + "declaration": { + "id": 139, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "parameters": [ + "signatures": [ { - "id": 2320, - "name": "type", - "kind": 32768, - "kindString": "Parameter", + "id": 140, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "name": "Object" - } - ] + "type": "intrinsic", + "name": "void" } } ], - "type": { - "type": "reference", - "name": "Event", - "id": 2317 - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 139, - "character": 24 + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 19, + "character": 40 + } + ] } - ] - }, + } + } + ], + "type": { + "type": "reference", + "name": "Handle", + "id": 133 + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 19, + "character": 28 + } + ] + }, + { + "id": 144, + "name": "deepMixin", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 145, + "name": "deepMixin", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Deeply mix the properties of two objects" + }, + "typeParameter": [ { - "id": 2321, - "name": "aborted", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 142, - "character": 15 - } - ], + "id": 146, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { "type": "intrinsic", - "name": "boolean" + "name": "object" } }, { - "id": 2322, - "name": "cancelled", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 143, - "character": 17 - } - ], + "id": 147, + "name": "U", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { "type": "intrinsic", - "name": "boolean" + "name": "object" } - }, + } + ], + "parameters": [ { - "id": 2323, - "name": "currentTarget", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 144, - "character": 21 - } - ], + "id": 148, + "name": "target", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "type": { - "type": "reference", - "name": "Object" + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "intrinsic", + "name": "object" + } } }, { - "id": 2324, - "name": "result", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "id": 149, + "name": "source", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "U", + "constraint": { + "type": "intrinsic", + "name": "object" + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "intrinsic", + "name": "object" + } }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 145, - "character": 14 + { + "type": "typeParameter", + "name": "U", + "constraint": { + "type": "intrinsic", + "name": "object" } - ], + } + ] + } + }, + { + "id": 150, + "name": "deepMixin", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "typeParameter": [ + { + "id": 151, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { "type": "intrinsic", - "name": "any" + "name": "object" } }, { - "id": 2325, - "name": "target", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 146, - "character": 14 - } - ], + "id": 152, + "name": "U", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { - "type": "reference", - "name": "Object" + "type": "intrinsic", + "name": "object" } }, { - "id": 2326, - "name": "timeStamp", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 147, - "character": 17 - } - ], + "id": 153, + "name": "V", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { "type": "intrinsic", - "name": "number" + "name": "object" } - }, + } + ], + "parameters": [ { - "id": 2327, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 148, - "character": 12 - } - ], + "id": 154, + "name": "target", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "intrinsic", + "name": "object" + } } - } - ], - "groups": [ + }, { - "title": "Constructors", - "kind": 512, - "children": [ - 2318 - ] + "id": 155, + "name": "source1", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "U", + "constraint": { + "type": "intrinsic", + "name": "object" + } + } }, { - "title": "Properties", - "kind": 1024, - "children": [ - 2321, - 2322, - 2323, - 2324, - 2325, - 2326, - 2327 - ] + "id": 156, + "name": "source2", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "V", + "constraint": { + "type": "intrinsic", + "name": "object" + } + } } ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 139, - "character": 22 - } - ] - }, - { - "id": 2328, - "name": "Suite", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 2332, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2333, - "name": "new Suite", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 2334, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 2335, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Options", - "id": 2252 - } - } - ], - "type": { - "type": "reference", - "name": "Suite", - "id": 2328 - } + "type": { + "type": "intersection", + "types": [ + { + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "intrinsic", + "name": "object" } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 152, - "character": 41 + }, + { + "type": "typeParameter", + "name": "U", + "constraint": { + "type": "intrinsic", + "name": "object" } - ] - }, - { - "id": 2336, - "name": "aborted", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 156, - "character": 15 + { + "type": "typeParameter", + "name": "V", + "constraint": { + "type": "intrinsic", + "name": "object" } - ], - "type": { - "type": "intrinsic", - "name": "boolean" } - }, + ] + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 46, + "character": 25 + }, + { + "fileName": "src/common/lib/util.ts", + "line": 50, + "character": 25 + }, + { + "fileName": "src/common/lib/util.ts", + "line": 55, + "character": 25 + } + ] + }, + { + "id": 157, + "name": "duplicate", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 158, + "name": "duplicate", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Creates a new object using the provided source's prototype as the prototype\nfor the new object, and then deep copies the provided source's values into\nthe new target." + }, + "typeParameter": [ { - "id": 2337, - "name": "length", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 157, - "character": 14 - } - ], + "id": 159, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, "type": { "type": "intrinsic", - "name": "number" + "name": "object" } - }, + } + ], + "parameters": [ { - "id": 2338, - "name": "running", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "id": 160, + "name": "source", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "the object to duplicate\n" }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 158, - "character": 15 - } - ], "type": { - "type": "intrinsic", - "name": "boolean" + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "intrinsic", + "name": "object" + } } - }, + } + ], + "type": { + "type": "typeParameter", + "name": "T", + "constraint": { + "type": "intrinsic", + "name": "object" + } + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 69, + "character": 25 + } + ] + }, + { + "id": 161, + "name": "partial", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 162, + "name": "partial", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns a function which invokes the given function with the given arguments\nprepended to its argument list. Like `Function.prototype.bind`, but does not\nalter execution context." + }, + "parameters": [ { - "id": 2329, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isStatic": true, - "isExported": true + "id": 163, + "name": "targetFunction", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The function that needs to be bound" }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 152, - "character": 22 - } - ], "type": { "type": "reflection", "declaration": { - "id": 2330, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, - "children": [ + "signatures": [ { - "id": 2331, - "name": "name", - "kind": 32, - "kindString": "Variable", + "id": 165, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "sources": [ + "parameters": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 152, - "character": 30 + "id": 166, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } } ], "type": { "type": "intrinsic", - "name": "string" + "name": "any" } } ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 2331 - ] - } - ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 152, - "character": 23 + "fileName": "src/common/lib/util.ts", + "line": 84, + "character": 17 } ] } } }, { - "id": 2339, - "name": "abort", - "kind": 2048, - "kindString": "Method", + "id": 167, + "name": "suppliedArgs", + "kind": 32768, + "kindString": "Parameter", "flags": { - "isExported": true + "isRest": true }, - "signatures": [ - { - "id": 2340, - "name": "abort", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 159, - "character": 13 - } - ] - }, - { - "id": 2341, - "name": "add", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "comment": { + "text": "An optional array of arguments to prepend to the\n`targetFunction` arguments list\n" }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 168, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, "signatures": [ { - "id": 2342, - "name": "add", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2343, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2344, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 2345, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Options", - "id": 2252 - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - }, - { - "id": 2346, - "name": "add", + "id": 169, + "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 2347, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 2348, - "name": "options", + "id": 170, + "name": "args", "kind": 32768, "kindString": "Parameter", "flags": { - "isOptional": true + "isRest": true }, "type": { - "type": "reference", - "name": "Options", - "id": 2252 + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } } } ], "type": { - "type": "reference", - "name": "Suite" + "type": "intrinsic", + "name": "any" } - }, + } + ], + "sources": [ { - "id": 2349, - "name": "add", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2350, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2351, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Options", - "id": 2252 - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - }, - { - "id": 2352, - "name": "add", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2353, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Options" - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 160, - "character": 11 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 161, - "character": 11 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 162, - "character": 11 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 163, - "character": 11 + "fileName": "src/common/lib/util.ts", + "line": 86, + "character": 2 } ] - }, + } + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 83, + "character": 23 + } + ] + }, + { + "id": 175, + "name": "shouldDeepCopyObject", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 176, + "name": "shouldDeepCopyObject", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "id": 2354, - "name": "clone", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2355, - "name": "clone", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2356, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Options" - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 164, - "character": 13 - } - ] + "id": 177, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "Object" + } + } + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 110, + "character": 29 + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 133 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 178, + 171, + 141, + 136, + 144, + 157, + 161, + 175 + ] + } + ], + "sources": [ + { + "fileName": "src/common/lib/util.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 7812, + "name": "\"core/bin/intern\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/core/bin/intern.ts", + "children": [ + { + "id": 7813, + "name": "printHelp", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 7814, + "name": "printHelp", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 7815, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } }, { - "id": 2357, - "name": "emit", - "kind": 2048, - "kindString": "Method", + "id": 7816, + "name": "file", + "kind": 32768, + "kindString": "Parameter", "flags": { - "isExported": true + "isOptional": true }, - "signatures": [ - { - "id": 2358, - "name": "emit", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2359, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "name": "Object" - } - ] - } - } - ], - "type": { + "type": { + "type": "union", + "types": [ + { "type": "intrinsic", - "name": "any" + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 165, - "character": 12 - } - ] - }, + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/core/bin/intern.ts", + "line": 59, + "character": 18 + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "kind": 64, + "children": [ + 7813 + ] + } + ], + "sources": [ + { + "fileName": "src/core/bin/intern.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 7808, + "name": "\"core/index\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/core/index.ts", + "comment": { + "shortText": "This is the default public API for Intern. Since most of Intern's public API\nis accessible through the [[lib/executors/Executor.Executor]] classes, this\nmodule simply exports a reference to the global executor instance." + }, + "children": [ + { + "id": 7810, + "name": "__global", + "kind": 2, + "kindString": "Module", + "flags": {}, + "children": [ + { + "id": 7811, + "name": "intern", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "Intern installs an instance of an Executor subclass (Node in Node.js, or\nBrowser in a browser environment) on a global `intern` constant." + }, + "sources": [ { - "id": 2360, - "name": "filter", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2361, - "name": "filter", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2362, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 166, - "character": 14 - } - ] - }, + "fileName": "src/core/index.ts", + "line": 18, + "character": 21 + } + ], + "type": { + "type": "reference", + "name": "NodeExecutor" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 7811 + ] + } + ], + "sources": [ + { + "fileName": "src/core/index.ts", + "line": 13, + "character": 14 + } + ] + }, + { + "id": 7809, + "name": "intern", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "src/core/index.ts", + "line": 10, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "Node", + "id": 7088 + }, + "defaultValue": " (global.intern = new NodeExecutor())" + } + ], + "groups": [ + { + "title": "Modules", + "kind": 2, + "children": [ + 7810 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 7809 + ] + } + ], + "sources": [ + { + "fileName": "src/core/index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 4444, + "name": "\"core/lib/BenchmarkSuite\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/core/lib/BenchmarkSuite.ts", + "children": [ + { + "id": 4445, + "name": "BenchmarkSuite", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "BenchmarkSuite is a specialization of [[lib/Suite]] that manages\n[[lib/BenchmarkTest|BenchmarkTests]]." + }, + "children": [ + { + "id": 4449, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 2363, - "name": "forEach", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4450, + "name": "new BenchmarkSuite", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ { - "id": 2364, - "name": "forEach", - "kind": 4096, - "kindString": "Call signature", + "id": 4451, + "name": "options", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "parameters": [ - { - "id": 2365, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - } - ], "type": { "type": "reference", - "name": "Suite" + "name": "BenchmarkSuiteOptions", + "id": 4529 } } ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 167, - "character": 15 - } - ] - }, - { - "id": 2366, - "name": "indexOf", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "type": { + "type": "reference", + "name": "BenchmarkSuite", + "id": 4445 }, - "signatures": [ - { - "id": 2367, - "name": "indexOf", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2368, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 168, - "character": 15 - } - ] - }, + "overwrites": { + "type": "reference", + "name": "Suite.__constructor", + "id": 3708 + } + } + ], + "sources": [ { - "id": 2369, - "name": "invoke", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2370, - "name": "invoke", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2371, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2372, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 169, - "character": 14 - } - ] - }, + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 20, + "character": 45 + } + ], + "overwrites": { + "type": "reference", + "name": "Suite.__constructor", + "id": 3708 + } + }, + { + "id": 4452, + "name": "after", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An optional method that is run after all the suite's tests have completed" + }, + "sources": [ { - "id": 2373, - "name": "join", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 16, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "SuiteLifecycleFunction", + "id": 3763 }, - "signatures": [ - { - "id": 2374, - "name": "join", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2375, - "name": "separator", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 170, - "character": 12 - } - ] - }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.after", + "id": 3694 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.after", + "id": 4520 + } + }, + { + "id": 4453, + "name": "afterEach", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An optional method that is run after each test has completed" + }, + "sources": [ { - "id": 2376, - "name": "listeners", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 21, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 }, - "signatures": [ - { - "id": 2377, - "name": "listeners", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2378, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Function" - } - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 171, - "character": 17 - } - ] - }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.afterEach", + "id": 3695 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.afterEach", + "id": 4521 + } + }, + { + "id": 4446, + "name": "afterEachLoop", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A function that is run after each test call by benchmark.js" + }, + "sources": [ { - "id": 2379, - "name": "map", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 15, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 }, - "signatures": [ - { - "id": 2380, - "name": "map", - "kind": 4096, - "kindString": "Call signature", + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.afterEachLoop", + "id": 4519 + } + }, + { + "id": 4454, + "name": "async", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A convenience function that generates and returns a special\n[[lib/Deferred.Deferred]] that can be used for asynchronous testing" + }, + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 27, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 4455, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "parameters": [ + "signatures": [ { - "id": 2381, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", + "id": 4456, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4457, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], "type": { "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 172, - "character": 11 - } - ] - }, - { - "id": 2382, - "name": "off", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2383, - "name": "off", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2384, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, + "name": "Deferred", + "id": 3453, + "typeArguments": [ { "type": "intrinsic", - "name": "string" + "name": "void" } ] } - }, - { - "id": 2385, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Function" - } } ], - "type": { - "type": "reference", - "name": "Suite" - } - }, - { - "id": 2386, - "name": "off", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "sources": [ { - "id": 2387, - "name": "types", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } + "fileName": "src/core/lib/Suite.ts", + "line": 27, + "character": 8 } - ], - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 173, - "character": 11 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 174, - "character": 11 + ] } - ] - }, + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.async", + "id": 3696 + } + }, + { + "id": 4458, + "name": "before", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An optional method that is run before any of this suite's tests are\nstarted" + }, + "sources": [ { - "id": 2388, - "name": "on", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 33, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "SuiteLifecycleFunction", + "id": 3763 }, - "signatures": [ - { - "id": 2389, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2390, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 2391, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - }, - { - "id": 2392, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2393, - "name": "types", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.before", + "id": 3700 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.before", + "id": 4523 + } + }, + { + "id": 4459, + "name": "beforeEach", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An optional method that is run before each test" + }, + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 38, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.beforeEach", + "id": 3701 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.beforeEach", + "id": 4524 + } + }, + { + "id": 4447, + "name": "beforeEachLoop", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A function that is run before each test call by benchmark.js" + }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 18, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.beforeEachLoop", + "id": 4518 + } + }, + { + "id": 4460, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The error that caused this suite to fail" + }, + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 41, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "InternError", + "id": 3473 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.error", + "id": 3702 + } + }, + { + "id": 4461, + "name": "parent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "This suite's parent Suite" + }, + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 44, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Suite", + "id": 3693 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.parent", + "id": 3703 + } + }, + { + "id": 4462, + "name": "publishAfterSetup", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "If true, the suite will emit a suiteStart event after the `before`\ncallback has finished, and will emit a suiteEnd event before the `after`\ncallback has finished." + }, + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 51, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false", + "inheritedFrom": { + "type": "reference", + "name": "Suite.publishAfterSetup", + "id": 3704 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.publishAfterSetup", + "id": 4527 + } + }, + { + "id": 4463, + "name": "skipped", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The reason why this suite was skipped" + }, + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 54, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.skipped", + "id": 3705 + } + }, + { + "id": 4448, + "name": "tests", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 20, + "character": 7 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "union", + "types": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 175, - "character": 10 + "type": "reference", + "name": "BenchmarkTest", + "id": 3985 }, { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 176, - "character": 10 + "type": "reference", + "name": "BenchmarkSuite", + "id": 4445 } ] - }, + } + }, + "overwrites": { + "type": "reference", + "name": "Suite.tests", + "id": 3706 + } + }, + { + "id": 4464, + "name": "timeElapsed", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The time required to run all the tests in this suite" + }, + "sources": [ { - "id": 2394, - "name": "pluck", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 60, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" }, - "signatures": [ + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.timeElapsed", + "id": 3707 + } + }, + { + "id": 4465, + "name": "bail", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." + }, + "getSignature": [ + { + "id": 4466, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.bail", + "id": 3711 + } + } + ], + "setSignature": [ + { + "id": 4467, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "comment": { + "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." + }, + "parameters": [ { - "id": 2395, - "name": "pluck", - "kind": 4096, - "kindString": "Call signature", + "id": 4468, + "name": "value", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "parameters": [ - { - "id": 2396, - "name": "property", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } + "type": "intrinsic", + "name": "boolean" } } ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 177, - "character": 13 - } - ] + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.bail", + "id": 3711 + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 96, + "character": 10 }, { - "id": 2397, - "name": "pop", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 100, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.bail", + "id": 3711 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.bail", + "id": 4522 + } + }, + { + "id": 4469, + "name": "executor", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The executor used to run this Suite." + }, + "getSignature": [ + { + "id": 4470, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The executor used to run this Suite." }, - "signatures": [ + "type": { + "type": "reference", + "name": "Executor", + "id": 4582 + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.executor", + "id": 3715 + } + } + ], + "setSignature": [ + { + "id": 4471, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "comment": { + "shortText": "The executor used to run this Suite." + }, + "parameters": [ { - "id": 2398, - "name": "pop", - "kind": 4096, - "kindString": "Call signature", + "id": 4472, + "name": "value", + "kind": 32768, + "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Function" + "name": "Executor", + "id": 4582 } } ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 178, - "character": 11 - } - ] - }, - { - "id": 2399, - "name": "push", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "type": { + "type": "intrinsic", + "name": "void" }, - "signatures": [ - { - "id": 2400, - "name": "push", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2401, - "name": "benchmark", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Benchmark" - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 179, - "character": 12 - } - ] - }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.executor", + "id": 3715 + } + } + ], + "sources": [ { - "id": 2402, - "name": "reduce", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2403, - "name": "reduce", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 2404, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2405, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 2406, - "name": "accumulator", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } - } - ], - "type": { - "type": "typeParameter", - "name": "T" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 180, - "character": 14 - } - ] + "fileName": "src/core/lib/Suite.ts", + "line": 107, + "character": 14 }, { - "id": 2407, - "name": "reset", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2408, - "name": "reset", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 181, - "character": 13 - } - ] - }, + "fileName": "src/core/lib/Suite.ts", + "line": 112, + "character": 14 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.executor", + "id": 3715 + } + }, + { + "id": 4473, + "name": "grep", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A regular expression used to filter, by test ID, which tests are run." + }, + "getSignature": [ { - "id": 2409, - "name": "reverse", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "id": 4474, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "A regular expression used to filter, by test ID, which tests are run." }, - "signatures": [ - { - "id": 2410, - "name": "reverse", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 182, - "character": 15 - } - ] - }, - { - "id": 2411, - "name": "run", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "type": { + "type": "reference", + "name": "RegExp" }, - "signatures": [ - { - "id": 2412, - "name": "run", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2413, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Options", - "id": 2252 - } - } - ], - "type": { - "type": "reference", - "name": "Suite" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 183, - "character": 11 - } - ] - }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.grep", + "id": 3719 + } + } + ], + "setSignature": [ { - "id": 2414, - "name": "shift", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "id": 4475, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "comment": { + "shortText": "A regular expression used to filter, by test ID, which tests are run." }, - "signatures": [ + "parameters": [ { - "id": 2415, - "name": "shift", - "kind": 4096, - "kindString": "Call signature", + "id": 4476, + "name": "value", + "kind": 32768, + "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Benchmark" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 184, - "character": 13 - } - ] - }, - { - "id": 2416, - "name": "slice", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2417, - "name": "slice", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2418, - "name": "start", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 2419, - "name": "end", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 2420, - "name": "slice", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2421, - "name": "start", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 2422, - "name": "deleteCount", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 2423, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } + "name": "RegExp" } } ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 185, - "character": 13 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 186, - "character": 13 - } - ] - }, - { - "id": 2424, - "name": "unshift", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "type": { + "type": "intrinsic", + "name": "void" }, - "signatures": [ - { - "id": 2425, - "name": "unshift", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2426, - "name": "benchmark", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Benchmark" - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 187, - "character": 15 - } - ] + "inheritedFrom": { + "type": "reference", + "name": "Suite.grep", + "id": 3719 + } } ], - "groups": [ + "sources": [ { - "title": "Constructors", - "kind": 512, - "children": [ - 2332 - ] + "fileName": "src/core/lib/Suite.ts", + "line": 124, + "character": 10 }, { - "title": "Properties", - "kind": 1024, - "children": [ - 2336, - 2337, - 2338, - 2329 - ] - }, + "fileName": "src/core/lib/Suite.ts", + "line": 128, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.grep", + "id": 3719 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.grep", + "id": 4525 + } + }, + { + "id": 4501, + "name": "hasParent", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." + }, + "getSignature": [ { - "title": "Methods", - "kind": 2048, - "children": [ - 2339, - 2341, - 2354, - 2357, - 2360, - 2363, - 2366, - 2369, - 2373, - 2376, - 2379, - 2382, - 2388, - 2394, - 2397, - 2399, - 2402, - 2407, - 2409, - 2411, - 2414, - 2416, - 2424 - ] + "id": 4502, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.hasParent", + "id": 3747 + } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 151, - "character": 22 + "fileName": "src/core/lib/Suite.ts", + "line": 272, + "character": 15 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.hasParent", + "id": 3747 + } }, { - "id": 2252, - "name": "Options", - "kind": 256, - "kindString": "Interface", + "id": 4481, + "name": "id", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, - "children": [ + "comment": { + "shortText": "The unique identifier of the suite, assuming all combinations of suite +\ntest are unique." + }, + "getSignature": [ { - "id": 2253, - "name": "async", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "id": 4482, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The unique identifier of the suite, assuming all combinations of suite +\ntest are unique." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 65, - "character": 13 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 2254, - "name": "defer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "type": "intrinsic", + "name": "string" }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 66, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] + "inheritedFrom": { + "type": "reference", + "name": "Suite.id", + "id": 3727 } - }, + } + ], + "sources": [ { - "id": 2255, - "name": "delay", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 151, + "character": 8 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.id", + "id": 3727 + } + }, + { + "id": 4477, + "name": "name", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "This suite's name" + }, + "getSignature": [ + { + "id": 4478, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "This suite's name" }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 67, - "character": 13 - } - ], "type": { "type": "union", "types": [ @@ -7601,209 +9127,286 @@ "type": "intrinsic", "name": "undefined" }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 2270, - "name": "fn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 82, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, { "type": "intrinsic", "name": "string" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.name", + "id": 3723 } - }, + } + ], + "setSignature": [ { - "id": 2256, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "id": 4479, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "comment": { + "shortText": "This suite's name" }, - "sources": [ + "parameters": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 68, - "character": 10 + "id": 4480, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.name", + "id": 3723 } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 136, + "character": 10 }, { - "id": 2257, - "name": "initCount", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 140, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.name", + "id": 3723 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.name", + "id": 4526 + } + }, + { + "id": 4497, + "name": "numFailedTests", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." + }, + "getSignature": [ + { + "id": 4498, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 69, - "character": 17 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.numFailedTests", + "id": 3743 } - }, + } + ], + "sources": [ { - "id": 2258, - "name": "maxTime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 242, + "character": 20 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.numFailedTests", + "id": 3743 + } + }, + { + "id": 4495, + "name": "numPassedTests", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The total number of tests in this test suite that passed." + }, + "getSignature": [ + { + "id": 4496, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The total number of tests in this test suite that passed." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 70, - "character": 15 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.numPassedTests", + "id": 3741 } - }, + } + ], + "sources": [ { - "id": 2259, - "name": "minSamples", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 227, + "character": 20 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.numPassedTests", + "id": 3741 + } + }, + { + "id": 4499, + "name": "numSkippedTests", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." + }, + "getSignature": [ + { + "id": 4500, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 71, - "character": 18 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.numSkippedTests", + "id": 3745 } - }, + } + ], + "sources": [ { - "id": 2260, - "name": "minTime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 257, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.numSkippedTests", + "id": 3745 + } + }, + { + "id": 4493, + "name": "numTests", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." + }, + "getSignature": [ + { + "id": 4494, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 72, - "character": 15 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.numTests", + "id": 3739 } - }, + } + ], + "sources": [ { - "id": 2261, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 215, + "character": 14 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.numTests", + "id": 3739 + } + }, + { + "id": 4483, + "name": "parentId", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The unique identifier of the suite's parent." + }, + "getSignature": [ + { + "id": 4484, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The unique identifier of the suite's parent." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 73, - "character": 12 - } - ], "type": { "type": "union", "types": [ @@ -7816,1977 +9419,2194 @@ "name": "string" } ] - } - }, - { - "id": 2262, - "name": "onAbort", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 74, - "character": 15 - } - ], - "type": { + "inheritedFrom": { "type": "reference", - "name": "Function" + "name": "Suite.parentId", + "id": 3729 } - }, + } + ], + "sources": [ { - "id": 2263, - "name": "onComplete", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 165, + "character": 14 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.parentId", + "id": 3729 + } + }, + { + "id": 4485, + "name": "remote", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." + }, + "getSignature": [ + { + "id": 4486, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 75, - "character": 18 - } - ], "type": { "type": "reference", - "name": "Function" + "name": "Remote", + "id": 7301 + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.remote", + "id": 3731 } - }, + } + ], + "setSignature": [ { - "id": 2264, - "name": "onCycle", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "id": 4487, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "comment": { + "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." }, - "sources": [ + "parameters": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 76, - "character": 15 + "id": 4488, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Remote", + "id": 7301 + } } ], "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { "type": "reference", - "name": "Function" + "name": "Suite.remote", + "id": 3731 } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 178, + "character": 12 }, { - "id": 2265, - "name": "onError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 184, + "character": 12 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.remote", + "id": 3731 + } + }, + { + "id": 4489, + "name": "sessionId", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The sessionId of the environment in which the suite executed." + }, + "getSignature": [ + { + "id": 4490, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The sessionId of the environment in which the suite executed." }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 77, - "character": 15 - } - ], "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { "type": "reference", - "name": "Function" + "name": "Suite.sessionId", + "id": 3735 } - }, + } + ], + "setSignature": [ { - "id": 2266, - "name": "onReset", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "id": 4491, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "comment": { + "shortText": "The sessionId of the environment in which the suite executed." }, - "sources": [ + "parameters": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 78, - "character": 15 + "id": 4492, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } } ], "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { "type": "reference", - "name": "Function" + "name": "Suite.sessionId", + "id": 3735 } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 194, + "character": 15 }, { - "id": 2267, - "name": "onStart", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 79, - "character": 15 - } - ], + "fileName": "src/core/lib/Suite.ts", + "line": 207, + "character": 15 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.sessionId", + "id": 3735 + } + }, + { + "id": 4503, + "name": "timeout", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "getSignature": [ + { + "id": 4504, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { "type": "reference", - "name": "Function" + "name": "Suite.timeout", + "id": 3749 } - }, + } + ], + "setSignature": [ { - "id": 2271, - "name": "queued", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + "id": 4505, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "parameters": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 83, - "character": 14 + "id": 4506, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.timeout", + "id": 3749 } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Suite.ts", + "line": 276, + "character": 13 }, { - "id": 2268, - "name": "setup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 286, + "character": 13 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.timeout", + "id": 3749 + }, + "implementationOf": { + "type": "reference", + "name": "BenchmarkSuiteProperties.timeout", + "id": 4528 + } + }, + { + "id": 4507, + "name": "add", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4508, + "name": "add", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Add a test or suite to this suite." }, - "sources": [ + "parameters": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 80, - "character": 13 + "id": 4509, + "name": "suiteOrTest", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Suite", + "id": 3693 + }, + { + "type": "reference", + "name": "Test", + "id": 3610 + } + ] + } } ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.add", + "id": 3753 } - }, + } + ], + "sources": [ { - "id": 2269, - "name": "teardown", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true + "fileName": "src/core/lib/Suite.ts", + "line": 293, + "character": 5 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.add", + "id": 3753 + } + }, + { + "id": 4510, + "name": "run", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4511, + "name": "run", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Runs test suite in order:", + "text": "* before\n* (for each test)\n * beforeEach\n * test\n * afterEach\n* after\n\nIf before, beforeEach, afterEach, or after throw, the suite itself will\nbe marked as failed and no further tests in the suite will be executed.\n" }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 81, - "character": 16 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ { "type": "intrinsic", - "name": "string" + "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.run", + "id": 3756 } } ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 2253, - 2254, - 2255, - 2270, - 2256, - 2257, - 2258, - 2259, - 2260, - 2261, - 2262, - 2263, - 2264, - 2265, - 2266, - 2267, - 2271, - 2268, - 2269 - ] - } - ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 64, - "character": 28 + "fileName": "src/core/lib/Suite.ts", + "line": 357, + "character": 5 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.run", + "id": 3756 + } }, { - "id": 2272, - "name": "Platform", - "kind": 256, - "kindString": "Interface", + "id": 4512, + "name": "skip", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "children": [ + "signatures": [ { - "id": 2273, - "name": "description", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "id": 4513, + "name": "skip", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Skips this suite.", + "text": "Calling this function will cause all remaining tests in the suite to be\nskipped. If a message was provided, a reporter may report the suite’s\ntests as skipped. Skipped tests are not treated as passing or failing.\n\nIf this method is called from a test function (as this.parent.skip()),\nthe test will be immediately halted, just as if the test’s own skip\nmethod were called.\n" }, - "sources": [ + "parameters": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 87, - "character": 19 + "id": 4514, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "If provided, will be stored in this suite's `skipped`\nproperty.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"suite skipped\"" } ], "type": { "type": "intrinsic", - "name": "string" + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.skip", + "id": 3758 } - }, + } + ], + "sources": [ { - "id": 2274, - "name": "layout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 88, - "character": 14 - } - ], + "fileName": "src/core/lib/Suite.ts", + "line": 733, + "character": 6 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.skip", + "id": 3758 + } + }, + { + "id": 4515, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4516, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "type": { "type": "intrinsic", - "name": "string" + "name": "object" + }, + "inheritedFrom": { + "type": "reference", + "name": "Suite.toJSON", + "id": 3761 } - }, - { - "id": 2275, - "name": "manufacturer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 89, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2276, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 90, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2277, - "name": "os", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 91, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2278, - "name": "prerelease", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 92, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2279, - "name": "product", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 93, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2280, - "name": "version", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 94, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2281, - "name": "toString", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2282, - "name": "toString", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 95, - "character": 16 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 2273, - 2274, - 2275, - 2276, - 2277, - 2278, - 2279, - 2280 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 2281 - ] } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 86, - "character": 29 + "fileName": "src/core/lib/Suite.ts", + "line": 740, + "character": 8 } + ], + "inheritedFrom": { + "type": "reference", + "name": "Suite.toJSON", + "id": 3761 + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 4449 ] }, { - "id": 2296, - "name": "Stats", - "kind": 256, - "kindString": "Interface", + "title": "Properties", + "kind": 1024, + "children": [ + 4452, + 4453, + 4446, + 4454, + 4458, + 4459, + 4447, + 4460, + 4461, + 4462, + 4463, + 4448, + 4464 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 4465, + 4469, + 4473, + 4501, + 4481, + 4477, + 4497, + 4495, + 4499, + 4493, + 4483, + 4485, + 4489, + 4503 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 4507, + 4510, + 4512, + 4515 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 12, + "character": 35 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "Suite", + "id": 3693 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "SuiteProperties", + "id": 3772 + }, + { + "type": "reference", + "name": "BenchmarkSuiteProperties", + "id": 4517 + } + ] + }, + { + "id": 4517, + "name": "BenchmarkSuiteProperties", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 4520, + "name": "after", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "children": [ + "sources": [ { - "id": 2297, - "name": "deviation", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 801, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "SuiteLifecycleFunction", + "id": 3763 }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 114, - "character": 17 - } - ], - "type": { + { "type": "intrinsic", - "name": "number" + "name": "undefined" } - }, + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.after", + "id": 3773 + } + }, + { + "id": 4521, + "name": "afterEach", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 2298, - "name": "mean", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 802, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 115, - "character": 12 - } - ], - "type": { + { "type": "intrinsic", - "name": "number" + "name": "undefined" } - }, + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.afterEach", + "id": 3774 + } + }, + { + "id": 4519, + "name": "afterEachLoop", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 2299, - "name": "moe", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 29, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 116, - "character": 11 - } - ], - "type": { + { "type": "intrinsic", - "name": "number" + "name": "undefined" } - }, + ] + } + }, + { + "id": 4522, + "name": "bail", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 2300, - "name": "rme", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 117, - "character": 11 - } - ], - "type": { + "fileName": "src/core/lib/Suite.ts", + "line": 803, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "intrinsic", - "name": "number" - } - }, - { - "id": 2301, - "name": "sample", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 118, - "character": 14 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 2302, - "name": "sem", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "name": "boolean" }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 119, - "character": 11 - } - ], - "type": { + { "type": "intrinsic", - "name": "number" + "name": "undefined" } - }, + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.bail", + "id": 3775 + } + }, + { + "id": 4523, + "name": "before", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 2303, - "name": "variance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 804, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "SuiteLifecycleFunction", + "id": 3763 }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 120, - "character": 16 - } - ], - "type": { + { "type": "intrinsic", - "name": "number" + "name": "undefined" } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 2297, - 2298, - 2299, - 2300, - 2301, - 2302, - 2303 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 113, - "character": 26 - } - ] + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.before", + "id": 3776 + } }, { - "id": 2283, - "name": "Support", - "kind": 256, - "kindString": "Interface", + "id": 4524, + "name": "beforeEach", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "children": [ + "sources": [ { - "id": 2284, - "name": "air", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "fileName": "src/core/lib/Suite.ts", + "line": 805, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 99, - "character": 11 - } - ], - "type": { + { "type": "intrinsic", - "name": "boolean" + "name": "undefined" } - }, - { - "id": 2285, - "name": "argumentsClass", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 100, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2286, - "name": "browser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 101, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2287, - "name": "charByIndex", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 102, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2288, - "name": "charByOwnIndex", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 103, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2289, - "name": "decompilation", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 104, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2290, - "name": "descriptors", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 105, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2291, - "name": "getAllKeys", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 106, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2292, - "name": "iteratesOwnFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 107, - "character": 24 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2293, - "name": "java", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 108, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 2294, - "name": "nodeClass", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 109, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.beforeEach", + "id": 3777 + } + }, + { + "id": 4518, + "name": "beforeEachLoop", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 2295, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 28, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "TestLifecycleFunction", + "id": 3767 }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 110, - "character": 15 - } - ], - "type": { + { "type": "intrinsic", - "name": "boolean" + "name": "undefined" } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 2284, - 2285, - 2286, - 2287, - 2288, - 2289, - 2290, - 2291, - 2292, - 2293, - 2294, - 2295 - ] - } - ], + ] + } + }, + { + "id": 4525, + "name": "grep", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 98, - "character": 28 + "fileName": "src/core/lib/Suite.ts", + "line": 806, + "character": 6 } - ] + ], + "type": { + "type": "reference", + "name": "RegExp" + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.grep", + "id": 3778 + } }, { - "id": 2304, - "name": "Times", - "kind": 256, - "kindString": "Interface", + "id": 4526, + "name": "name", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "children": [ - { - "id": 2305, - "name": "cycle", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 124, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 2306, - "name": "elapsed", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 125, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, + "sources": [ { - "id": 2307, - "name": "period", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 126, - "character": 14 - } - ], - "type": { + "fileName": "src/core/lib/Suite.ts", + "line": 807, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "intrinsic", - "name": "number" - } - }, - { - "id": 2308, - "name": "timeStamp", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true + "name": "string" }, - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 127, - "character": 17 - } - ], - "type": { + { "type": "intrinsic", - "name": "number" + "name": "undefined" } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 2305, - 2306, - 2307, - 2308 - ] - } - ], + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.name", + "id": 3779 + } + }, + { + "id": 4527, + "name": "publishAfterSetup", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 123, - "character": 26 + "fileName": "src/core/lib/Suite.ts", + "line": 808, + "character": 19 } - ] + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.publishAfterSetup", + "id": 3780 + } }, { - "id": 2194, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 4528, + "name": "timeout", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ + "sources": [ { - "id": 2195, - "name": "new InternBenchmark", - "kind": 16384, - "kindString": "Constructor signature", + "fileName": "src/core/lib/Suite.ts", + "line": 809, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "name": "SuiteProperties.timeout", + "id": 3781 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 4520, + 4521, + 4519, + 4522, + 4523, + 4524, + 4518, + 4525, + 4526, + 4527, + 4528 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 27, + "character": 41 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "SuiteProperties", + "id": 3772 + } + ], + "implementedBy": [ + { + "type": "reference", + "name": "BenchmarkSuite", + "id": 4445 + } + ] + }, + { + "id": 4529, + "name": "BenchmarkSuiteOptions", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 32, + "character": 33 + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "name": "Partial", + "typeArguments": [ + { + "type": "reference", + "name": "BenchmarkSuiteProperties", + "id": 4517 + } + ] + }, + { + "type": "reflection", + "declaration": { + "id": 4530, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "parameters": [ + "children": [ { - "id": 2196, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", + "id": 4531, + "name": "name", + "kind": 32, + "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 33, + "character": 6 + } + ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "string" } }, { - "id": 2197, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Benchmark.Options" - } - } - ], - "type": { - "type": "reference", - "name": "InternBenchmark", - "id": 2093 - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.__constructor" - } - }, - { - "id": 2198, - "name": "new InternBenchmark", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 2199, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2200, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", + "id": 4532, + "name": "parent", + "kind": 32, + "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 34, + "character": 8 + } + ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "reference", + "name": "Suite", + "id": 3693 } }, { - "id": 2201, - "name": "options", - "kind": 32768, - "kindString": "Parameter", + "id": 4533, + "name": "tests", + "kind": 32, + "kindString": "Variable", "flags": { "isOptional": true }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 35, + "character": 7 + } + ], "type": { - "type": "reference", - "name": "Benchmark.Options" + "type": "array", + "elementType": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "BenchmarkTest", + "id": 3985 + }, + { + "type": "reference", + "name": "BenchmarkSuite", + "id": 4445 + } + ] + } } } ], - "type": { - "type": "reference", - "name": "InternBenchmark", - "id": 2093 - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.__constructor" - } - }, - { - "id": 2202, - "name": "new InternBenchmark", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 2203, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, + "groups": [ { - "id": 2204, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Benchmark.Options" - } + "title": "Variables", + "kind": 32, + "children": [ + 4531, + 4532, + 4533 + ] } ], - "type": { - "type": "reference", - "name": "InternBenchmark", - "id": 2093 - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.__constructor" - } - }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 32, + "character": 71 + } + ] + } + } + ] + } + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 4445 + ] + }, + { + "title": "Interfaces", + "kind": 256, + "children": [ + 4517 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 4529 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkSuite.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 3984, + "name": "\"core/lib/BenchmarkTest\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/core/lib/BenchmarkTest.ts", + "children": [ + { + "id": 3985, + "name": "BenchmarkTest", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "BenchmarkTest wraps a Benchmark.js Benchmark, mapping its API to that used by\n[[lib/Test]]." + }, + "children": [ + { + "id": 3988, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 2205, - "name": "new InternBenchmark", + "id": 3989, + "name": "new BenchmarkTest", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 2206, - "name": "options", + "id": 3990, + "name": "descriptor", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Options" + "name": "BenchmarkTestOptions", + "id": 4428 } } ], "type": { "type": "reference", - "name": "InternBenchmark", - "id": 2093 + "name": "BenchmarkTest", + "id": 3985 }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.__constructor" + "name": "Test.__constructor", + "id": 3624 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 28, - "character": 27 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 30, - "character": 68 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", + "fileName": "src/core/lib/BenchmarkTest.ts", "line": 31, - "character": 82 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 32, - "character": 59 + "character": 29 } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.__constructor" + "name": "Test.__constructor", + "id": 3624 } }, { - "id": 2207, - "name": "aborted", + "id": 4015, + "name": "_hasPassed", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 35, - "character": 11 + "fileName": "src/core/lib/Test.ts", + "line": 31, + "character": 22 } ], "type": { "type": "intrinsic", "name": "boolean" }, + "defaultValue": "false", "inheritedFrom": { "type": "reference", - "name": "Benchmark.aborted" + "name": "Test._hasPassed", + "id": 3617 } }, { - "id": 2208, - "name": "compiled", + "id": 4016, + "name": "_isAsync", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 36, - "character": 12 + "fileName": "src/core/lib/Test.ts", + "line": 33, + "character": 20 } ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "boolean" }, + "defaultValue": "false", "inheritedFrom": { "type": "reference", - "name": "Benchmark.compiled" + "name": "Test._isAsync", + "id": 3618 } }, { - "id": 2209, - "name": "count", + "id": 4018, + "name": "_runTask", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", + "fileName": "src/core/lib/Test.ts", "line": 37, - "character": 9 + "character": 20 } ], "type": { - "type": "intrinsic", - "name": "number" + "type": "union", + "types": [ + { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.count" + "name": "Test._runTask", + "id": 3620 } }, { - "id": 2210, - "name": "cycles", + "id": 4019, + "name": "_timeElapsed", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 38, - "character": 10 + "fileName": "src/core/lib/Test.ts", + "line": 39, + "character": 24 } ], "type": { - "type": "intrinsic", - "name": "number" + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.cycles" + "name": "Test._timeElapsed", + "id": 3621 } }, { - "id": 2211, - "name": "error", + "id": 4017, + "name": "_timeout", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 39, - "character": 9 + "fileName": "src/core/lib/Test.ts", + "line": 35, + "character": 20 } ], "type": { - "type": "reference", - "name": "Error" + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.error" + "name": "Test._timeout", + "id": 3619 } }, { - "id": 2212, - "name": "fn", + "id": 4020, + "name": "_timer", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 40, - "character": 6 + "fileName": "src/core/lib/Test.ts", + "line": 43, + "character": 18 } ], "type": { "type": "union", "types": [ { - "type": "reference", - "name": "Function" + "type": "intrinsic", + "name": "any" }, { "type": "intrinsic", - "name": "string" + "name": "undefined" } ] }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.fn" + "name": "Test._timer", + "id": 3622 } }, { - "id": 2213, - "name": "hz", + "id": 4021, + "name": "_usesRemote", "kind": 1024, "kindString": "Property", "flags": { + "isProtected": true, "isExported": true }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 41, - "character": 6 + "fileName": "src/core/lib/Test.ts", + "line": 45, + "character": 23 } ], "type": { "type": "intrinsic", - "name": "number" + "name": "boolean" }, + "defaultValue": "false", "inheritedFrom": { "type": "reference", - "name": "Benchmark.hz" + "name": "Test._usesRemote", + "id": 3623 } }, { - "id": 2094, - "name": "internTest", + "id": 3987, + "name": "benchmark", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true, - "isOptional": true + "isExported": true + }, + "comment": { + "shortText": "The Benchmark.js test that actually performs benchmarking" }, "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 220, - "character": 12 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 31, + "character": 11 } ], "type": { "type": "reference", - "name": "BenchmarkTest", - "id": 1984 + "name": "InternBenchmark", + "id": 4094 } }, { - "id": 2214, - "name": "running", + "id": 4013, + "name": "error", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "comment": { + "shortText": "The error that caused this Test to fail" + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 42, - "character": 11 + "fileName": "src/core/lib/Test.ts", + "line": 26, + "character": 7 } ], "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "reference", + "name": "InternError", + "id": 3473 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.running" + "name": "Test.error", + "id": 3615 } }, { - "id": 2215, - "name": "setup", + "id": 4010, + "name": "name", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "comment": { + "shortText": "The name of this test" + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 43, - "character": 9 + "fileName": "src/core/lib/Test.ts", + "line": 14, + "character": 6 } ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "string" }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.setup" + "name": "Test.name", + "id": 3611 + }, + "implementationOf": { + "type": "reference", + "name": "TestProperties.name", + "id": 3673 } }, { - "id": 2217, - "name": "stats", + "id": 4011, + "name": "parent", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "comment": { + "shortText": "This test's parent Suite" + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 46, - "character": 9 + "fileName": "src/core/lib/Test.ts", + "line": 17, + "character": 8 } ], "type": { "type": "reference", - "name": "Stats" + "name": "Suite", + "id": 3693 }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.stats" + "name": "Test.parent", + "id": 3612 + }, + "implementationOf": { + "type": "reference", + "name": "TestProperties.parent", + "id": 3674 } }, { - "id": 2216, - "name": "teardown", + "id": 4012, + "name": "skipped", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "comment": { + "shortText": "If this test was skipped, this will contain a message indicating why" + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 44, - "character": 12 + "fileName": "src/core/lib/Test.ts", + "line": 20, + "character": 9 } ], "type": { "type": "union", "types": [ { - "type": "reference", - "name": "Function" + "type": "intrinsic", + "name": "string" }, { "type": "intrinsic", - "name": "string" + "name": "undefined" } ] }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.teardown" + "name": "Test.skipped", + "id": 3613 + }, + "implementationOf": { + "type": "reference", + "name": "TestProperties.skipped", + "id": 3675 } }, { - "id": 2218, - "name": "times", + "id": 4014, + "name": "suiteError", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "comment": { + "shortText": "A suite lifecycle error that occurred after executing this Test" + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 47, - "character": 9 + "fileName": "src/core/lib/Test.ts", + "line": 29, + "character": 12 } ], "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "InternError", + "id": 3473 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { "type": "reference", - "name": "Times" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.times" + "name": "Test.suiteError", + "id": 3616 } }, { - "id": 2190, - "name": "options", + "id": 3986, + "name": "test", "kind": 1024, "kindString": "Property", "flags": { - "isStatic": true, "isExported": true }, + "comment": { + "shortText": "The test function managed by this test" + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 25, - "character": 18 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 28, + "character": 6 } ], "type": { "type": "reference", - "name": "Options" + "name": "BenchmarkTestFunction", + "id": 4046 }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.options" + "name": "Test.test", + "id": 3614 + }, + "implementationOf": { + "type": "reference", + "name": "TestProperties.test", + "id": 3676 } }, { - "id": 2191, - "name": "platform", - "kind": 1024, - "kindString": "Property", + "id": 4022, + "name": "executor", + "kind": 262144, + "kindString": "Accessor", "flags": { - "isStatic": true, "isExported": true }, + "comment": { + "shortText": "The executor running this test." + }, + "getSignature": [ + { + "id": 4023, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The executor running this test." + }, + "type": { + "type": "reference", + "name": "Executor", + "id": 4582 + }, + "inheritedFrom": { + "type": "reference", + "name": "Test.executor", + "id": 3630 + } + } + ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 26, - "character": 19 + "fileName": "src/core/lib/Test.ts", + "line": 68, + "character": 14 } ], - "type": { - "type": "reference", - "name": "Platform" - }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.platform" + "name": "Test.executor", + "id": 3630 } }, { - "id": 2192, - "name": "support", - "kind": 1024, - "kindString": "Property", + "id": 4024, + "name": "hasPassed", + "kind": 262144, + "kindString": "Accessor", "flags": { - "isStatic": true, "isExported": true }, + "comment": { + "shortText": "True if the test function completed successfully" + }, + "getSignature": [ + { + "id": 4025, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "True if the test function completed successfully" + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "name": "Test.hasPassed", + "id": 3632 + } + } + ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 27, - "character": 18 + "fileName": "src/core/lib/Test.ts", + "line": 75, + "character": 15 } ], - "type": { + "inheritedFrom": { "type": "reference", - "name": "Support" + "name": "Test.hasPassed", + "id": 3632 }, - "inheritedFrom": { + "implementationOf": { "type": "reference", - "name": "Benchmark.support" + "name": "TestProperties.hasPassed", + "id": 3672 } }, { - "id": 2193, - "name": "version", - "kind": 1024, - "kindString": "Property", + "id": 4026, + "name": "id", + "kind": 262144, + "kindString": "Accessor", "flags": { - "isStatic": true, "isExported": true }, + "comment": { + "shortText": "The unique identifier of the test, assuming all combinations of suite +\ntest are unique." + }, + "getSignature": [ + { + "id": 4027, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The unique identifier of the test, assuming all combinations of suite +\ntest are unique." + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "Test.id", + "id": 3634 + } + } + ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 28, - "character": 18 + "fileName": "src/core/lib/Test.ts", + "line": 83, + "character": 8 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.version" + "name": "Test.id", + "id": 3634 } }, { - "id": 2219, - "name": "abort", - "kind": 2048, - "kindString": "Method", + "id": 4028, + "name": "isAsync", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, - "signatures": [ + "comment": { + "shortText": "If true, this Test's test function is async" + }, + "getSignature": [ { - "id": 2220, - "name": "abort", - "kind": 4096, - "kindString": "Call signature", + "id": 4029, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, + "comment": { + "shortText": "If true, this Test's test function is async" + }, "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { "type": "reference", - "name": "Benchmark" + "name": "Test.isAsync", + "id": 3636 + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Test.ts", + "line": 97, + "character": 13 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Test.isAsync", + "id": 3636 + } + }, + { + "id": 4030, + "name": "parentId", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The unique identifier of the test's parent." + }, + "getSignature": [ + { + "id": 4031, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The unique identifier of the test's parent." + }, + "type": { + "type": "intrinsic", + "name": "string" }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.abort" + "name": "Test.parentId", + "id": 3638 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 49, - "character": 9 + "fileName": "src/core/lib/Test.ts", + "line": 104, + "character": 14 } ], "inheritedFrom": { "type": "reference", - "name": "Benchmark.abort" + "name": "Test.parentId", + "id": 3638 } }, { - "id": 2221, - "name": "clone", - "kind": 2048, - "kindString": "Method", + "id": 4032, + "name": "remote", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, - "signatures": [ + "comment": { + "shortText": "The WebDriver interface for driving a remote environment.", + "tags": [ + { + "tag": "see", + "text": "Suite#remote\n" + } + ] + }, + "getSignature": [ { - "id": 2222, - "name": "clone", - "kind": 4096, - "kindString": "Call signature", + "id": 4033, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, - "parameters": [ - { - "id": 2223, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Options" + "comment": { + "shortText": "The WebDriver interface for driving a remote environment.", + "tags": [ + { + "tag": "see", + "text": "Suite#remote\n" } - } - ], + ] + }, "type": { "type": "reference", - "name": "Benchmark" + "name": "Remote", + "id": 7301 }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.clone" + "name": "Test.remote", + "id": 3640 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 50, - "character": 9 + "fileName": "src/core/lib/Test.ts", + "line": 112, + "character": 12 } ], "inheritedFrom": { "type": "reference", - "name": "Benchmark.clone" + "name": "Test.remote", + "id": 3640 } }, { - "id": 2224, - "name": "compare", - "kind": 2048, - "kindString": "Method", + "id": 4034, + "name": "sessionId", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, - "signatures": [ + "comment": { + "shortText": "An identifier for the test session this Test is running in." + }, + "getSignature": [ { - "id": 2225, - "name": "compare", - "kind": 4096, - "kindString": "Call signature", + "id": 4035, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, - "parameters": [ - { - "id": 2226, - "name": "benchmark", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Benchmark" - } - } - ], + "comment": { + "shortText": "An identifier for the test session this Test is running in." + }, "type": { "type": "intrinsic", - "name": "number" + "name": "string" }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.compare" + "name": "Test.sessionId", + "id": 3642 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 51, - "character": 11 + "fileName": "src/core/lib/Test.ts", + "line": 120, + "character": 15 } ], "inheritedFrom": { "type": "reference", - "name": "Benchmark.compare" + "name": "Test.sessionId", + "id": 3642 } }, { - "id": 2227, - "name": "emit", - "kind": 2048, - "kindString": "Method", + "id": 3991, + "name": "timeElapsed", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, - "signatures": [ + "comment": { + "shortText": "The number of milliseconds the test function took to complete." + }, + "getSignature": [ { - "id": 2228, - "name": "emit", - "kind": 4096, - "kindString": "Call signature", + "id": 3992, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The number of milliseconds the test function took to complete." + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "name": "Test.timeElapsed", + "id": 3644 + } + } + ], + "setSignature": [ + { + "id": 3993, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", "flags": {}, + "comment": { + "shortText": "The number of milliseconds the test function took to complete." + }, "parameters": [ { - "id": 2229, - "name": "type", + "id": 3994, + "name": "_value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "name": "Object" - } - ] + "type": "intrinsic", + "name": "number" } } ], "type": { "type": "intrinsic", - "name": "any" + "name": "void" }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.emit" + "name": "Test.timeElapsed", + "id": 3644 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 52, - "character": 8 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 99, + "character": 17 + }, + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 106, + "character": 17 } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.emit" + "name": "Test.timeElapsed", + "id": 3644 } }, { - "id": 2230, - "name": "listeners", - "kind": 2048, - "kindString": "Method", + "id": 4036, + "name": "timeout", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, - "signatures": [ + "comment": { + "shortText": "The number of milliseconds this test can run before it will be canceled." + }, + "getSignature": [ { - "id": 2231, - "name": "listeners", - "kind": 4096, - "kindString": "Call signature", + "id": 4037, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The number of milliseconds this test can run before it will be canceled." + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "name": "Test.timeout", + "id": 3646 + } + } + ], + "setSignature": [ + { + "id": 4038, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", "flags": {}, + "comment": { + "shortText": "The number of milliseconds this test can run before it will be canceled." + }, "parameters": [ { - "id": 2232, - "name": "type", + "id": 4039, + "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", - "name": "string" + "name": "number" } } ], "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Function" - } + "type": "intrinsic", + "name": "void" }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.listeners" + "name": "Test.timeout", + "id": 3646 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 53, + "fileName": "src/core/lib/Test.ts", + "line": 134, + "character": 13 + }, + { + "fileName": "src/core/lib/Test.ts", + "line": 144, "character": 13 } ], "inheritedFrom": { "type": "reference", - "name": "Benchmark.listeners" + "name": "Test.timeout", + "id": 3646 + }, + "implementationOf": { + "type": "reference", + "name": "TestProperties.timeout", + "id": 3677 } }, { - "id": 2233, - "name": "off", + "id": 3995, + "name": "async", "kind": 2048, "kindString": "Method", "flags": { @@ -9794,15 +11614,15 @@ }, "signatures": [ { - "id": 2234, - "name": "off", + "id": 3996, + "name": "async", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 2235, - "name": "type", + "id": 3997, + "name": "_timeout", "kind": 32768, "kindString": "Parameter", "flags": { @@ -9817,86 +11637,68 @@ }, { "type": "intrinsic", - "name": "string" + "name": "number" } ] } }, { - "id": 2236, - "name": "listener", + "id": 3998, + "name": "_numCallsUntilResolution", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { - "type": "reference", - "name": "Function" + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] } } ], "type": { "type": "reference", - "name": "Benchmark" + "name": "Deferred", + "id": 3453, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.off" - } - }, - { - "id": 2237, - "name": "off", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2238, - "name": "types", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "reference", - "name": "Benchmark" - }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.off" + "name": "Test.async", + "id": 3650 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 54, - "character": 7 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 55, + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 110, "character": 7 } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.off" + "name": "Test.async", + "id": 3650 } }, { - "id": 2239, - "name": "on", + "id": 4040, + "name": "restartTimeout", "kind": 2048, "kindString": "Method", "flags": { @@ -9904,15 +11706,18 @@ }, "signatures": [ { - "id": 2240, - "name": "on", + "id": 4041, + "name": "restartTimeout", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "During an asynchronous test run, restarts the timeout timer." + }, "parameters": [ { - "id": 2241, - "name": "type", + "id": 4042, + "name": "timeout", "kind": 32768, "kindString": "Parameter", "flags": { @@ -9927,86 +11732,39 @@ }, { "type": "intrinsic", - "name": "string" + "name": "number" } ] } - }, - { - "id": 2242, - "name": "listener", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "reference", - "name": "Benchmark" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.on" - } - }, - { - "id": 2243, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2244, - "name": "types", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } } ], "type": { - "type": "reference", - "name": "Benchmark" + "type": "intrinsic", + "name": "void" }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.on" + "name": "Test.restartTimeout", + "id": 3654 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 56, - "character": 6 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 57, - "character": 6 + "fileName": "src/core/lib/Test.ts", + "line": 207, + "character": 16 } ], "inheritedFrom": { "type": "reference", - "name": "Benchmark.on" + "name": "Test.restartTimeout", + "id": 3654 } }, { - "id": 2245, - "name": "reset", + "id": 3999, + "name": "run", "kind": 2048, "kindString": "Method", "flags": { @@ -10014,36 +11772,45 @@ }, "signatures": [ { - "id": 2246, - "name": "reset", + "id": 4000, + "name": "run", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", - "name": "Benchmark" + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.reset" + "name": "Test.run", + "id": 3657 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 58, - "character": 9 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 117, + "character": 5 } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.reset" + "name": "Test.run", + "id": 3657 } }, { - "id": 2247, - "name": "run", + "id": 4043, + "name": "skip", "kind": 2048, "kindString": "Method", "flags": { @@ -10051,148 +11818,130 @@ }, "signatures": [ { - "id": 2248, - "name": "run", + "id": 4044, + "name": "skip", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Skips this test.", + "text": "Calling this function will cause a test to halt immediately. If a message\nwas provided, a reporter may report the test as skipped. Skipped tests\nare not treated as passing or failing.\n" + }, "parameters": [ { - "id": 2249, - "name": "options", + "id": 4045, + "name": "message", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true + "flags": {}, + "comment": { + "text": "If provided, will be stored in this test's `skipped`\nproperty.\n" }, "type": { - "type": "reference", - "name": "Benchmark.Options" - } + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"skipped\"" } ], - "type": { - "type": "reference", - "name": "Benchmark" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.run" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 59, - "character": 7 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.run" - } - }, - { - "id": 2250, - "name": "toString", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 2251, - "name": "toString", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, "type": { "type": "intrinsic", - "name": "string" + "name": "void" }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.toString" + "name": "Test.skip", + "id": 3659 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 60, - "character": 12 + "fileName": "src/core/lib/Test.ts", + "line": 392, + "character": 6 } ], "inheritedFrom": { "type": "reference", - "name": "Benchmark.toString" + "name": "Test.skip", + "id": 3659 } }, { - "id": 2095, - "name": "deepClone", + "id": 4001, + "name": "toJSON", "kind": 2048, "kindString": "Method", "flags": { - "isStatic": true, "isExported": true }, "signatures": [ { - "id": 2096, - "name": "deepClone", + "id": 4002, + "name": "toJSON", "kind": 4096, "kindString": "Call signature", "flags": {}, - "typeParameter": [ - { - "id": 2097, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2098, - "name": "value", - "kind": 32768, - "kindString": "Parameter", + "type": { + "type": "reflection", + "declaration": { + "id": 4003, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } + "indexSignature": [ + { + "id": 4004, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 4005, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] } - ], - "type": { - "type": "typeParameter", - "name": "T" }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.deepClone" + "name": "Test.toJSON", + "id": 3662 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 8, - "character": 20 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 165, + "character": 8 } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "name": "Benchmark.deepClone" + "name": "Test.toJSON", + "id": 3662 } }, { - "id": 2099, - "name": "each", + "id": 4006, + "name": "async", "kind": 2048, "kindString": "Method", "flags": { @@ -10201,1627 +11950,1110 @@ }, "signatures": [ { - "id": 2100, - "name": "each", + "id": 4007, + "name": "async", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 2101, - "name": "obj", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Object" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - }, - { - "id": 2102, - "name": "callback", + "id": 4008, + "name": "testFunction", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Function" + "name": "BenchmarkDeferredTestFunction", + "id": 4053 } }, { - "id": 2103, - "name": "thisArg", + "id": 4009, + "name": "numCallsUntilResolution", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { - "type": "intrinsic", - "name": "any" + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] } } ], "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { "type": "reference", - "name": "Benchmark.each" + "name": "BenchmarkTestFunction", + "id": 4046 } } ], "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 9, - "character": 15 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 178, + "character": 14 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.each" - } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 3988 + ] }, { - "id": 2104, - "name": "extend", + "title": "Properties", + "kind": 1024, + "children": [ + 4015, + 4016, + 4018, + 4019, + 4017, + 4020, + 4021, + 3987, + 4013, + 4010, + 4011, + 4012, + 4014, + 3986 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 4022, + 4024, + 4026, + 4028, + 4030, + 4032, + 4034, + 3991, + 4036 + ] + }, + { + "title": "Methods", "kind": 2048, - "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, - "signatures": [ + "children": [ + 3995, + 4040, + 3999, + 4043, + 4001, + 4006 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 26, + "character": 34 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "Test", + "id": 3610 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "TestProperties", + "id": 3671 + } + ] + }, + { + "id": 4053, + "name": "BenchmarkDeferredTestFunction", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4054, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "id": 2105, - "name": "extend", - "kind": 4096, - "kindString": "Call signature", + "id": 4055, + "name": "this", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "parameters": [ - { - "id": 2106, - "name": "destination", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Object" - } - }, - { - "id": 2107, - "name": "sources", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Object" - } - } - } - ], "type": { "type": "reference", - "name": "Object" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.extend" + "name": "BenchmarkTest", + "id": 3985 } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 10, - "character": 17 + "id": 4056, + "name": "deferred", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Deferred", + "id": 3453, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + } } ], - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.extend" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + ] } }, { - "id": 2108, - "name": "filter", - "kind": 2048, - "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, - "signatures": [ + "id": 4058, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ { - "id": 2109, - "name": "filter", - "kind": 4096, - "kindString": "Call signature", + "id": 4059, + "name": "this", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "typeParameter": [ - { - "id": 2110, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2111, - "name": "arr", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - } - }, - { - "id": 2112, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 2113, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 2114, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2115, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 11, - "character": 40 - } - ] - } - } - }, - { - "id": 2116, - "name": "thisArg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { + "type": { + "type": "reference", + "name": "BenchmarkTest", + "id": 3985 + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { "type": "intrinsic", "name": "any" } - } - ], + ] + } + ] + } + }, + { + "id": 4060, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4061, + "name": "this", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - }, - "inheritedFrom": { "type": "reference", - "name": "Benchmark.filter" + "name": "Test", + "id": 3610 } }, { - "id": 2117, - "name": "filter", - "kind": 4096, - "kindString": "Call signature", + "id": 4062, + "name": "test", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "typeParameter": [ - { - "id": 2118, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2119, - "name": "arr", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - } - }, - { - "id": 2120, - "name": "filter", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2121, - "name": "thisArg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - }, - "inheritedFrom": { "type": "reference", - "name": "Benchmark.filter" + "name": "Test", + "id": 3610 } } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + ] + } + } + ], + "children": [ + { + "id": 4057, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 11, - "character": 17 - }, - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 12, - "character": 17 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 198, + "character": 9 } ], - "inheritedFrom": { + "type": { "type": "reference", - "name": "Benchmark.filter" + "name": "BenchmarkOptions", + "id": 4072 + }, + "overwrites": { + "type": "reference", + "name": "BenchmarkTestFunction.options", + "id": 4049 } - }, + } + ], + "groups": [ { - "id": 2122, - "name": "forEach", - "kind": 2048, - "kindString": "Method", + "title": "Properties", + "kind": 1024, + "children": [ + 4057 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 196, + "character": 46 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "BenchmarkTestFunction", + "id": 4046 + } + ] + }, + { + "id": 4072, + "name": "BenchmarkOptions", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 4075, + "name": "async", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 2123, - "name": "forEach", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 2124, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2125, - "name": "arr", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - } - }, - { - "id": 2126, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 2127, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 2128, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2129, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 13, - "character": 41 - } - ] - } - } - }, - { - "id": 2130, - "name": "thisArg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.forEach" - } - } - ], "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 13, - "character": 18 + "line": 65, + "character": 13 } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.forEach" + "name": "Options.async" } }, { - "id": 2134, - "name": "forOwn", - "kind": 2048, - "kindString": "Method", + "id": 4076, + "name": "defer", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 2135, - "name": "forOwn", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2136, - "name": "obj", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Object" - } - }, - { - "id": 2137, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 2138, - "name": "thisArg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 66, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "intrinsic", - "name": "void" + "name": "undefined" }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.forOwn" + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" } - } - ], + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.defer" + } + }, + { + "id": 4077, + "name": "delay", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 15, - "character": 17 + "line": 67, + "character": 13 } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.forOwn" + "name": "Options.delay" } }, { - "id": 2131, - "name": "formatNumber", - "kind": 2048, - "kindString": "Method", + "id": 4092, + "name": "fn", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 2132, - "name": "formatNumber", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2133, - "name": "num", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.formatNumber" - } - } - ], "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 14, - "character": 23 + "line": 82, + "character": 10 } ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.formatNumber" + "name": "Options.fn" } }, { - "id": 2139, - "name": "hasKey", - "kind": 2048, - "kindString": "Method", + "id": 4078, + "name": "id", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 2140, - "name": "hasKey", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2141, - "name": "obj", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Object" - } - }, - { - "id": 2142, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 68, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "intrinsic", - "name": "boolean" + "name": "undefined" }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.hasKey" + { + "type": "intrinsic", + "name": "string" } - } - ], + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.id" + } + }, + { + "id": 4079, + "name": "initCount", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 16, + "line": 69, "character": 17 } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.hasKey" + "name": "Options.initCount" } }, { - "id": 2143, - "name": "indexOf", - "kind": 2048, - "kindString": "Method", + "id": 4080, + "name": "maxTime", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 2144, - "name": "indexOf", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 2145, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2146, - "name": "arr", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - } - }, - { - "id": 2147, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } - }, - { - "id": 2148, - "name": "fromIndex", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "type": { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 70, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "intrinsic", - "name": "number" + "name": "undefined" }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.indexOf" + { + "type": "intrinsic", + "name": "number" } - } - ], + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.maxTime" + } + }, + { + "id": 4081, + "name": "minSamples", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 17, + "line": 71, "character": 18 } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.indexOf" + "name": "Options.minSamples" } }, { - "id": 2149, - "name": "interpolate", - "kind": 2048, - "kindString": "Method", + "id": 4082, + "name": "minTime", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 2150, - "name": "interpolate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2151, - "name": "template", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2152, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Object" - } - } - ], - "type": { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 72, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "intrinsic", - "name": "string" + "name": "undefined" }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.interpolate" + { + "type": "intrinsic", + "name": "number" } - } - ], + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.minTime" + } + }, + { + "id": 4083, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 18, - "character": 22 + "line": 73, + "character": 12 } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.interpolate" + "name": "Options.name" } }, { - "id": 2153, - "name": "invoke", - "kind": 2048, - "kindString": "Method", + "id": 4074, + "name": "numCallsUntilResolution", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 2154, - "name": "invoke", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2155, - "name": "benches", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Benchmark" - } - } - }, - { - "id": 2156, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "name": "Object" - } - ] - } - }, - { - "id": 2157, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 215, + "character": 25 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.invoke" + { + "type": "intrinsic", + "name": "number" } + ] + } + }, + { + "id": 4084, + "name": "onAbort", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 74, + "character": 15 } ], + "type": { + "type": "reference", + "name": "Function" + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.onAbort" + } + }, + { + "id": 4085, + "name": "onComplete", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 19, - "character": 17 + "line": 75, + "character": 18 } ], + "type": { + "type": "reference", + "name": "Function" + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.invoke" + "name": "Options.onComplete" } }, { - "id": 2158, - "name": "join", - "kind": 2048, - "kindString": "Method", + "id": 4086, + "name": "onCycle", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 2159, - "name": "join", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2160, - "name": "obj", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Object" - } - }, - { - "id": 2161, - "name": "separator1", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 2162, - "name": "separator2", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.join" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 76, + "character": 15 } ], + "type": { + "type": "reference", + "name": "Function" + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.onCycle" + } + }, + { + "id": 4087, + "name": "onError", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 20, + "line": 77, "character": 15 } ], + "type": { + "type": "reference", + "name": "Function" + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.join" + "name": "Options.onError" } }, { - "id": 2163, - "name": "map", - "kind": 2048, - "kindString": "Method", + "id": 4088, + "name": "onReset", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 2164, - "name": "map", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 2165, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - }, - { - "id": 2166, - "name": "K", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2167, - "name": "arr", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - } - }, - { - "id": 2168, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 2169, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 2170, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2171, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } - } - ], - "type": { - "type": "typeParameter", - "name": "K" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 21, - "character": 40 - } - ] - } - } - }, - { - "id": 2172, - "name": "thisArg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "K" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.map" - } - } - ], "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 21, - "character": 14 + "line": 78, + "character": 15 } ], + "type": { + "type": "reference", + "name": "Function" + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.map" + "name": "Options.onReset" } }, { - "id": 2173, - "name": "pluck", - "kind": 2048, - "kindString": "Method", + "id": 4089, + "name": "onStart", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 2174, - "name": "pluck", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 2175, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - }, - { - "id": 2176, - "name": "K", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2177, - "name": "arr", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - } - }, - { - "id": 2178, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "K" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.pluck" - } - } - ], "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 22, - "character": 16 + "line": 79, + "character": 15 } ], + "type": { + "type": "reference", + "name": "Function" + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.pluck" + "name": "Options.onStart" } }, { - "id": 2179, - "name": "reduce", - "kind": 2048, - "kindString": "Method", + "id": 4093, + "name": "queued", + "kind": 1024, + "kindString": "Property", "flags": { - "isStatic": true, - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 2180, - "name": "reduce", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 2181, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - }, - { - "id": 2182, - "name": "K", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 2183, - "name": "arr", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "typeParameter", - "name": "T" - } - } - }, - { - "id": 2184, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 2185, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 2186, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2187, - "name": "accumulator", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "K" - } - }, - { - "id": 2188, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } - } - ], - "type": { - "type": "typeParameter", - "name": "K" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 23, - "character": 43 - } - ] - } - } - }, - { - "id": 2189, - "name": "thisArg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "typeParameter", - "name": "K" - }, - "inheritedFrom": { - "type": "reference", - "name": "Benchmark.reduce" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 83, + "character": 14 } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.queued" + } + }, + { + "id": 4090, + "name": "setup", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "node_modules/@types/benchmark/index.d.ts", - "line": 23, - "character": 17 + "line": 80, + "character": 13 } ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, "inheritedFrom": { "type": "reference", - "name": "Benchmark.reduce" + "name": "Options.setup" } - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 2309, - 2317, - 2328 - ] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [ - 2252, - 2272, - 2296, - 2283, - 2304 - ] - }, - { - "title": "Constructors", - "kind": 512, - "children": [ - 2194 - ] }, { - "title": "Properties", + "id": 4073, + "name": "skip", "kind": 1024, - "children": [ - 2207, - 2208, - 2209, - 2210, - 2211, - 2212, - 2213, - 2094, - 2214, - 2215, - 2217, - 2216, - 2218, - 2190, - 2191, - 2192, - 2193 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 2219, - 2221, - 2224, - 2227, - 2230, - 2233, - 2239, - 2245, - 2247, - 2250, - 2095, - 2099, - 2104, - 2108, - 2122, - 2134, - 2131, - 2139, - 2143, - 2149, - 2153, - 2158, - 2163, - 2173, - 2179 - ] - } - ], - "sources": [ + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 214, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { - "fileName": "lib/BenchmarkTest.ts", - "line": 219, - "character": 32 + "id": 4091, + "name": "teardown", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 81, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Options.teardown" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 4075, + 4076, + 4077, + 4092, + 4078, + 4079, + 4080, + 4081, + 4082, + 4083, + 4074, + 4084, + 4085, + 4086, + 4087, + 4088, + 4089, + 4093, + 4090, + 4073, + 4091 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 213, + "character": 33 } ], "extendedTypes": [ { "type": "reference", - "name": "Benchmark" + "name": "Options" } ] }, { - "id": 2427, - "name": "BenchmarkTestOptions", - "kind": 4194304, - "kindString": "Type alias", + "id": 4046, + "name": "BenchmarkTestFunction", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "lib/BenchmarkTest.ts", - "line": 208, - "character": 32 - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "name": "Partial", - "typeArguments": [ - { - "type": "reference", - "name": "BenchmarkTestProperties", - "id": 2062 - } - ] - }, - { - "type": "reflection", - "declaration": { - "id": 2428, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 2429, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/BenchmarkTest.ts", - "line": 209, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 2431, - "name": "options", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/BenchmarkTest.ts", - "line": 211, - "character": 9 - } - ], - "type": { - "type": "reference", - "name": "BenchmarkOptions", - "id": 2071 - } - }, - { - "id": 2430, - "name": "test", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/BenchmarkTest.ts", - "line": 210, - "character": 6 - } - ], - "type": { - "type": "reference", - "name": "BenchmarkTestFunction", - "id": 2045 - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 2429, - 2431, - 2430 - ] - } - ], - "sources": [ - { - "fileName": "lib/BenchmarkTest.ts", - "line": 208, - "character": 69 - } - ] - } - } - ] - } - }, - { - "id": 2438, - "name": "createDeferred", - "kind": 64, - "kindString": "Function", - "flags": {}, "signatures": [ { - "id": 2439, - "name": "createDeferred", + "id": 4047, + "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 2440, - "name": "benchmark", + "id": 4048, + "name": "this", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Benchmark" + "name": "BenchmarkTest", + "id": 3985 } - }, - { - "id": 2441, - "name": "deferred", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { "type": "reference", - "name": "Deferred", - "id": 3, + "name": "Promise", "typeArguments": [ { "type": "intrinsic", @@ -11829,246 +13061,154 @@ } ] } + ] + } + }, + { + "id": 4050, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4051, + "name": "this", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Test", + "id": 3610 + } }, { - "id": 2442, - "name": "numCallsUntilResolution", + "id": 4052, + "name": "test", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "reference", + "name": "Test", + "id": 3610 } } ], "type": { - "type": "reference", - "name": "Deferred", - "id": 3, - "typeArguments": [ + "type": "union", + "types": [ { "type": "intrinsic", "name": "void" + }, + { + "type": "reference", + "name": "PromiseLike", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] } ] } } ], - "sources": [ - { - "fileName": "lib/BenchmarkTest.ts", - "line": 252, - "character": 23 - } - ] - }, - { - "id": 2435, - "name": "createLifecycle", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ + "children": [ { - "id": 2436, - "name": "createLifecycle", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4049, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 2437, - "name": "before", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "boolean" - } + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 193, + "character": 9 } ], "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "BenchmarkOptions", + "id": 4072 } } ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 4049 + ] + } + ], "sources": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 227, - "character": 21 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 191, + "character": 38 } - ] - }, - { - "id": 2432, - "name": "isBenchmarkTest", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ + ], + "extendedTypes": [ { - "id": 2433, - "name": "isBenchmarkTest", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 2434, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } + "type": "reference", + "name": "TestFunction", + "id": 3667 } ], - "sources": [ + "extendedBy": [ { - "fileName": "lib/BenchmarkTest.ts", - "line": 223, - "character": 31 + "type": "reference", + "name": "BenchmarkDeferredTestFunction", + "id": 4053 } ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 1984 - ] }, { - "title": "Interfaces", + "id": 4063, + "name": "BenchmarkTestProperties", "kind": 256, - "children": [ - 2052, - 2071, - 2045, - 2062, - 2093 - ] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [ - 2427 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [ - 2438, - 2435, - 2432 - ] - } - ], - "sources": [ - { - "fileName": "lib/BenchmarkTest.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 4445, - "name": "\"lib/Channel\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/Channel.ts", - "children": [ - { - "id": 4446, - "name": "Channel", - "kind": 128, - "kindString": "Class", + "kindString": "Interface", "flags": { "isExported": true }, "children": [ { - "id": 4448, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 4067, + "name": "hasPassed", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ - { - "id": 4449, - "name": "new Channel", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 4450, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "ChannelOptions", - "id": 1200 - } - } - ], - "type": { - "type": "reference", - "name": "Channel", - "id": 4446 - } - } - ], "sources": [ { - "fileName": "lib/Channel.ts", - "line": 12, - "character": 39 + "fileName": "src/core/lib/Test.ts", + "line": 458, + "character": 11 } - ] + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "name": "TestProperties.hasPassed", + "id": 3672 + } }, { - "id": 4447, - "name": "options", + "id": 4068, + "name": "name", "kind": 1024, "kindString": "Property", "flags": { @@ -12076,228 +13216,124 @@ }, "sources": [ { - "fileName": "lib/Channel.ts", - "line": 9, - "character": 18 + "fileName": "src/core/lib/Test.ts", + "line": 459, + "character": 6 } ], "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { "type": "reference", - "name": "ChannelOptions", - "id": 1200 + "name": "TestProperties.name", + "id": 3673 } }, { - "id": 4455, - "name": "_initialize", - "kind": 2048, - "kindString": "Method", + "id": 4066, + "name": "numCallsUntilResolution", + "kind": 1024, + "kindString": "Property", "flags": { - "isProtected": true, "isExported": true }, - "signatures": [ + "sources": [ { - "id": 4456, - "name": "_initialize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - } + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 204, + "character": 25 } ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4069, + "name": "parent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { - "fileName": "lib/Channel.ts", - "line": 24, - "character": 23 + "fileName": "src/core/lib/Test.ts", + "line": 460, + "character": 8 } - ] + ], + "type": { + "type": "reference", + "name": "Suite", + "id": 3693 + }, + "inheritedFrom": { + "type": "reference", + "name": "TestProperties.parent", + "id": 3674 + } }, { - "id": 4451, - "name": "sendMessage", - "kind": 2048, - "kindString": "Method", + "id": 4065, + "name": "skip", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ + "sources": [ { - "id": 4452, - "name": "sendMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 4453, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "name": "RemoteEvents" - } - } - }, - { - "id": 4454, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 203, + "character": 6 } ], - "sources": [ - { - "fileName": "lib/Channel.ts", - "line": 18, - "character": 13 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 4448 - ] + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "title": "Properties", + "id": 4070, + "name": "skipped", "kind": 1024, - "children": [ - 4447 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 4455, - 4451 - ] - } - ], - "sources": [ - { - "fileName": "lib/Channel.ts", - "line": 8, - "character": 28 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 4446 - ] - } - ], - "sources": [ - { - "fileName": "lib/Channel.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 2, - "name": "\"lib/Deferred\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/Deferred.ts", - "children": [ - { - "id": 3, - "name": "Deferred", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "typeParameter": [ - { - "id": 4, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "children": [ - { - "id": 6, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ - { - "id": 7, - "name": "new Deferred", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Deferred", - "id": 3 - } - } - ], "sources": [ { - "fileName": "lib/Deferred.ts", - "line": 4, - "character": 31 + "fileName": "src/core/lib/Test.ts", + "line": 461, + "character": 9 } - ] + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "TestProperties.skipped", + "id": 3675 + } }, { - "id": 5, - "name": "promise", + "id": 4064, + "name": "test", "kind": 1024, "kindString": "Property", "flags": { @@ -12305,1852 +13341,1181 @@ }, "sources": [ { - "fileName": "lib/Deferred.ts", - "line": 4, - "character": 18 + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 202, + "character": 6 } ], "type": { "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] + "name": "BenchmarkTestFunction", + "id": 4046 + }, + "overwrites": { + "type": "reference", + "name": "TestProperties.test", + "id": 3676 } }, { - "id": 20, - "name": "_finalize", - "kind": 2048, - "kindString": "Method", + "id": 4071, + "name": "timeout", + "kind": 1024, + "kindString": "Property", "flags": { - "isProtected": true, "isExported": true }, - "signatures": [ - { - "id": 21, - "name": "_finalize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], "sources": [ { - "fileName": "lib/Deferred.ts", - "line": 49, - "character": 21 + "fileName": "src/core/lib/Test.ts", + "line": 463, + "character": 9 } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "name": "TestProperties.timeout", + "id": 3677 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 4067, + 4068, + 4066, + 4069, + 4065, + 4070, + 4064, + 4071 ] - }, + } + ], + "sources": [ { - "id": 8, - "name": "callback", - "kind": 2048, - "kindString": "Method", + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 201, + "character": 40 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "TestProperties", + "id": 3671 + } + ] + }, + { + "id": 4094, + "name": "InternBenchmark", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 4310, + "name": "Deferred", + "kind": 128, + "kindString": "Class", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 9, - "name": "callback", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Wraps any callback to resolve the deferred so long as the callback\nexecutes without throwing any Errors." + "id": 4311, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 10, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", + "id": 4312, + "name": "new Deferred", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 4313, + "name": "clone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Benchmark" + } + } + ], "type": { "type": "reference", - "name": "Function" + "name": "Deferred", + "id": 4310 } } ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 130, + "character": 27 + } + ] + }, + { + "id": 4314, + "name": "benchmark", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 133, + "character": 17 + } + ], "type": { - "type": "intrinsic", - "name": "any" + "type": "reference", + "name": "Benchmark" } - } - ], - "sources": [ - { - "fileName": "lib/Deferred.ts", - "line": 18, - "character": 10 - } - ] - }, - { - "id": 17, - "name": "reject", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 18, - "name": "reject", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4315, + "name": "cycles", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 19, - "name": "error", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Error" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 134, + "character": 14 } ], "type": { "type": "intrinsic", - "name": "void" + "name": "number" } - } - ], - "sources": [ + }, { - "fileName": "lib/Deferred.ts", - "line": 45, - "character": 8 - } - ] - }, - { - "id": 11, - "name": "rejectOnError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4316, + "name": "elapsed", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 135, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "id": 12, - "name": "rejectOnError", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Wraps a callback to reject the deferred if the callback throws an Error." + "id": 4317, + "name": "timeStamp", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "parameters": [ + "sources": [ { - "id": 13, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 136, + "character": 17 } ], "type": { "type": "intrinsic", - "name": "any" + "name": "number" } } ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 4311 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 4314, + 4315, + 4316, + 4317 + ] + } + ], "sources": [ { - "fileName": "lib/Deferred.ts", - "line": 30, - "character": 15 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 130, + "character": 25 } ] }, { - "id": 14, - "name": "resolve", - "kind": 2048, - "kindString": "Method", + "id": 4318, + "name": "Event", + "kind": 128, + "kindString": "Class", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 15, - "name": "resolve", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4319, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 16, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "id": 4320, + "name": "new Event", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 4321, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "Object" + } + ] + } + } + ], "type": { "type": "reference", - "name": "T", - "id": 4 + "name": "Event", + "id": 4318 } } ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 139, + "character": 24 + } + ] + }, { - "fileName": "lib/Deferred.ts", - "line": 41, - "character": 9 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 6 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 5 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 20, - 8, - 17, - 11, - 14 - ] - } - ], - "sources": [ - { - "fileName": "lib/Deferred.ts", - "line": 1, - "character": 29 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 3 - ] - } - ], - "sources": [ - { - "fileName": "lib/Deferred.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 529, - "name": "\"lib/Environment\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/Environment.ts", - "children": [ - { - "id": 530, - "name": "Environment", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 539, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 540, - "name": "new Environment", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ + "id": 4322, + "name": "aborted", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 541, - "name": "kwArgs", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 542, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": [ - { - "id": 543, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 544, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/Environment.ts", - "line": 11, - "character": 21 - } - ] - } - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 142, + "character": 15 } ], "type": { - "type": "reference", - "name": "Environment", - "id": 530 - } - } - ], - "sources": [ - { - "fileName": "lib/Environment.ts", - "line": 9, - "character": 18 - } - ] - }, - { - "id": 531, - "name": "browser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/Environment.ts", - "line": 2, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { "type": "intrinsic", - "name": "string" + "name": "boolean" } - ] - } - }, - { - "id": 532, - "name": "browserName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "lib/Environment.ts", - "line": 3, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 4323, + "name": "cancelled", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 143, + "character": 17 + } + ], + "type": { "type": "intrinsic", - "name": "string" + "name": "boolean" } - ] - } - }, - { - "id": 533, - "name": "browserVersion", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "lib/Environment.ts", - "line": 4, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 4324, + "name": "currentTarget", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { - "type": "intrinsic", - "name": "string" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 144, + "character": 21 + } + ], + "type": { + "type": "reference", + "name": "Object" } - ] - } - }, - { - "id": 538, - "name": "device", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "lib/Environment.ts", - "line": 9, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 4325, + "name": "result", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 145, + "character": 14 + } + ], + "type": { "type": "intrinsic", - "name": "string" + "name": "any" } - ] - } - }, - { - "id": 535, - "name": "platform", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "lib/Environment.ts", - "line": 6, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 4326, + "name": "target", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { - "type": "intrinsic", - "name": "string" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 146, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Object" } - ] - } - }, - { - "id": 536, - "name": "platformName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "lib/Environment.ts", - "line": 7, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 4327, + "name": "timeStamp", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 147, + "character": 17 + } + ], + "type": { "type": "intrinsic", - "name": "string" + "name": "number" } - ] - } - }, - { - "id": 537, - "name": "platformVersion", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "lib/Environment.ts", - "line": 8, - "character": 17 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 4328, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 148, + "character": 12 + } + ], + "type": { "type": "intrinsic", "name": "string" } - ] - } - }, - { - "id": 534, - "name": "version", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/Environment.ts", - "line": 5, - "character": 9 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 545, - "name": "toString", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "groups": [ { - "id": 546, - "name": "toString", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "title": "Constructors", + "kind": 512, + "children": [ + 4319 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 4322, + 4323, + 4324, + 4325, + 4326, + 4327, + 4328 + ] } ], "sources": [ { - "fileName": "lib/Environment.ts", - "line": 18, - "character": 10 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 139, + "character": 22 } ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 539 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 531, - 532, - 533, - 538, - 535, - 536, - 537, - 534 - ] }, { - "title": "Methods", - "kind": 2048, + "id": 4329, + "name": "Suite", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, "children": [ - 545 - ] - } - ], - "sources": [ - { - "fileName": "lib/Environment.ts", - "line": 1, - "character": 32 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 530 - ] - } - ], - "sources": [ - { - "fileName": "lib/Environment.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 125, - "name": "\"lib/ProxiedSession\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/ProxiedSession.ts", - "children": [ - { - "id": 126, - "name": "ProxiedSession", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A ProxiedSession object represents a WebDriver session that interacts with\nthe Intern instrumenting server. It collects code instrumentation data from\npages and converts local filesystem paths into URLs for use with\n`leadfoot/Session#get`." - }, - "children": [ - { - "id": 142, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ { - "id": 143, - "name": "new ProxiedSession", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 144, - "name": "sessionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, + "id": 4333, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 145, - "name": "server", - "kind": 32768, - "kindString": "Parameter", + "id": 4334, + "name": "new Suite", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 4335, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4336, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Options", + "id": 4253 + } + } + ], "type": { "type": "reference", - "name": "Server" + "name": "Suite", + "id": 4329 } - }, + } + ], + "sources": [ { - "id": 146, - "name": "capabilities", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Capabilities" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 152, + "character": 41 + } + ] + }, + { + "id": 4337, + "name": "aborted", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 156, + "character": 15 } ], "type": { - "type": "reference", - "name": "ProxiedSession", - "id": 126 - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.__constructor" + "type": "intrinsic", + "name": "boolean" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 16, - "character": 25 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.__constructor" - } - }, - { - "id": 127, - "name": "baseUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The base URL for relative URLs." - }, - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 24, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"\"" - }, - { - "id": 147, - "name": "capabilities", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 18, - "character": 25 - } - ], - "type": { - "type": "reference", - "name": "Capabilities" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.capabilities" - } - }, - { - "id": 128, - "name": "coverageVariable", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The name of the global variable used to store coverage data." - }, - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 29, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"\"" - }, - { - "id": 129, - "name": "executor", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The Executor hosting this session." - }, - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 34, - "character": 10 - } - ], - "type": { - "type": "reference", - "name": "Node", - "id": 2600 - } - }, - { - "id": 149, - "name": "server", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 20, - "character": 19 - } - ], - "type": { - "type": "reference", - "name": "Server" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.server" - } - }, - { - "id": 148, - "name": "sessionId", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 19, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.sessionId" - } - }, - { - "id": 130, - "name": "coverageEnabled", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "getSignature": [ + }, { - "id": 131, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, + "id": 4338, + "name": "length", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 157, + "character": 14 + } + ], "type": { "type": "intrinsic", - "name": "boolean" + "name": "number" } - } - ], - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 38, - "character": 21 - } - ] - }, - { - "id": 140, - "name": "_getCoverage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ + }, { - "id": 141, - "name": "_getCoverage", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4339, + "name": "running", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 158, + "character": 15 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "boolean" } - } - ], - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 128, - "character": 24 - } - ] - }, - { - "id": 303, - "name": "acceptAlert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 304, - "name": "acceptAlert", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "id": 4330, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isStatic": true, + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.acceptAlert" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 152, + "character": 22 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 4331, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 4332, + "name": "name", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 152, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 4332 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 152, + "character": 23 + } + ] + } } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 85, - "character": 15 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.acceptAlert" - } - }, - { - "id": 207, - "name": "activateIme", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 208, - "name": "activateIme", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4340, + "name": "abort", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 209, - "name": "engine", - "kind": 32768, - "kindString": "Parameter", + "id": 4341, + "name": "abort", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.activateIme" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 41, - "character": 15 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.activateIme" - } - }, - { - "id": 271, - "name": "clearCookies", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 272, - "name": "clearCookies", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.clearCookies" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 73, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.clearCookies" - } - }, - { - "id": 384, - "name": "clearLocalStorage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 159, + "character": 13 + } + ] + }, { - "id": 385, - "name": "clearLocalStorage", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "id": 4342, + "name": "add", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.clearLocalStorage" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 112, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.clearLocalStorage" - } - }, - { - "id": 400, - "name": "clearSessionStorage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 401, - "name": "clearSessionStorage", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" + "signatures": [ + { + "id": 4343, + "name": "add", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4344, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4345, + "name": "fn", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4346, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Options", + "id": 4253 + } + } + ], + "type": { + "type": "reference", + "name": "Suite" } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.clearSessionStorage" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 118, - "character": 23 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.clearSessionStorage" - } - }, - { - "id": 316, - "name": "clickMouseButton", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 317, - "name": "clickMouseButton", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + }, { - "id": 318, - "name": "button", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "id": 4347, + "name": "add", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4348, + "name": "fn", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4349, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Options", + "id": 4253 + } + } + ], "type": { - "type": "union", - "types": [ - { + "type": "reference", + "name": "Suite" + } + }, + { + "id": 4350, + "name": "add", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4351, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { "type": "intrinsic", - "name": "undefined" + "name": "string" + } + }, + { + "id": 4352, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true }, - { - "type": "intrinsic", - "name": "number" + "type": { + "type": "reference", + "name": "Options", + "id": 4253 } - ] + } + ], + "type": { + "type": "reference", + "name": "Suite" + } + }, + { + "id": 4353, + "name": "add", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4354, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Options" + } + } + ], + "type": { + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.clickMouseButton" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 90, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.clickMouseButton" - } - }, - { - "id": 218, - "name": "closeCurrentWindow", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 219, - "name": "closeCurrentWindow", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.closeCurrentWindow" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 45, - "character": 22 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.closeCurrentWindow" - } - }, - { - "id": 205, - "name": "deactivateIme", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 160, + "character": 11 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 161, + "character": 11 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 162, + "character": 11 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 163, + "character": 11 + } + ] + }, { - "id": 206, - "name": "deactivateIme", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "id": 4355, + "name": "clone", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.deactivateIme" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 40, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.deactivateIme" - } - }, - { - "id": 273, - "name": "deleteCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 274, - "name": "deleteCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "signatures": [ { - "id": 275, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 4356, + "name": "clone", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4357, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Options" + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.deleteCookie" - } - } - ], - "sources": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 164, + "character": 13 + } + ] + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 74, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.deleteCookie" - } - }, - { - "id": 389, - "name": "deleteLocalStorageItem", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 390, - "name": "deleteLocalStorageItem", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4358, + "name": "emit", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 391, - "name": "key", - "kind": 32768, - "kindString": "Parameter", + "id": 4359, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4360, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "Object" + } + ] + } + } + ], "type": { "type": "intrinsic", - "name": "string" + "name": "any" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.deleteLocalStorageItem" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 114, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.deleteLocalStorageItem" - } - }, - { - "id": 405, - "name": "deleteSessionStorageItem", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 165, + "character": 12 + } + ] + }, { - "id": 406, - "name": "deleteSessionStorageItem", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4361, + "name": "filter", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 407, - "name": "key", - "kind": 32768, - "kindString": "Parameter", + "id": 4362, + "name": "filter", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4363, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.deleteSessionStorageItem" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 120, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.deleteSessionStorageItem" - } - }, - { - "id": 305, - "name": "dismissAlert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 306, - "name": "dismissAlert", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.dismissAlert" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 86, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.dismissAlert" - } - }, - { - "id": 325, - "name": "doubleClick", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 166, + "character": 14 + } + ] + }, { - "id": 326, - "name": "doubleClick", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "id": 4364, + "name": "forEach", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.doubleClick" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 93, - "character": 15 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.doubleClick" - } - }, - { - "id": 350, - "name": "doubleTap", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 351, - "name": "doubleTap", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "signatures": [ { - "id": 352, - "name": "element", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "id": 4365, + "name": "forEach", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4366, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Function" + } + } + ], "type": { "type": "reference", - "name": "Element" + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.doubleTap" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 100, - "character": 13 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.doubleTap" - } - }, - { - "id": 187, - "name": "execute", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 188, - "name": "execute", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ + "sources": [ { - "id": 189, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 167, + "character": 15 } - ], - "parameters": [ + ] + }, + { + "id": 4367, + "name": "indexOf", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 190, - "name": "script", - "kind": 32768, - "kindString": "Parameter", + "id": 4368, + "name": "indexOf", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { + "parameters": [ + { + "id": 4369, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { "type": "intrinsic", - "name": "string" + "name": "any" } - ] - } - }, - { - "id": 191, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" } + ], + "type": { + "type": "intrinsic", + "name": "number" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.execute" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 34, - "character": 11 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.execute" - } - }, - { - "id": 192, - "name": "executeAsync", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 193, - "name": "executeAsync", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ + "sources": [ { - "id": 194, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 168, + "character": 15 } - ], - "parameters": [ + ] + }, + { + "id": 4370, + "name": "invoke", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 195, - "name": "script", - "kind": 32768, - "kindString": "Parameter", + "id": 4371, + "name": "invoke", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Function" - }, - { + "parameters": [ + { + "id": 4372, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { "type": "intrinsic", "name": "string" } - ] - } - }, - { - "id": 196, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + }, + { + "id": 4373, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], "type": { "type": "array", "elementType": { @@ -14160,3081 +14525,2917 @@ } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.executeAsync" - } - } - ], - "sources": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 169, + "character": 14 + } + ] + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 35, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.executeAsync" - } - }, - { - "id": 280, - "name": "find", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 281, - "name": "find", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 282, - "name": "using", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Strategy" - } - }, + "id": 4374, + "name": "join", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 283, - "name": "value", - "kind": 32768, - "kindString": "Parameter", + "id": 4375, + "name": "join", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4376, + "name": "separator", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], "type": { "type": "intrinsic", "name": "string" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "overwrites": { - "type": "reference", - "name": "Locator.find" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.find" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 77, - "character": 8 - } - ], - "overwrites": { - "type": "reference", - "name": "Locator.find" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.find" - } - }, - { - "id": 284, - "name": "findAll", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 285, - "name": "findAll", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "sources": [ { - "id": 286, - "name": "using", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Strategy" - } - }, + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 170, + "character": 12 + } + ] + }, + { + "id": 4377, + "name": "listeners", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 287, - "name": "value", - "kind": 32768, - "kindString": "Parameter", + "id": 4378, + "name": "listeners", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4379, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { "type": "array", "elementType": { "type": "reference", - "name": "Element" + "name": "Function" } } - ] - }, - "overwrites": { - "type": "reference", - "name": "Locator.findAll" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.findAll" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 78, - "character": 11 - } - ], - "overwrites": { - "type": "reference", - "name": "Locator.findAll" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.findAll" - } - }, - { - "id": 457, - "name": "findAllByClassName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 171, + "character": 17 + } + ] + }, { - "id": 458, - "name": "findAllByClassName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4380, + "name": "map", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 459, - "name": "className", - "kind": 32768, - "kindString": "Parameter", + "id": 4381, + "name": "map", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4382, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Function" + } + } + ], "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { "type": "array", "elementType": { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "any" } } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByClassName" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 14, - "character": 22 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByClassName" - } - }, - { - "id": 460, - "name": "findAllByCssSelector", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 172, + "character": 11 + } + ] + }, { - "id": 461, - "name": "findAllByCssSelector", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4383, + "name": "off", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 462, - "name": "selector", - "kind": 32768, - "kindString": "Parameter", + "id": 4384, + "name": "off", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4385, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4386, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "reference", + "name": "Suite" + } + }, + { + "id": 4387, + "name": "off", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4388, + "name": "types", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Element" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 173, + "character": 11 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 174, + "character": 11 + } + ] + }, + { + "id": 4389, + "name": "on", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4390, + "name": "on", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4391, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4392, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Function" + } } + ], + "type": { + "type": "reference", + "name": "Suite" } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByCssSelector" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 15, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByCssSelector" - } - }, - { - "id": 466, - "name": "findAllByLinkText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 467, - "name": "findAllByLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + }, { - "id": 468, - "name": "text", - "kind": 32768, - "kindString": "Parameter", + "id": 4393, + "name": "on", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4394, + "name": "types", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Element" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByLinkText" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 17, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByLinkText" - } - }, - { - "id": 463, - "name": "findAllByName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 175, + "character": 10 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 176, + "character": 10 + } + ] + }, { - "id": 464, - "name": "findAllByName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4395, + "name": "pluck", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 465, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 4396, + "name": "pluck", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4397, + "name": "property", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { "type": "array", "elementType": { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "any" } } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByName" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 16, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByName" - } - }, - { - "id": 469, - "name": "findAllByPartialLinkText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 177, + "character": 13 + } + ] + }, { - "id": 470, - "name": "findAllByPartialLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4398, + "name": "pop", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 471, - "name": "text", - "kind": 32768, - "kindString": "Parameter", + "id": 4399, + "name": "pop", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Function" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Element" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByPartialLinkText" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 18, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByPartialLinkText" - } - }, - { - "id": 472, - "name": "findAllByTagName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 178, + "character": 11 + } + ] + }, { - "id": 473, - "name": "findAllByTagName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4400, + "name": "push", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 474, - "name": "tagName", - "kind": 32768, - "kindString": "Parameter", + "id": 4401, + "name": "push", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4402, + "name": "benchmark", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Benchmark" + } + } + ], "type": { "type": "intrinsic", - "name": "string" + "name": "number" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Element" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 179, + "character": 12 + } + ] + }, + { + "id": 4403, + "name": "reduce", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4404, + "name": "reduce", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "typeParameter": [ + { + "id": 4405, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 4406, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 4407, + "name": "accumulator", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } } + ], + "type": { + "type": "typeParameter", + "name": "T" } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByTagName" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 19, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByTagName" - } - }, - { - "id": 475, - "name": "findAllByXpath", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 180, + "character": 14 + } + ] + }, { - "id": 476, - "name": "findAllByXpath", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4408, + "name": "reset", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 477, - "name": "path", - "kind": 32768, - "kindString": "Parameter", + "id": 4409, + "name": "reset", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 181, + "character": 13 + } + ] + }, + { + "id": 4410, + "name": "reverse", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4411, + "name": "reverse", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { "type": "array", "elementType": { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "any" } } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByXpath" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 20, - "character": 18 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findAllByXpath" - } - }, - { - "id": 433, - "name": "findByClassName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 182, + "character": 15 + } + ] + }, { - "id": 434, - "name": "findByClassName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4412, + "name": "run", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 435, - "name": "className", - "kind": 32768, - "kindString": "Parameter", + "id": 4413, + "name": "run", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4414, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Options", + "id": 4253 + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Suite" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByClassName" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 6, - "character": 19 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByClassName" - } - }, - { - "id": 436, - "name": "findByCssSelector", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 183, + "character": 11 + } + ] + }, { - "id": 437, - "name": "findByCssSelector", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4415, + "name": "shift", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 438, - "name": "selector", - "kind": 32768, - "kindString": "Parameter", + "id": 4416, + "name": "shift", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Benchmark" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByCssSelector" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 7, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByCssSelector" - } - }, - { - "id": 439, - "name": "findById", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 184, + "character": 13 + } + ] + }, { - "id": 440, - "name": "findById", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4417, + "name": "slice", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 441, - "name": "id", - "kind": 32768, - "kindString": "Parameter", + "id": 4418, + "name": "slice", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4419, + "name": "start", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4420, + "name": "end", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 4421, + "name": "slice", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4422, + "name": "start", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4423, + "name": "deleteCount", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4424, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findById" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 8, - "character": 12 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findById" - } - }, - { - "id": 445, - "name": "findByLinkText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 185, + "character": 13 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 186, + "character": 13 + } + ] + }, { - "id": 446, - "name": "findByLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4425, + "name": "unshift", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 447, - "name": "text", - "kind": 32768, - "kindString": "Parameter", + "id": 4426, + "name": "unshift", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 4427, + "name": "benchmark", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Benchmark" + } + } + ], "type": { "type": "intrinsic", - "name": "string" + "name": "number" } } ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByLinkText" - } + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 187, + "character": 15 + } + ] } ], - "sources": [ + "groups": [ { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 10, - "character": 18 + "title": "Constructors", + "kind": 512, + "children": [ + 4333 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 4337, + 4338, + 4339, + 4330 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 4340, + 4342, + 4355, + 4358, + 4361, + 4364, + 4367, + 4370, + 4374, + 4377, + 4380, + 4383, + 4389, + 4395, + 4398, + 4400, + 4403, + 4408, + 4410, + 4412, + 4415, + 4417, + 4425 + ] } ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByLinkText" - } + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 151, + "character": 22 + } + ] }, { - "id": 442, - "name": "findByName", - "kind": 2048, - "kindString": "Method", + "id": 4253, + "name": "Options", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 443, - "name": "findByName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4254, + "name": "async", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 444, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 65, + "character": 13 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByName" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 9, - "character": 14 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByName" - } - }, - { - "id": 448, - "name": "findByPartialLinkText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 449, - "name": "findByPartialLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4255, + "name": "defer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 450, - "name": "text", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 66, + "character": 13 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByPartialLinkText" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 11, - "character": 25 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByPartialLinkText" - } - }, - { - "id": 451, - "name": "findByTagName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 452, - "name": "findByTagName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4256, + "name": "delay", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 453, - "name": "tagName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 67, + "character": 13 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByTagName" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 12, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByTagName" - } - }, - { - "id": 454, - "name": "findByXpath", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 455, - "name": "findByXpath", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4271, + "name": "fn", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 456, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 82, + "character": 10 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { "type": "reference", - "name": "Element" + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByXpath" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 13, - "character": 15 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findByXpath" - } - }, - { - "id": 410, - "name": "findDisplayed", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 411, - "name": "findDisplayed", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 412, - "name": "using", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Strategy" - } - }, + "id": 4257, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 413, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 68, + "character": 10 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" } ] - }, - "overwrites": { - "type": "reference", - "name": "Locator.findDisplayed" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.findDisplayed" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 122, - "character": 17 - } - ], - "overwrites": { - "type": "reference", - "name": "Locator.findDisplayed" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.findDisplayed" - } - }, - { - "id": 478, - "name": "findDisplayedByClassName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 479, - "name": "findDisplayedByClassName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4258, + "name": "initCount", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 480, - "name": "className", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 69, + "character": 17 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByClassName" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 21, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByClassName" - } - }, - { - "id": 481, - "name": "findDisplayedByCssSelector", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 482, - "name": "findDisplayedByCssSelector", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4259, + "name": "maxTime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 483, - "name": "selector", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 70, + "character": 15 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByCssSelector" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 22, - "character": 30 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByCssSelector" - } - }, - { - "id": 484, - "name": "findDisplayedById", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 485, - "name": "findDisplayedById", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4260, + "name": "minSamples", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 486, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 71, + "character": 18 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedById" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 23, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedById" - } - }, - { - "id": 490, - "name": "findDisplayedByLinkText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 491, - "name": "findDisplayedByLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4261, + "name": "minTime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 492, - "name": "text", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 72, + "character": 15 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByLinkText" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 25, - "character": 27 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByLinkText" - } - }, - { - "id": 487, - "name": "findDisplayedByName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 488, - "name": "findDisplayedByName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4262, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 489, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 73, + "character": 12 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByName" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 24, - "character": 23 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByName" - } - }, - { - "id": 493, - "name": "findDisplayedByPartialLinkText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 494, - "name": "findDisplayedByPartialLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4263, + "name": "onAbort", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 495, - "name": "text", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 74, + "character": 15 } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByPartialLinkText" + "name": "Function" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 26, - "character": 34 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByPartialLinkText" - } - }, - { - "id": 496, - "name": "findDisplayedByTagName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 497, - "name": "findDisplayedByTagName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4264, + "name": "onComplete", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 498, - "name": "tagName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 75, + "character": 18 } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByTagName" + "name": "Function" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 27, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByTagName" - } - }, - { - "id": 499, - "name": "findDisplayedByXpath", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 500, - "name": "findDisplayedByXpath", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4265, + "name": "onCycle", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 501, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 76, + "character": 15 } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByXpath" + "name": "Function" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 28, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.findDisplayedByXpath" - } - }, - { - "id": 356, - "name": "flickFinger", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 357, - "name": "flickFinger", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 358, - "name": "element", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Element" - } - }, - { - "id": 359, - "name": "xOffset", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 360, - "name": "yOffset", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, + "id": 4266, + "name": "onError", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 361, - "name": "speed", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 77, + "character": 15 } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.flickFinger" + "name": "Function" } }, { - "id": 362, - "name": "flickFinger", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 363, - "name": "xOffset", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 364, - "name": "yOffset", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, + "id": 4267, + "name": "onReset", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 365, - "name": "speed", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 78, + "character": 15 } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Function" + } + }, + { + "id": 4268, + "name": "onStart", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true }, - "inheritedFrom": { + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 79, + "character": 15 + } + ], + "type": { "type": "reference", - "name": "Session.flickFinger" + "name": "Function" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 102, - "character": 15 }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 103, - "character": 15 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.flickFinger" - } - }, - { - "id": 132, - "name": "get", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 133, - "name": "get", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Navigates the browser to a new URL like `leadfoot/Session#get`, but\nretrieves any code coverage data recorded by the browser prior to\nnavigation." + "id": 4272, + "name": "queued", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true }, - "parameters": [ + "sources": [ { - "id": 134, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 83, + "character": 14 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { "type": "intrinsic", - "name": "void" + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" } ] - }, - "overwrites": { - "type": "reference", - "name": "Session.get" } - } - ], - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 47, - "character": 5 - } - ], - "overwrites": { - "type": "reference", - "name": "Session.get" - } - }, - { - "id": 288, - "name": "getActiveElement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 289, - "name": "getActiveElement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4269, + "name": "setup", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 80, + "character": 13 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { "type": "reference", - "name": "Element" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getActiveElement" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 79, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getActiveElement" - } - }, - { - "id": 201, - "name": "getActiveImeEngine", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 202, - "name": "getActiveImeEngine", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "name": "Function" + }, { "type": "intrinsic", "name": "string" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getActiveImeEngine" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 38, - "character": 22 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getActiveImeEngine" - } - }, - { - "id": 298, - "name": "getAlertText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 299, - "name": "getAlertText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4270, + "name": "teardown", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 81, + "character": 16 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, { "type": "intrinsic", "name": "string" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getAlertText" } } ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 83, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getAlertText" - } - }, - { - "id": 177, - "name": "getAllWindowHandles", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "groups": [ { - "id": 178, - "name": "getAllWindowHandles", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getAllWindowHandles" - } + "title": "Properties", + "kind": 1024, + "children": [ + 4254, + 4255, + 4256, + 4271, + 4257, + 4258, + 4259, + 4260, + 4261, + 4262, + 4263, + 4264, + 4265, + 4266, + 4267, + 4268, + 4272, + 4269, + 4270 + ] } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 28, - "character": 23 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 64, + "character": 28 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getAllWindowHandles" - } + ] }, { - "id": 376, - "name": "getApplicationCacheStatus", - "kind": 2048, - "kindString": "Method", + "id": 4273, + "name": "Platform", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 377, - "name": "getApplicationCacheStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getApplicationCacheStatus" - } - } - ], - "sources": [ + "id": 4274, + "name": "description", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 87, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 108, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getApplicationCacheStatus" - } - }, - { - "id": 199, - "name": "getAvailableImeEngines", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4275, + "name": "layout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 88, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "id": 200, - "name": "getAvailableImeEngines", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4276, + "name": "manufacturer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 89, + "character": 20 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4277, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getAvailableImeEngines" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 90, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 37, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getAvailableImeEngines" - } - }, - { - "id": 374, - "name": "getAvailableLogTypes", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4278, + "name": "os", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 91, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "id": 375, - "name": "getAvailableLogTypes", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4279, + "name": "prerelease", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 92, + "character": 18 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4280, + "name": "product", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getAvailableLogTypes" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 93, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 107, - "character": 24 + "id": 4281, + "name": "version", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 94, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4282, + "name": "toString", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4283, + "name": "toString", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 95, + "character": 16 + } + ] } ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getAvailableLogTypes" - } - }, - { - "id": 266, - "name": "getCookies", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "groups": [ { - "id": 267, - "name": "getCookies", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getCookies" - } + "title": "Properties", + "kind": 1024, + "children": [ + 4274, + 4275, + 4276, + 4277, + 4278, + 4279, + 4280, + 4281 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 4282 + ] } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 71, - "character": 14 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 86, + "character": 29 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getCookies" - } + ] }, { - "id": 179, - "name": "getCurrentUrl", - "kind": 2048, - "kindString": "Method", + "id": 4297, + "name": "Stats", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 180, - "name": "getCurrentUrl", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4298, + "name": "deviation", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 114, + "character": 17 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4299, + "name": "mean", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getCurrentUrl" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 115, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "number" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 29, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getCurrentUrl" - } - }, - { - "id": 175, - "name": "getCurrentWindowHandle", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4300, + "name": "moe", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 116, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "id": 176, - "name": "getCurrentWindowHandle", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4301, + "name": "rme", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 117, + "character": 11 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4302, + "name": "sample", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getCurrentWindowHandle" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 118, + "character": 14 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } } + }, + { + "id": 4303, + "name": "sem", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 119, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4304, + "name": "variance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 120, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 4298, + 4299, + 4300, + 4301, + 4302, + 4303, + 4304 + ] } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 27, + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 113, "character": 26 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getCurrentWindowHandle" - } + ] }, { - "id": 418, - "name": "getExecuteAsyncTimeout", - "kind": 2048, - "kindString": "Method", + "id": 4284, + "name": "Support", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 419, - "name": "getExecuteAsyncTimeout", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4285, + "name": "air", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 99, + "character": 11 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 4286, + "name": "argumentsClass", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getExecuteAsyncTimeout" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 100, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 124, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getExecuteAsyncTimeout" - } - }, - { - "id": 423, - "name": "getFindTimeout", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4287, + "name": "browser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 101, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { - "id": 424, - "name": "getFindTimeout", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4288, + "name": "charByIndex", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 102, + "character": 19 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 4289, + "name": "charByOwnIndex", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getFindTimeout" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 103, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 126, - "character": 18 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getFindTimeout" - } - }, - { - "id": 366, - "name": "getGeolocation", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4290, + "name": "decompilation", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 104, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { - "id": 367, - "name": "getGeolocation", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4291, + "name": "descriptors", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 105, + "character": 19 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Geolocation" - } - ] + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 4292, + "name": "getAllKeys", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getGeolocation" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 106, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 104, - "character": 18 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getGeolocation" - } - }, - { - "id": 386, - "name": "getLocalStorageItem", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "id": 4293, + "name": "iteratesOwnFirst", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 107, + "character": 24 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { - "id": 387, - "name": "getLocalStorageItem", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 4294, + "name": "java", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 388, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 108, + "character": 12 } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 4295, + "name": "nodeClass", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getLocalStorageItem" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 109, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - } - ], - "sources": [ + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 113, - "character": 23 + "id": 4296, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 110, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } } ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getLocalStorageItem" - } - }, - { - "id": 378, - "name": "getLocalStorageKeys", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + "groups": [ { - "id": 379, - "name": "getLocalStorageKeys", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getLocalStorageKeys" - } + "title": "Properties", + "kind": 1024, + "children": [ + 4285, + 4286, + 4287, + 4288, + 4289, + 4290, + 4291, + 4292, + 4293, + 4294, + 4295, + 4296 + ] } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 110, - "character": 23 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 98, + "character": 28 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getLocalStorageKeys" - } + ] }, { - "id": 392, - "name": "getLocalStorageLength", - "kind": 2048, - "kindString": "Method", + "id": 4305, + "name": "Times", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, - "signatures": [ + "children": [ { - "id": 393, - "name": "getLocalStorageLength", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 4306, + "name": "cycle", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 124, + "character": 13 + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4307, + "name": "elapsed", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getLocalStorageLength" + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 125, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4308, + "name": "period", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 126, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4309, + "name": "timeStamp", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 127, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "number" } } ], - "sources": [ + "groups": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 115, - "character": 25 + "title": "Properties", + "kind": 1024, + "children": [ + 4306, + 4307, + 4308, + 4309 + ] } ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getLocalStorageLength" - } + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 123, + "character": 26 + } + ] }, { - "id": 371, - "name": "getLogsFor", - "kind": 2048, - "kindString": "Method", + "id": 4195, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { - "id": 372, - "name": "getLogsFor", - "kind": 4096, - "kindString": "Call signature", + "id": 4196, + "name": "new InternBenchmark", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 373, - "name": "type", + "id": 4197, + "name": "fn", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4198, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Benchmark.Options" } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "LogEntry" - } - } - ] + "name": "InternBenchmark", + "id": 4094 }, "inheritedFrom": { "type": "reference", - "name": "Session.getLogsFor" + "name": "Benchmark.__constructor" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 106, - "character": 14 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.getLogsFor" - } - }, - { - "id": 293, - "name": "getOrientation", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 294, - "name": "getOrientation", - "kind": 4096, - "kindString": "Call signature", + "id": 4199, + "name": "new InternBenchmark", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 4200, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4201, + "name": "fn", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4202, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Benchmark.Options" + } + } + ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { + "name": "InternBenchmark", + "id": 4094 + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.__constructor" + } + }, + { + "id": 4203, + "name": "new InternBenchmark", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 4204, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { "type": "intrinsic", "name": "string" } - ] + }, + { + "id": 4205, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Benchmark.Options" + } + } + ], + "type": { + "type": "reference", + "name": "InternBenchmark", + "id": 4094 + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.__constructor" + } + }, + { + "id": 4206, + "name": "new InternBenchmark", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 4207, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Options" + } + } + ], + "type": { + "type": "reference", + "name": "InternBenchmark", + "id": 4094 }, "inheritedFrom": { "type": "reference", - "name": "Session.getOrientation" + "name": "Benchmark.__constructor" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 81, - "character": 18 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 28, + "character": 27 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 30, + "character": 68 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 31, + "character": 82 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 32, + "character": 59 } ], "inheritedFrom": { "type": "reference", - "name": "Session.getOrientation" + "name": "Benchmark.__constructor" } }, { - "id": 428, - "name": "getPageLoadTimeout", - "kind": 2048, - "kindString": "Method", + "id": 4208, + "name": "aborted", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ - { - "id": 429, - "name": "getPageLoadTimeout", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getPageLoadTimeout" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 128, - "character": 22 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 35, + "character": 11 } ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getPageLoadTimeout" + "name": "Benchmark.aborted" } }, { - "id": 276, - "name": "getPageSource", - "kind": 2048, - "kindString": "Method", + "id": 4209, + "name": "compiled", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ + "sources": [ { - "id": 277, - "name": "getPageSource", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 36, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] + "name": "Function" }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getPageSource" + { + "type": "intrinsic", + "name": "string" } - } - ], + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.compiled" + } + }, + { + "id": 4210, + "name": "count", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 75, - "character": 17 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 37, + "character": 9 } ], + "type": { + "type": "intrinsic", + "name": "number" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getPageSource" + "name": "Benchmark.count" } }, { - "id": 278, - "name": "getPageTitle", - "kind": 2048, - "kindString": "Method", + "id": 4211, + "name": "cycles", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ - { - "id": 279, - "name": "getPageTitle", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getPageTitle" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 76, - "character": 16 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 38, + "character": 10 } ], + "type": { + "type": "intrinsic", + "name": "number" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getPageTitle" + "name": "Benchmark.cycles" } }, { - "id": 402, - "name": "getSessionStorageItem", - "kind": 2048, - "kindString": "Method", + "id": 4212, + "name": "error", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ - { - "id": 403, - "name": "getSessionStorageItem", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 404, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getSessionStorageItem" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 119, - "character": 25 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 39, + "character": 9 } ], + "type": { + "type": "reference", + "name": "Error" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getSessionStorageItem" + "name": "Benchmark.error" } }, { - "id": 394, - "name": "getSessionStorageKeys", - "kind": 2048, - "kindString": "Method", + "id": 4213, + "name": "fn", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ + "sources": [ { - "id": 395, - "name": "getSessionStorageKeys", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 40, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] + "name": "Function" }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getSessionStorageKeys" + { + "type": "intrinsic", + "name": "string" } - } - ], + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.fn" + } + }, + { + "id": 4214, + "name": "hz", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 116, - "character": 25 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 41, + "character": 6 } ], + "type": { + "type": "intrinsic", + "name": "number" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getSessionStorageKeys" + "name": "Benchmark.hz" } }, { - "id": 408, - "name": "getSessionStorageLength", - "kind": 2048, - "kindString": "Method", + "id": 4095, + "name": "internTest", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 409, - "name": "getSessionStorageLength", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getSessionStorageLength" - } + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 219, + "character": 12 } ], + "type": { + "type": "reference", + "name": "BenchmarkTest", + "id": 3985 + } + }, + { + "id": 4215, + "name": "running", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 121, - "character": 27 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 42, + "character": 11 } ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getSessionStorageLength" + "name": "Benchmark.running" } }, { - "id": 168, - "name": "getTimeout", - "kind": 2048, - "kindString": "Method", + "id": 4216, + "name": "setup", + "kind": 1024, + "kindString": "Property", "flags": { "isExported": true }, - "signatures": [ + "sources": [ { - "id": 169, - "name": "getTimeout", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 170, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Timeout" - } - } - ], - "type": { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 43, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] + "name": "Function" }, - "inheritedFrom": { + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.setup" + } + }, + { + "id": 4218, + "name": "stats", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 46, + "character": 9 + } + ], + "type": { + "type": "reference", + "name": "Stats" + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.stats" + } + }, + { + "id": 4217, + "name": "teardown", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 44, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { "type": "reference", - "name": "Session.getTimeout" + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.teardown" + } + }, + { + "id": 4219, + "name": "times", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 47, + "character": 9 } ], + "type": { + "type": "reference", + "name": "Times" + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.times" + } + }, + { + "id": 4191, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isStatic": true, + "isExported": true + }, "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", + "fileName": "node_modules/@types/benchmark/index.d.ts", "line": 25, - "character": 14 + "character": 18 } ], + "type": { + "type": "reference", + "name": "Options" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getTimeout" + "name": "Benchmark.options" } }, { - "id": 257, - "name": "getWindowPosition", - "kind": 2048, - "kindString": "Method", + "id": 4192, + "name": "platform", + "kind": 1024, + "kindString": "Property", "flags": { + "isStatic": true, "isExported": true }, - "signatures": [ + "sources": [ { - "id": 258, - "name": "getWindowPosition", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 259, - "name": "windowHandle", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 260, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 261, - "name": "x", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 67, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 262, - "name": "y", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 68, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 261, - 262 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 66, - "character": 65 - } - ] - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.getWindowPosition" - } + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 26, + "character": 19 } ], + "type": { + "type": "reference", + "name": "Platform" + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.platform" + } + }, + { + "id": 4193, + "name": "support", + "kind": 1024, + "kindString": "Property", + "flags": { + "isStatic": true, + "isExported": true + }, "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 66, - "character": 21 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 27, + "character": 18 } ], + "type": { + "type": "reference", + "name": "Support" + }, "inheritedFrom": { "type": "reference", - "name": "Session.getWindowPosition" + "name": "Benchmark.support" } }, { - "id": 234, - "name": "getWindowRect", + "id": 4194, + "name": "version", + "kind": 1024, + "kindString": "Property", + "flags": { + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 28, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.version" + } + }, + { + "id": 4220, + "name": "abort", "kind": 2048, "kindString": "Method", "flags": { @@ -17242,141 +17443,36 @@ }, "signatures": [ { - "id": 235, - "name": "getWindowRect", + "id": 4221, + "name": "abort", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 236, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 238, - "name": "height", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 54, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 237, - "name": "width", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 53, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 239, - "name": "x", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 55, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 240, - "name": "y", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 56, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 238, - 237, - 239, - 240 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 52, - "character": 40 - } - ] - } - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.getWindowRect" + "name": "Benchmark.abort" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 52, - "character": 17 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 49, + "character": 9 } ], "inheritedFrom": { "type": "reference", - "name": "Session.getWindowRect" + "name": "Benchmark.abort" } }, { - "id": 228, - "name": "getWindowSize", + "id": 4222, + "name": "clone", "kind": 2048, "kindString": "Method", "flags": { @@ -17384,127 +17480,49 @@ }, "signatures": [ { - "id": 229, - "name": "getWindowSize", + "id": 4223, + "name": "clone", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 230, - "name": "windowHandle", + "id": 4224, + "name": "options", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "reference", + "name": "Options" } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 231, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 233, - "name": "height", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 50, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 232, - "name": "width", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 49, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 233, - 232 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 48, - "character": 61 - } - ] - } - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.getWindowSize" + "name": "Benchmark.clone" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 48, - "character": 17 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 50, + "character": 9 } ], "inheritedFrom": { "type": "reference", - "name": "Session.getWindowSize" + "name": "Benchmark.clone" } }, { - "id": 183, - "name": "goBack", + "id": 4225, + "name": "compare", "kind": 2048, "kindString": "Method", "flags": { @@ -17512,42 +17530,49 @@ }, "signatures": [ { - "id": 184, - "name": "goBack", + "id": 4226, + "name": "compare", "kind": 4096, "kindString": "Call signature", "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" + "parameters": [ + { + "id": 4227, + "name": "benchmark", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Benchmark" } - ] + } + ], + "type": { + "type": "intrinsic", + "name": "number" }, "inheritedFrom": { "type": "reference", - "name": "Session.goBack" + "name": "Benchmark.compare" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 32, - "character": 10 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 51, + "character": 11 } ], "inheritedFrom": { "type": "reference", - "name": "Session.goBack" + "name": "Benchmark.compare" } }, { - "id": 181, - "name": "goForward", + "id": 4228, + "name": "emit", "kind": 2048, "kindString": "Method", "flags": { @@ -17555,85 +17580,58 @@ }, "signatures": [ { - "id": 182, - "name": "goForward", + "id": 4229, + "name": "emit", "kind": 4096, "kindString": "Call signature", "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" + "parameters": [ + { + "id": 4230, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "Object" + } + ] } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.goForward" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 31, - "character": 13 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.goForward" - } - }, - { - "id": 203, - "name": "isImeActivated", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 204, - "name": "isImeActivated", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + } + ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ] + "type": "intrinsic", + "name": "any" }, "inheritedFrom": { "type": "reference", - "name": "Session.isImeActivated" + "name": "Benchmark.emit" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 39, - "character": 18 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 52, + "character": 8 } ], "inheritedFrom": { "type": "reference", - "name": "Session.isImeActivated" + "name": "Benchmark.emit" } }, { - "id": 353, - "name": "longTap", + "id": 4231, + "name": "listeners", "kind": 2048, "kindString": "Method", "flags": { @@ -17641,57 +17639,52 @@ }, "signatures": [ { - "id": 354, - "name": "longTap", + "id": 4232, + "name": "listeners", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 355, - "name": "element", + "id": 4233, + "name": "type", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "reference", - "name": "Element" + "type": "intrinsic", + "name": "string" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "array", + "elementType": { + "type": "reference", + "name": "Function" + } }, "inheritedFrom": { "type": "reference", - "name": "Session.longTap" + "name": "Benchmark.listeners" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 101, - "character": 11 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 53, + "character": 13 } ], "inheritedFrom": { "type": "reference", - "name": "Session.longTap" + "name": "Benchmark.listeners" } }, { - "id": 263, - "name": "maximizeWindow", + "id": 4234, + "name": "off", "kind": 2048, "kindString": "Method", "flags": { @@ -17699,15 +17692,15 @@ }, "signatures": [ { - "id": 264, - "name": "maximizeWindow", + "id": 4235, + "name": "off", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 265, - "name": "windowHandle", + "id": 4236, + "name": "type", "kind": 32768, "kindString": "Parameter", "flags": { @@ -17726,106 +17719,82 @@ } ] } + }, + { + "id": 4237, + "name": "listener", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Function" + } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.maximizeWindow" + "name": "Benchmark.off" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 70, - "character": 18 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.maximizeWindow" - } - }, - { - "id": 338, - "name": "moveFinger", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 339, - "name": "moveFinger", + "id": 4238, + "name": "off", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 340, - "name": "x", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 341, - "name": "y", + "id": 4239, + "name": "types", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "number" + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.moveFinger" + "name": "Benchmark.off" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 97, - "character": 14 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 54, + "character": 7 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 55, + "character": 7 } ], "inheritedFrom": { "type": "reference", - "name": "Session.moveFinger" + "name": "Benchmark.off" } }, { - "id": 307, - "name": "moveMouseTo", + "id": 4240, + "name": "on", "kind": 2048, "kindString": "Method", "flags": { @@ -17833,36 +17802,15 @@ }, "signatures": [ { - "id": 308, - "name": "moveMouseTo", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.moveMouseTo" - } - }, - { - "id": 309, - "name": "moveMouseTo", + "id": 4241, + "name": "on", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 310, - "name": "xOffset", + "id": 4242, + "name": "type", "kind": 32768, "kindString": "Parameter", "flags": { @@ -17877,155 +17825,86 @@ }, { "type": "intrinsic", - "name": "number" + "name": "string" } ] } }, { - "id": 311, - "name": "yOffset", + "id": 4243, + "name": "listener", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "reference", + "name": "Function" } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.moveMouseTo" + "name": "Benchmark.on" } }, { - "id": 312, - "name": "moveMouseTo", + "id": 4244, + "name": "on", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 313, - "name": "element", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Element" - } - }, - { - "id": 314, - "name": "xOffset", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 315, - "name": "yOffset", + "id": 4245, + "name": "types", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.moveMouseTo" + "name": "Benchmark.on" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 87, - "character": 15 - }, - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 88, - "character": 15 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 56, + "character": 6 }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 89, - "character": 15 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 57, + "character": 6 } ], "inheritedFrom": { "type": "reference", - "name": "Session.moveMouseTo" + "name": "Benchmark.on" } }, { - "id": 330, - "name": "pressFinger", + "id": 4246, + "name": "reset", "kind": 2048, "kindString": "Method", "flags": { @@ -18033,66 +17912,36 @@ }, "signatures": [ { - "id": 331, - "name": "pressFinger", + "id": 4247, + "name": "reset", "kind": 4096, "kindString": "Call signature", "flags": {}, - "parameters": [ - { - "id": 332, - "name": "x", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 333, - "name": "y", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.pressFinger" + "name": "Benchmark.reset" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 95, - "character": 15 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 58, + "character": 9 } ], "inheritedFrom": { "type": "reference", - "name": "Session.pressFinger" + "name": "Benchmark.reset" } }, { - "id": 290, - "name": "pressKeys", + "id": 4248, + "name": "run", "kind": 2048, "kindString": "Method", "flags": { @@ -18100,67 +17949,51 @@ }, "signatures": [ { - "id": 291, - "name": "pressKeys", + "id": 4249, + "name": "run", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 292, - "name": "keys", + "id": 4250, + "name": "options", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] + "type": "reference", + "name": "Benchmark.Options" } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Benchmark" }, "inheritedFrom": { "type": "reference", - "name": "Session.pressKeys" + "name": "Benchmark.run" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 80, - "character": 13 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 59, + "character": 7 } ], "inheritedFrom": { "type": "reference", - "name": "Session.pressKeys" + "name": "Benchmark.run" } }, { - "id": 319, - "name": "pressMouseButton", + "id": 4251, + "name": "toString", "kind": 2048, "kindString": "Method", "flags": { @@ -18168,304 +18001,266 @@ }, "signatures": [ { - "id": 320, - "name": "pressMouseButton", + "id": 4252, + "name": "toString", "kind": 4096, "kindString": "Call signature", "flags": {}, - "parameters": [ - { - "id": 321, - "name": "button", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "string" }, "inheritedFrom": { "type": "reference", - "name": "Session.pressMouseButton" + "name": "Benchmark.toString" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 91, - "character": 20 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 60, + "character": 12 } ], "inheritedFrom": { "type": "reference", - "name": "Session.pressMouseButton" + "name": "Benchmark.toString" } }, { - "id": 135, - "name": "quit", + "id": 4096, + "name": "deepClone", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 136, - "name": "quit", + "id": 4097, + "name": "deepClone", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Quits the browser like `leadfoot/Session#quit`, but retrieves any code\ncoverage data recorded by the browser prior to quitting." - }, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" + "typeParameter": [ + { + "id": 4098, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 4099, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" } - ] - }, - "overwrites": { - "type": "reference", - "name": "Session.quit" - } - } - ], - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 71, - "character": 6 - } - ], - "overwrites": { - "type": "reference", - "name": "Session.quit" - } - }, - { - "id": 185, - "name": "refresh", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 186, - "name": "refresh", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + } + ], + "type": { + "type": "typeParameter", + "name": "T" }, "inheritedFrom": { "type": "reference", - "name": "Session.refresh" + "name": "Benchmark.deepClone" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 33, - "character": 11 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 8, + "character": 20 } ], "inheritedFrom": { "type": "reference", - "name": "Session.refresh" + "name": "Benchmark.deepClone" } }, { - "id": 334, - "name": "releaseFinger", + "id": 4100, + "name": "each", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 335, - "name": "releaseFinger", + "id": 4101, + "name": "each", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 336, - "name": "x", + "id": 4102, + "name": "obj", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "number" + "type": "union", + "types": [ + { + "type": "reference", + "name": "Object" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + ] } }, { - "id": 337, - "name": "y", + "id": 4103, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 4104, + "name": "thisArg", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, "type": { "type": "intrinsic", - "name": "number" + "name": "any" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "void" }, "inheritedFrom": { "type": "reference", - "name": "Session.releaseFinger" + "name": "Benchmark.each" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 96, - "character": 17 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 9, + "character": 15 } ], "inheritedFrom": { "type": "reference", - "name": "Session.releaseFinger" + "name": "Benchmark.each" } }, { - "id": 322, - "name": "releaseMouseButton", + "id": 4105, + "name": "extend", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 323, - "name": "releaseMouseButton", + "id": 4106, + "name": "extend", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 324, - "name": "button", + "id": 4107, + "name": "destination", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Object" + } + }, + { + "id": 4108, + "name": "sources", "kind": 32768, "kindString": "Parameter", "flags": { - "isOptional": true + "isRest": true }, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "array", + "elementType": { + "type": "reference", + "name": "Object" + } } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Object" }, "inheritedFrom": { "type": "reference", - "name": "Session.releaseMouseButton" + "name": "Benchmark.extend" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 92, - "character": 22 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 10, + "character": 17 } ], "inheritedFrom": { "type": "reference", - "name": "Session.releaseMouseButton" + "name": "Benchmark.extend" } }, { - "id": 162, - "name": "serverDelete", + "id": 4109, + "name": "filter", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 163, - "name": "serverDelete", + "id": 4110, + "name": "filter", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 164, + "id": 4111, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -18474,92 +18269,104 @@ ], "parameters": [ { - "id": 165, - "name": "path", + "id": 4112, + "name": "arr", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } } }, { - "id": 166, - "name": "requestData", + "id": 4113, + "name": "callback", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "intrinsic", - "name": "any" + "type": "reflection", + "declaration": { + "id": 4114, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 4115, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4116, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 11, + "character": 40 + } + ] + } } }, { - "id": 167, - "name": "pathParts", + "id": 4117, + "name": "thisArg", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } + "type": "intrinsic", + "name": "any" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } }, "inheritedFrom": { "type": "reference", - "name": "Session.serverDelete" + "name": "Benchmark.filter" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 24, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.serverDelete" - } - }, - { - "id": 150, - "name": "serverGet", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ + }, { - "id": 151, - "name": "serverGet", + "id": 4118, + "name": "filter", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 152, + "id": 4119, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -18568,92 +18375,93 @@ ], "parameters": [ { - "id": 153, - "name": "path", + "id": 4120, + "name": "arr", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } } }, { - "id": 154, - "name": "requestData", + "id": 4121, + "name": "filter", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { "type": "intrinsic", - "name": "any" + "name": "string" } }, { - "id": 155, - "name": "pathParts", + "id": 4122, + "name": "thisArg", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } + "type": "intrinsic", + "name": "any" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } }, "inheritedFrom": { "type": "reference", - "name": "Session.serverGet" + "name": "Benchmark.filter" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 22, - "character": 13 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 11, + "character": 17 + }, + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 12, + "character": 17 } ], "inheritedFrom": { "type": "reference", - "name": "Session.serverGet" + "name": "Benchmark.filter" } }, { - "id": 156, - "name": "serverPost", + "id": 4123, + "name": "forEach", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 157, - "name": "serverPost", + "id": 4124, + "name": "forEach", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 158, + "id": 4125, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -18662,149 +18470,200 @@ ], "parameters": [ { - "id": 159, - "name": "path", + "id": 4126, + "name": "arr", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } } }, { - "id": 160, - "name": "requestData", + "id": 4127, + "name": "callback", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "intrinsic", - "name": "any" + "type": "reflection", + "declaration": { + "id": 4128, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 4129, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4130, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 13, + "character": 41 + } + ] + } } }, { - "id": 161, - "name": "pathParts", + "id": 4131, + "name": "thisArg", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } + "type": "intrinsic", + "name": "any" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] + "type": "intrinsic", + "name": "void" }, "inheritedFrom": { "type": "reference", - "name": "Session.serverPost" + "name": "Benchmark.forEach" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 23, - "character": 14 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 13, + "character": 18 } ], "inheritedFrom": { "type": "reference", - "name": "Session.serverPost" + "name": "Benchmark.forEach" } }, { - "id": 268, - "name": "setCookie", + "id": 4135, + "name": "forOwn", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 269, - "name": "setCookie", + "id": 4136, + "name": "forOwn", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 270, - "name": "cookie", + "id": 4137, + "name": "obj", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Object" + } + }, + { + "id": 4138, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "WebDriverCookie" + "name": "Function" + } + }, + { + "id": 4139, + "name": "thisArg", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "void" }, "inheritedFrom": { "type": "reference", - "name": "Session.setCookie" + "name": "Benchmark.forOwn" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 72, - "character": 13 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 15, + "character": 17 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setCookie" + "name": "Benchmark.forOwn" } }, { - "id": 420, - "name": "setExecuteAsyncTimeout", + "id": 4132, + "name": "formatNumber", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 421, - "name": "setExecuteAsyncTimeout", + "id": 4133, + "name": "formatNumber", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 422, - "name": "ms", + "id": 4134, + "name": "num", "kind": 32768, "kindString": "Parameter", "flags": {}, @@ -18815,218 +18674,205 @@ } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "string" }, "inheritedFrom": { "type": "reference", - "name": "Session.setExecuteAsyncTimeout" + "name": "Benchmark.formatNumber" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 125, - "character": 26 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 14, + "character": 23 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setExecuteAsyncTimeout" + "name": "Benchmark.formatNumber" } }, { - "id": 425, - "name": "setFindTimeout", + "id": 4140, + "name": "hasKey", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 426, - "name": "setFindTimeout", + "id": 4141, + "name": "hasKey", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 427, - "name": "ms", + "id": 4142, + "name": "obj", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Object" + } + }, + { + "id": 4143, + "name": "key", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", - "name": "number" + "name": "string" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "boolean" }, "inheritedFrom": { "type": "reference", - "name": "Session.setFindTimeout" + "name": "Benchmark.hasKey" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 127, - "character": 18 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 16, + "character": 17 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setFindTimeout" + "name": "Benchmark.hasKey" } }, { - "id": 368, - "name": "setGeolocation", + "id": 4144, + "name": "indexOf", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 369, - "name": "setGeolocation", + "id": 4145, + "name": "indexOf", "kind": 4096, "kindString": "Call signature", "flags": {}, + "typeParameter": [ + { + "id": 4146, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 370, - "name": "location", + "id": 4147, + "name": "arr", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "Geolocation" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.setGeolocation" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 105, - "character": 18 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.setGeolocation" - } - }, - { - "id": 137, - "name": "setHeartbeatInterval", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 138, - "name": "setHeartbeatInterval", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Sets up a timer to send no-op commands to the remote server on an\ninterval to prevent long-running unit tests from causing the session to\ntime out." - }, - "parameters": [ + }, { - "id": 139, - "name": "delay", + "id": 4148, + "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "Amount of time to wait between heartbeats. Setting the delay\nto 0 will disable heartbeats.\n" + "type": { + "type": "typeParameter", + "name": "T" + } + }, + { + "id": 4149, + "name": "fromIndex", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true }, "type": { - "type": "intrinsic", - "name": "number" + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] } } ], "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "name": "Benchmark.indexOf" } } ], "sources": [ { - "fileName": "lib/ProxiedSession.ts", - "line": 90, - "character": 22 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 17, + "character": 18 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Benchmark.indexOf" + } }, { - "id": 380, - "name": "setLocalStorageItem", + "id": 4150, + "name": "interpolate", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 381, - "name": "setLocalStorageItem", + "id": 4151, + "name": "interpolate", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 382, - "name": "key", + "id": 4152, + "name": "template", "kind": 32768, "kindString": "Parameter", "flags": {}, @@ -19036,821 +18882,1153 @@ } }, { - "id": 383, - "name": "value", + "id": 4153, + "name": "values", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Object" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "string" }, "inheritedFrom": { "type": "reference", - "name": "Session.setLocalStorageItem" + "name": "Benchmark.interpolate" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 111, - "character": 23 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 18, + "character": 22 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setLocalStorageItem" + "name": "Benchmark.interpolate" } }, { - "id": 295, - "name": "setOrientation", + "id": 4154, + "name": "invoke", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 296, - "name": "setOrientation", + "id": 4155, + "name": "invoke", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 297, - "name": "orientation", + "id": 4156, + "name": "benches", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "array", + "elementType": { + "type": "reference", + "name": "Benchmark" + } + } + }, + { + "id": 4157, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "Object" + } + ] + } + }, + { + "id": 4158, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } }, "inheritedFrom": { "type": "reference", - "name": "Session.setOrientation" + "name": "Benchmark.invoke" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 82, - "character": 18 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 19, + "character": 17 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setOrientation" + "name": "Benchmark.invoke" } }, { - "id": 430, - "name": "setPageLoadTimeout", + "id": 4159, + "name": "join", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 431, - "name": "setPageLoadTimeout", + "id": 4160, + "name": "join", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 432, - "name": "ms", + "id": 4161, + "name": "obj", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "Object" + } + }, + { + "id": 4162, + "name": "separator1", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 4163, + "name": "separator2", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "intrinsic", + "name": "string" }, "inheritedFrom": { "type": "reference", - "name": "Session.setPageLoadTimeout" + "name": "Benchmark.join" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 129, - "character": 22 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 20, + "character": 15 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setPageLoadTimeout" + "name": "Benchmark.join" } }, { - "id": 396, - "name": "setSessionStorageItem", + "id": 4164, + "name": "map", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 397, - "name": "setSessionStorageItem", + "id": 4165, + "name": "map", "kind": 4096, "kindString": "Call signature", "flags": {}, + "typeParameter": [ + { + "id": 4166, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 4167, + "name": "K", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 398, - "name": "key", + "id": 4168, + "name": "arr", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } } }, { - "id": 399, - "name": "value", + "id": 4169, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4170, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 4171, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4172, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "typeParameter", + "name": "K" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 21, + "character": 40 + } + ] + } + } + }, + { + "id": 4173, + "name": "thisArg", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, "type": { "type": "intrinsic", - "name": "string" + "name": "any" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "K" + } }, "inheritedFrom": { "type": "reference", - "name": "Session.setSessionStorageItem" + "name": "Benchmark.map" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 117, - "character": 25 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 21, + "character": 14 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setSessionStorageItem" + "name": "Benchmark.map" } }, { - "id": 171, - "name": "setTimeout", + "id": 4174, + "name": "pluck", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 172, - "name": "setTimeout", + "id": 4175, + "name": "pluck", "kind": 4096, "kindString": "Call signature", "flags": {}, + "typeParameter": [ + { + "id": 4176, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 4177, + "name": "K", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 173, - "name": "type", + "id": 4178, + "name": "arr", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "Timeout" + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } } }, { - "id": 174, - "name": "ms", + "id": 4179, + "name": "key", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", - "name": "number" + "name": "string" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "K" + } }, "inheritedFrom": { "type": "reference", - "name": "Session.setTimeout" + "name": "Benchmark.pluck" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 26, - "character": 14 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 22, + "character": 16 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setTimeout" + "name": "Benchmark.pluck" } }, { - "id": 249, - "name": "setWindowPosition", + "id": 4180, + "name": "reduce", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 250, - "name": "setWindowPosition", + "id": 4181, + "name": "reduce", "kind": 4096, "kindString": "Call signature", "flags": {}, + "typeParameter": [ + { + "id": 4182, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 4183, + "name": "K", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 251, - "name": "x", + "id": 4184, + "name": "arr", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "number" + "type": "array", + "elementType": { + "type": "typeParameter", + "name": "T" + } } }, { - "id": 252, - "name": "y", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.setWindowPosition" - } - }, - { - "id": 253, - "name": "setWindowPosition", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 254, - "name": "windowHandle", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 255, - "name": "x", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 256, - "name": "y", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.setWindowPosition" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 64, - "character": 21 - }, - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 65, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.setWindowPosition" - } - }, - { - "id": 241, - "name": "setWindowRect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 242, - "name": "setWindowRect", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 243, - "name": "rect", + "id": 4185, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reflection", "declaration": { - "id": 244, + "id": 4186, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, - "children": [ - { - "id": 248, - "name": "height", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 62, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 247, - "name": "width", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 61, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, + "signatures": [ { - "id": 245, - "name": "x", - "kind": 32, - "kindString": "Variable", + "id": 4187, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "sources": [ + "parameters": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 59, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 246, - "name": "y", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ + "id": 4188, + "name": "accumulator", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "K" + } + }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 60, - "character": 9 + "id": 4189, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } } ], "type": { - "type": "intrinsic", - "name": "number" + "type": "typeParameter", + "name": "K" } } ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 248, - 247, - 245, - 246 - ] - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 58, - "character": 23 + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 23, + "character": 43 } ] } } + }, + { + "id": 4190, + "name": "thisArg", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": "typeParameter", + "name": "K" }, "inheritedFrom": { "type": "reference", - "name": "Session.setWindowRect" + "name": "Benchmark.reduce" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 58, + "fileName": "node_modules/@types/benchmark/index.d.ts", + "line": 23, "character": 17 } ], "inheritedFrom": { "type": "reference", - "name": "Session.setWindowRect" + "name": "Benchmark.reduce" } + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 4310, + 4318, + 4329 + ] }, { - "id": 220, - "name": "setWindowSize", + "title": "Interfaces", + "kind": 256, + "children": [ + 4253, + 4273, + 4297, + 4284, + 4305 + ] + }, + { + "title": "Constructors", + "kind": 512, + "children": [ + 4195 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 4208, + 4209, + 4210, + 4211, + 4212, + 4213, + 4214, + 4095, + 4215, + 4216, + 4218, + 4217, + 4219, + 4191, + 4192, + 4193, + 4194 + ] + }, + { + "title": "Methods", "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 221, - "name": "setWindowSize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 222, - "name": "width", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 223, - "name": "height", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { + "children": [ + 4220, + 4222, + 4225, + 4228, + 4231, + 4234, + 4240, + 4246, + 4248, + 4251, + 4096, + 4100, + 4105, + 4109, + 4123, + 4135, + 4132, + 4140, + 4144, + 4150, + 4154, + 4159, + 4164, + 4174, + 4180 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 218, + "character": 32 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "Benchmark" + } + ] + }, + { + "id": 4428, + "name": "BenchmarkTestOptions", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 207, + "character": 32 + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "name": "Partial", + "typeArguments": [ + { "type": "reference", - "name": "Session.setWindowSize" + "name": "BenchmarkTestProperties", + "id": 4063 } - }, - { - "id": 224, - "name": "setWindowSize", - "kind": 4096, - "kindString": "Call signature", + ] + }, + { + "type": "reflection", + "declaration": { + "id": 4429, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "parameters": [ + "children": [ { - "id": 225, - "name": "windowHandle", - "kind": 32768, - "kindString": "Parameter", + "id": 4430, + "name": "name", + "kind": 32, + "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 208, + "character": 6 + } + ], "type": { "type": "intrinsic", "name": "string" } }, { - "id": 226, - "name": "width", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, + "id": 4432, + "name": "options", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 210, + "character": 9 + } + ], "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "BenchmarkOptions", + "id": 4072 } }, { - "id": 227, - "name": "height", - "kind": 32768, - "kindString": "Parameter", + "id": 4431, + "name": "test", + "kind": 32, + "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 209, + "character": 6 + } + ], "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "BenchmarkTestFunction", + "id": 4046 } } ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 4430, + 4432, + 4431 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 207, + "character": 69 + } + ] + } + } + ] + } + }, + { + "id": 4439, + "name": "createDeferred", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 4440, + "name": "createDeferred", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4441, + "name": "benchmark", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "type": { "type": "reference", - "name": "CancellablePromise", + "name": "Benchmark" + } + }, + { + "id": 4442, + "name": "deferred", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Deferred", + "id": 3453, "typeArguments": [ { "type": "intrinsic", - "name": "void" + "name": "any" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.setWindowSize" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 46, - "character": 17 }, { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 47, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.setWindowSize" - } - }, - { - "id": 210, - "name": "switchToFrame", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 211, - "name": "switchToFrame", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 212, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "reference", - "name": "Element" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], + "id": 4443, + "name": "numCallsUntilResolution", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ + "type": "union", + "types": [ { "type": "intrinsic", - "name": "void" + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.switchToFrame" } } ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 42, - "character": 17 + "type": { + "type": "reference", + "name": "Deferred", + "id": 3453, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 251, + "character": 23 + } + ] + }, + { + "id": 4436, + "name": "createLifecycle", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 4437, + "name": "createLifecycle", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4438, + "name": "before", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } } ], - "inheritedFrom": { + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 226, + "character": 21 + } + ] + }, + { + "id": 4433, + "name": "isBenchmarkTest", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 4434, + "name": "isBenchmarkTest", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 4435, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "name": "BenchmarkTest" + } + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 222, + "character": 31 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 3985 + ] + }, + { + "title": "Interfaces", + "kind": 256, + "children": [ + 4053, + 4072, + 4046, + 4063, + 4094 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 4428 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 4439, + 4436, + 4433 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/BenchmarkTest.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 7893, + "name": "\"core/lib/Channel\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/core/lib/Channel.ts", + "children": [ + { + "id": 7894, + "name": "Channel", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 7896, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 7897, + "name": "new Channel", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 7898, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "ChannelOptions", + "id": 6254 + } + } + ], + "type": { + "type": "reference", + "name": "Channel", + "id": 7894 + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Channel.ts", + "line": 12, + "character": 39 + } + ] + }, + { + "id": 7895, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/core/lib/Channel.ts", + "line": 9, + "character": 18 + } + ], + "type": { "type": "reference", - "name": "Session.switchToFrame" + "name": "ChannelOptions", + "id": 6254 } }, { - "id": 216, - "name": "switchToParentFrame", + "id": 7903, + "name": "_initialize", "kind": 2048, "kindString": "Method", "flags": { + "isProtected": true, "isExported": true }, "signatures": [ { - "id": 217, - "name": "switchToParentFrame", + "id": 7904, + "name": "_initialize", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", - "name": "CancellablePromise", + "name": "Promise", "typeArguments": [ { "type": "intrinsic", "name": "void" } ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.switchToParentFrame" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 44, + "fileName": "src/core/lib/Channel.ts", + "line": 24, "character": 23 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.switchToParentFrame" - } + ] }, { - "id": 213, - "name": "switchToWindow", + "id": 7899, + "name": "sendMessage", "kind": 2048, "kindString": "Method", "flags": { @@ -19858,98 +20036,227 @@ }, "signatures": [ { - "id": 214, - "name": "switchToWindow", + "id": 7900, + "name": "sendMessage", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 215, - "name": "handle", + "id": 7901, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "name": "RemoteEvents" + } + } + }, + { + "id": 7902, + "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", - "name": "string" + "name": "any" } } ], "type": { "type": "reference", - "name": "CancellablePromise", + "name": "Promise", "typeArguments": [ { "type": "intrinsic", - "name": "void" + "name": "any" } ] - }, - "inheritedFrom": { + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Channel.ts", + "line": 18, + "character": 13 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 7896 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 7895 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 7903, + 7899 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/Channel.ts", + "line": 8, + "character": 28 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 7894 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/Channel.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 3452, + "name": "\"core/lib/Deferred\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/core/lib/Deferred.ts", + "children": [ + { + "id": 3453, + "name": "Deferred", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 3454, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 3456, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 3457, + "name": "new Deferred", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { "type": "reference", - "name": "Session.switchToWindow" + "name": "Deferred", + "id": 3453 } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 43, + "fileName": "src/core/lib/Deferred.ts", + "line": 4, + "character": 31 + } + ] + }, + { + "id": 3455, + "name": "promise", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/core/lib/Deferred.ts", + "line": 4, "character": 18 } ], - "inheritedFrom": { + "type": { "type": "reference", - "name": "Session.switchToWindow" + "name": "Promise", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } }, { - "id": 197, - "name": "takeScreenshot", + "id": 3470, + "name": "_finalize", "kind": 2048, "kindString": "Method", "flags": { + "isProtected": true, "isExported": true }, "signatures": [ { - "id": 198, - "name": "takeScreenshot", + "id": 3471, + "name": "_finalize", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "reference", - "name": "Buffer" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.takeScreenshot" + "type": "intrinsic", + "name": "void" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 36, - "character": 18 + "fileName": "src/core/lib/Deferred.ts", + "line": 52, + "character": 21 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.takeScreenshot" - } + ] }, { - "id": 327, - "name": "tap", + "id": 3458, + "name": "callback", "kind": 2048, "kindString": "Method", "flags": { @@ -19957,55 +20264,44 @@ }, "signatures": [ { - "id": 328, - "name": "tap", + "id": 3459, + "name": "callback", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Wraps any callback to resolve the deferred so long as the callback\nexecutes without throwing any Errors." + }, "parameters": [ { - "id": 329, - "name": "element", + "id": 3460, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Element" + "name": "Function" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.tap" + "type": "intrinsic", + "name": "any" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 94, - "character": 7 + "fileName": "src/core/lib/Deferred.ts", + "line": 21, + "character": 10 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.tap" - } + ] }, { - "id": 342, - "name": "touchScroll", + "id": 3467, + "name": "reject", "kind": 2048, "kindString": "Method", "flags": { @@ -20013,60 +20309,105 @@ }, "signatures": [ { - "id": 343, - "name": "touchScroll", + "id": 3468, + "name": "reject", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 344, - "name": "xOffset", + "id": 3469, + "name": "error", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "Error", + "id": 690 } - }, + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/core/lib/Deferred.ts", + "line": 48, + "character": 8 + } + ] + }, + { + "id": 3461, + "name": "rejectOnError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 3462, + "name": "rejectOnError", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Wraps a callback to reject the deferred if the callback throws an Error." + }, + "parameters": [ { - "id": 345, - "name": "yOffset", + "id": 3463, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "Function" } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.touchScroll" + "type": "intrinsic", + "name": "any" } - }, + } + ], + "sources": [ { - "id": 346, - "name": "touchScroll", + "fileName": "src/core/lib/Deferred.ts", + "line": 33, + "character": 15 + } + ] + }, + { + "id": 3464, + "name": "resolve", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 3465, + "name": "resolve", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 347, - "name": "element", + "id": 3466, + "name": "value", "kind": 32768, "kindString": "Parameter", "flags": { @@ -20074,625 +20415,423 @@ }, "type": { "type": "reference", - "name": "Element" - } - }, - { - "id": 348, - "name": "xOffset", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 349, - "name": "yOffset", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "name": "T", + "id": 3454 } } ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.touchScroll" + "type": "intrinsic", + "name": "void" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 98, - "character": 15 - }, - { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 99, - "character": 15 + "fileName": "src/core/lib/Deferred.ts", + "line": 44, + "character": 9 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.touchScroll" - } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 3456 + ] }, { - "id": 300, - "name": "typeInPrompt", + "title": "Properties", + "kind": 1024, + "children": [ + 3455 + ] + }, + { + "title": "Methods", "kind": 2048, - "kindString": "Method", + "children": [ + 3470, + 3458, + 3467, + 3461, + 3464 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/Deferred.ts", + "line": 1, + "character": 29 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 3453 + ] + } + ], + "sources": [ + { + "fileName": "src/core/lib/Deferred.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 5592, + "name": "\"core/lib/Environment\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "src/core/lib/Environment.ts", + "children": [ + { + "id": 5593, + "name": "Environment", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 5602, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { - "id": 301, - "name": "typeInPrompt", - "kind": 4096, - "kindString": "Call signature", + "id": 5603, + "name": "new Environment", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 302, - "name": "text", + "id": 5604, + "name": "kwArgs", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 5605, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 5606, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 5607, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } } - } - ] + ], + "sources": [ + { + "fileName": "src/core/lib/Environment.ts", + "line": 11, + "character": 21 + } + ] + } } } ], "type": { "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.typeInPrompt" + "name": "Environment", + "id": 5593 } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 84, - "character": 16 + "fileName": "src/core/lib/Environment.ts", + "line": 9, + "character": 18 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Session.typeInPrompt" - } + ] }, { - "id": 414, - "name": "waitForDeleted", - "kind": 2048, - "kindString": "Method", + "id": 5594, + "name": "browser", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 415, - "name": "waitForDeleted", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 416, - "name": "using", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Strategy" - } - }, - { - "id": 417, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "overwrites": { - "type": "reference", - "name": "Locator.waitForDeleted" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.waitForDeleted" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/Session.d.ts", - "line": 123, - "character": 18 + "fileName": "src/core/lib/Environment.ts", + "line": 2, + "character": 9 } ], - "overwrites": { - "type": "reference", - "name": "Locator.waitForDeleted" - }, - "inheritedFrom": { - "type": "reference", - "name": "Session.waitForDeleted" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } }, { - "id": 502, - "name": "waitForDeletedByClassName", - "kind": 2048, - "kindString": "Method", + "id": 5595, + "name": "browserName", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 503, - "name": "waitForDeletedByClassName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 504, - "name": "className", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByClassName" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 29, - "character": 29 + "fileName": "src/core/lib/Environment.ts", + "line": 3, + "character": 13 } ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByClassName" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } }, { - "id": 505, - "name": "waitForDeletedByCssSelector", - "kind": 2048, - "kindString": "Method", + "id": 5596, + "name": "browserVersion", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 506, - "name": "waitForDeletedByCssSelector", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 507, - "name": "selector", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByCssSelector" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 30, - "character": 31 + "fileName": "src/core/lib/Environment.ts", + "line": 4, + "character": 16 } ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByCssSelector" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } }, { - "id": 508, - "name": "waitForDeletedById", - "kind": 2048, - "kindString": "Method", + "id": 5601, + "name": "device", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 509, - "name": "waitForDeletedById", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 510, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedById" - } + "fileName": "src/core/lib/Environment.ts", + "line": 9, + "character": 8 } ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 5598, + "name": "platform", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 31, - "character": 22 + "fileName": "src/core/lib/Environment.ts", + "line": 6, + "character": 10 } ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedById" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } }, { - "id": 514, - "name": "waitForDeletedByLinkText", - "kind": 2048, - "kindString": "Method", + "id": 5599, + "name": "platformName", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ + "sources": [ { - "id": 515, - "name": "waitForDeletedByLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 516, - "name": "text", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByLinkText" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 33, - "character": 28 + "fileName": "src/core/lib/Environment.ts", + "line": 7, + "character": 14 } ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByLinkText" - } - }, - { - "id": 511, - "name": "waitForDeletedByName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 512, - "name": "waitForDeletedByName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 513, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByName" + { + "type": "intrinsic", + "name": "string" } - } - ], - "sources": [ - { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 32, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByName" + ] } }, { - "id": 517, - "name": "waitForDeletedByPartialLinkText", - "kind": 2048, - "kindString": "Method", + "id": 5600, + "name": "platformVersion", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 518, - "name": "waitForDeletedByPartialLinkText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 519, - "name": "text", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByPartialLinkText" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 34, - "character": 35 + "fileName": "src/core/lib/Environment.ts", + "line": 8, + "character": 17 } ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByPartialLinkText" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } }, { - "id": 520, - "name": "waitForDeletedByTagName", - "kind": 2048, - "kindString": "Method", + "id": 5597, + "name": "version", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, - "signatures": [ - { - "id": 521, - "name": "waitForDeletedByTagName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 522, - "name": "tagName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByTagName" - } - } - ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 35, - "character": 27 + "fileName": "src/core/lib/Environment.ts", + "line": 5, + "character": 9 } ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByTagName" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } }, { - "id": 523, - "name": "waitForDeletedByXpath", + "id": 5608, + "name": "toString", "kind": 2048, "kindString": "Method", "flags": { @@ -20700,51 +20839,24 @@ }, "signatures": [ { - "id": 524, - "name": "waitForDeletedByXpath", + "id": 5609, + "name": "toString", "kind": 4096, "kindString": "Call signature", "flags": {}, - "parameters": [ - { - "id": 525, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "type": { - "type": "reference", - "name": "CancellablePromise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByXpath" + "type": "intrinsic", + "name": "string" } } ], "sources": [ { - "fileName": "node_modules/@theintern/leadfoot/lib/Locator.d.ts", - "line": 36, - "character": 25 + "fileName": "src/core/lib/Environment.ts", + "line": 18, + "character": 10 } - ], - "inheritedFrom": { - "type": "reference", - "name": "Locator.waitForDeletedByXpath" - } + ] } ], "groups": [ @@ -20752,205 +20864,36 @@ "title": "Constructors", "kind": 512, "children": [ - 142 + 5602 ] }, { "title": "Properties", "kind": 1024, "children": [ - 127, - 147, - 128, - 129, - 149, - 148 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 130 + 5594, + 5595, + 5596, + 5601, + 5598, + 5599, + 5600, + 5597 ] }, { "title": "Methods", "kind": 2048, "children": [ - 140, - 303, - 207, - 271, - 384, - 400, - 316, - 218, - 205, - 273, - 389, - 405, - 305, - 325, - 350, - 187, - 192, - 280, - 284, - 457, - 460, - 466, - 463, - 469, - 472, - 475, - 433, - 436, - 439, - 445, - 442, - 448, - 451, - 454, - 410, - 478, - 481, - 484, - 490, - 487, - 493, - 496, - 499, - 356, - 132, - 288, - 201, - 298, - 177, - 376, - 199, - 374, - 266, - 179, - 175, - 418, - 423, - 366, - 386, - 378, - 392, - 371, - 293, - 428, - 276, - 278, - 402, - 394, - 408, - 168, - 257, - 234, - 228, - 183, - 181, - 203, - 353, - 263, - 338, - 307, - 330, - 290, - 319, - 135, - 185, - 334, - 322, - 162, - 150, - 156, - 268, - 420, - 425, - 368, - 137, - 380, - 295, - 430, - 396, - 171, - 249, - 241, - 220, - 210, - 216, - 213, - 197, - 327, - 342, - 300, - 414, - 502, - 505, - 508, - 514, - 511, - 517, - 520, - 523 + 5608 ] } ], "sources": [ { - "fileName": "lib/ProxiedSession.ts", - "line": 20, - "character": 35 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "Session" - } - ] - }, - { - "id": 526, - "name": "getCoverageData", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 527, - "name": "getCoverageData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 528, - "name": "coverageVariable", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/ProxiedSession.ts", - "line": 7, - "character": 24 + "fileName": "src/core/lib/Environment.ts", + "line": 1, + "character": 32 } ] } @@ -20960,1490 +20903,1334 @@ "title": "Classes", "kind": 128, "children": [ - 126 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [ - 526 + 5593 ] } ], "sources": [ { - "fileName": "lib/ProxiedSession.ts", + "fileName": "src/core/lib/Environment.ts", "line": 1, "character": 0 } ] }, { - "id": 1030, - "name": "\"lib/RemoteSuite\"", + "id": 5185, + "name": "\"core/lib/ProxiedSession\"", "kind": 1, "kindString": "External module", "flags": { "isExported": true }, - "originalName": "src/lib/RemoteSuite.ts", + "originalName": "src/core/lib/ProxiedSession.ts", "children": [ { - "id": 1031, - "name": "RemoteSuite", + "id": 5186, + "name": "ProxiedSession", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "comment": { - "shortText": "RemoteSuite is a class that acts as a local server for one or more unit test\nsuites being run in a remote browser." + "shortText": "A ProxiedSession object represents a WebDriver session that interacts with\nthe Intern instrumenting server. It collects code instrumentation data from\npages and converts local filesystem paths into URLs for use with\n`leadfoot/Session#get`." }, "children": [ { - "id": 1033, + "id": 5202, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, + "comment": { + "shortText": "A Session represents a connection to a remote environment that can be\ndriven programmatically." + }, "signatures": [ { - "id": 1034, - "name": "new RemoteSuite", + "id": 5203, + "name": "new ProxiedSession", "kind": 16384, "kindString": "Constructor signature", "flags": {}, + "comment": { + "shortText": "A Session represents a connection to a remote environment that can be\ndriven programmatically." + }, "parameters": [ { - "id": 1035, - "name": "options", + "id": 5204, + "name": "sessionId", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true + "flags": {}, + "comment": { + "shortText": "The ID of the session, as provided by the remote." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5205, + "name": "server", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The server that the session belongs to." }, "type": { "type": "reference", - "name": "Partial", - "typeArguments": [ - { - "type": "reference", - "name": "SuiteOptions", - "id": 3492 - } - ] + "name": "Server", + "id": 694 + } + }, + { + "id": 5206, + "name": "capabilities", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A map of bugs and features that the remote\nenvironment exposes.\n" + }, + "type": { + "type": "reference", + "name": "Capabilities", + "id": 561 } } ], "type": { "type": "reference", - "name": "RemoteSuite", - "id": 1031 + "name": "ProxiedSession", + "id": 5186 }, - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Suite.__constructor", - "id": 3415 + "name": "Session.__constructor", + "id": 951 } } ], "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 22, - "character": 18 + "fileName": "src/webdriver/Session.ts", + "line": 42, + "character": 60 } ], - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Suite.__constructor", - "id": 3415 + "name": "Session.__constructor", + "id": 951 } }, { - "id": 1040, - "name": "after", + "id": 5187, + "name": "baseUrl", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "comment": { - "shortText": "An optional method that is run after all the suite's tests have completed" + "shortText": "The base URL for relative URLs." }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 22, - "character": 7 + "fileName": "src/core/lib/ProxiedSession.ts", + "line": 23, + "character": 9 } ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.after", - "id": 3401 + "type": "intrinsic", + "name": "string" }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.after", - "id": 3480 - } + "defaultValue": "\"\"" }, { - "id": 1041, - "name": "afterEach", + "id": 5188, + "name": "coverageVariable", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "comment": { - "shortText": "An optional method that is run after each test has completed" + "shortText": "The name of the global variable used to store coverage data." }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 27, - "character": 11 + "fileName": "src/core/lib/ProxiedSession.ts", + "line": 28, + "character": 18 } ], "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.afterEach", - "id": 3402 + "type": "intrinsic", + "name": "string" }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.afterEach", - "id": 3481 - } + "defaultValue": "\"\"" }, { - "id": 1042, - "name": "async", + "id": 5189, + "name": "executor", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "comment": { - "shortText": "A convenience function that generates and returns a special\n[[lib/Deferred.Deferred]] that can be used for asynchronous testing" + "shortText": "The Executor hosting this session." }, "sources": [ { - "fileName": "lib/Suite.ts", + "fileName": "src/core/lib/ProxiedSession.ts", "line": 33, - "character": 7 + "character": 10 } ], "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 1043, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 1044, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 1045, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "type": { - "type": "reference", - "name": "Deferred", - "id": 3, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 33, - "character": 8 - } - ] - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { "type": "reference", - "name": "Suite.async", - "id": 3403 + "name": "Node", + "id": 7088 } }, { - "id": 1046, - "name": "before", - "kind": 1024, - "kindString": "Property", + "id": 5207, + "name": "capabilities", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, "comment": { - "shortText": "An optional method that is run before any of this suite's tests are\nstarted" + "shortText": "Information about the available features and bugs in the remote\nenvironment." }, - "sources": [ + "getSignature": [ { - "fileName": "lib/Suite.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 5208, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "Information about the available features and bugs in the remote\nenvironment." + }, + "type": { "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 + "name": "Capabilities", + "id": 561 }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.capabilities", + "id": 956 } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.before", - "id": 3407 - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.before", - "id": 3483 - } - }, - { - "id": 1047, - "name": "beforeEach", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An optional method that is run before each test" - }, + } + ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 44, - "character": 12 + "fileName": "src/webdriver/Session.ts", + "line": 71, + "character": 18 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, "inheritedFrom": { "type": "reference", - "name": "Suite.beforeEach", - "id": 3408 - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.beforeEach", - "id": 3484 + "name": "Session.capabilities", + "id": 956 } }, { - "id": 1048, - "name": "error", - "kind": 1024, - "kindString": "Property", + "id": 5190, + "name": "coverageEnabled", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, - "comment": { - "shortText": "The error that caused this suite to fail" - }, - "sources": [ + "getSignature": [ { - "fileName": "lib/Suite.ts", - "line": 47, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "InternError", - "id": 23 - }, - { + "id": 5191, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "type": { "type": "intrinsic", - "name": "undefined" + "name": "boolean" } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.error", - "id": 3409 - } - }, - { - "id": 1032, - "name": "executor", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, + } + ], "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 22, - "character": 10 + "fileName": "src/core/lib/ProxiedSession.ts", + "line": 37, + "character": 21 } - ], - "type": { - "type": "reference", - "name": "Node", - "id": 2600 - }, - "overwrites": { - "type": "reference", - "name": "Suite.executor", - "id": 3422 - } + ] }, { - "id": 1049, - "name": "parent", - "kind": 1024, - "kindString": "Property", + "id": 5211, + "name": "server", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, "comment": { - "shortText": "This suite's parent Suite" + "shortText": "The Server that the session runs on." }, - "sources": [ + "getSignature": [ { - "fileName": "lib/Suite.ts", - "line": 50, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 5212, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The Server that the session runs on." + }, + "type": { "type": "reference", - "name": "Suite", - "id": 3400 + "name": "Server", + "id": 694 }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.server", + "id": 960 } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.parent", - "id": 3410 - } - }, - { - "id": 1050, - "name": "publishAfterSetup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "If true, the suite will emit a suiteStart event after the `before`\ncallback has finished, and will emit a suiteEnd event before the `after`\ncallback has finished." - }, + } + ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 57, - "character": 19 + "fileName": "src/webdriver/Session.ts", + "line": 85, + "character": 12 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false", "inheritedFrom": { "type": "reference", - "name": "Suite.publishAfterSetup", - "id": 3411 - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.publishAfterSetup", - "id": 3487 + "name": "Session.server", + "id": 960 } }, { - "id": 1051, - "name": "skipped", - "kind": 1024, - "kindString": "Property", + "id": 5209, + "name": "sessionId", + "kind": 262144, + "kindString": "Accessor", "flags": { "isExported": true }, "comment": { - "shortText": "The reason why this suite was skipped" + "shortText": "The current session ID." }, - "sources": [ + "getSignature": [ { - "fileName": "lib/Suite.ts", - "line": 60, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 5210, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "The current session ID." + }, + "type": { "type": "intrinsic", "name": "string" }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.sessionId", + "id": 958 } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.skipped", - "id": 3412 - } - }, - { - "id": 1052, - "name": "tests", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The tests or other suites managed by this suite" - }, + } + ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 63, - "character": 7 + "fileName": "src/webdriver/Session.ts", + "line": 78, + "character": 15 } ], - "type": { - "type": "array", - "elementType": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Suite", - "id": 3400 - }, - { - "type": "reference", - "name": "Test", - "id": 3317 - } - ] - } - }, - "defaultValue": " []", "inheritedFrom": { "type": "reference", - "name": "Suite.tests", - "id": 3413 + "name": "Session.sessionId", + "id": 958 } }, { - "id": 1053, - "name": "timeElapsed", - "kind": 1024, - "kindString": "Property", + "id": 5200, + "name": "_getCoverage", + "kind": 2048, + "kindString": "Method", "flags": { + "isProtected": true, "isExported": true }, - "comment": { - "shortText": "The time required to run all the tests in this suite" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 66, - "character": 13 + "id": 5201, + "name": "_getCoverage", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "void" + } + ] + } + ] + } } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.timeElapsed", - "id": 3414 - } + "sources": [ + { + "fileName": "src/core/lib/ProxiedSession.ts", + "line": 127, + "character": 24 + } + ] }, { - "id": 1054, - "name": "bail", - "kind": 262144, - "kindString": "Accessor", + "id": 5366, + "name": "acceptAlert", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." - }, - "getSignature": [ + "signatures": [ { - "id": 1055, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5367, + "name": "acceptAlert", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." + "shortText": "Accepts an alert, prompt, or confirmation pop-up. Equivalent to clicking\nthe 'OK' button." }, "type": { - "type": "intrinsic", - "name": "boolean" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.bail", - "id": 3418 + "name": "Session.acceptAlert", + "id": 1118 } } ], - "setSignature": [ + "sources": [ { - "id": 1056, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "fileName": "src/webdriver/Session.ts", + "line": 1465, + "character": 13 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.acceptAlert", + "id": 1118 + } + }, + { + "id": 5270, + "name": "activateIme", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 5271, + "name": "activateIme", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." + "shortText": "Activates an input method editor in the remote environment.\nAs of April 2014, no known remote environments support IME functions." }, "parameters": [ { - "id": 1057, - "name": "value", + "id": 5272, + "name": "engine", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The type of IME to activate.\n" + }, "type": { "type": "intrinsic", - "name": "boolean" + "name": "string" } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.bail", - "id": 3418 + "name": "Session.activateIme", + "id": 1022 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 102, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 106, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 569, + "character": 13 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.bail", - "id": 3418 - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.bail", - "id": 3482 + "name": "Session.activateIme", + "id": 1022 } }, { - "id": 1058, - "name": "grep", - "kind": 262144, - "kindString": "Accessor", + "id": 5334, + "name": "clearCookies", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." - }, - "getSignature": [ + "signatures": [ { - "id": 1059, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5335, + "name": "clearCookies", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." + "shortText": "Clears all cookies for the current page." }, "type": { "type": "reference", - "name": "RegExp" - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.grep", - "id": 3426 - } - } - ], - "setSignature": [ - { - "id": 1060, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", - "flags": {}, - "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." - }, - "parameters": [ - { - "id": 1061, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "RegExp" + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" } - } - ], - "type": { - "type": "intrinsic", - "name": "void" + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.grep", - "id": 3426 + "name": "Session.clearCookies", + "id": 1086 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 130, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 134, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 1124, + "character": 14 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.grep", - "id": 3426 - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.grep", - "id": 3485 + "name": "Session.clearCookies", + "id": 1086 } }, { - "id": 1084, - "name": "hasParent", - "kind": 262144, - "kindString": "Accessor", + "id": 5447, + "name": "clearLocalStorage", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." - }, - "getSignature": [ + "signatures": [ { - "id": 1085, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5448, + "name": "clearLocalStorage", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." + "shortText": "Clears all data in local storage for the focused window/frame." }, "type": { - "type": "intrinsic", - "name": "boolean" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.hasParent", - "id": 3454 + "name": "Session.clearLocalStorage", + "id": 1201 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 278, - "character": 15 + "fileName": "src/webdriver/Session.ts", + "line": 2008, + "character": 19 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.hasParent", - "id": 3454 + "name": "Session.clearLocalStorage", + "id": 1201 } }, { - "id": 1036, - "name": "id", - "kind": 262144, - "kindString": "Accessor", + "id": 5463, + "name": "clearSessionStorage", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Override Suite#id to exclude the RemoteSuite's name from the generated ID\nsince the RemoteSuite is just a proxy for a remote suite." - }, - "getSignature": [ + "signatures": [ { - "id": 1037, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5464, + "name": "clearSessionStorage", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Override Suite#id to exclude the RemoteSuite's name from the generated ID\nsince the RemoteSuite is just a proxy for a remote suite." + "shortText": "Clears all data in session storage for the focused window/frame." }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Suite.id", - "id": 3434 + "name": "Session.clearSessionStorage", + "id": 1217 } } ], "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 41, - "character": 8 + "fileName": "src/webdriver/Session.ts", + "line": 2059, + "character": 21 } ], - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Suite.id", - "id": 3434 + "name": "Session.clearSessionStorage", + "id": 1217 } }, { - "id": 1062, - "name": "name", - "kind": 262144, - "kindString": "Accessor", + "id": 5379, + "name": "clickMouseButton", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "This suite's name" - }, - "getSignature": [ - { - "id": 1063, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "This suite's name" - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.name", - "id": 3430 - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 1064, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 5380, + "name": "clickMouseButton", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "This suite's name" + "shortText": "Clicks a mouse button at the point where the mouse cursor is currently\npositioned. This method may fail to execute with an error if the mouse\nhas not been moved anywhere since the page was loaded." }, "parameters": [ { - "id": 1065, - "name": "value", + "id": 5381, + "name": "button", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, + "comment": { + "text": "The button to click. 0 corresponds to the primary mouse\nbutton, 1 to the middle mouse button, 2 to the secondary mouse button.\nNumbers above 2 correspond to any additional buttons a mouse might\nprovide.\n" + }, "type": { "type": "union", "types": [ { "type": "intrinsic", - "name": "string" + "name": "undefined" }, { "type": "intrinsic", - "name": "undefined" + "name": "number" } ] } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.name", - "id": 3430 + "name": "Session.clickMouseButton", + "id": 1131 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 142, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 146, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 1586, + "character": 18 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.name", - "id": 3430 - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.name", - "id": 3486 + "name": "Session.clickMouseButton", + "id": 1131 } }, { - "id": 1080, - "name": "numFailedTests", - "kind": 262144, - "kindString": "Accessor", + "id": 5281, + "name": "closeCurrentWindow", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." - }, - "getSignature": [ + "signatures": [ { - "id": 1081, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5282, + "name": "closeCurrentWindow", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." + "shortText": "Closes the currently focused window. In most environments, after the\nwindow has been closed, it is necessary to explicitly switch to whatever\nwindow is now focused." }, "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.numFailedTests", - "id": 3450 + "name": "Session.closeCurrentWindow", + "id": 1033 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 248, + "fileName": "src/webdriver/Session.ts", + "line": 670, "character": 20 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.numFailedTests", - "id": 3450 + "name": "Session.closeCurrentWindow", + "id": 1033 } }, { - "id": 1078, - "name": "numPassedTests", - "kind": 262144, - "kindString": "Accessor", + "id": 5268, + "name": "deactivateIme", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The total number of tests in this test suite that passed." - }, - "getSignature": [ + "signatures": [ { - "id": 1079, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5269, + "name": "deactivateIme", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The total number of tests in this test suite that passed." + "shortText": "Deactivates any active input method editor in the remote environment.\nAs of April 2014, no known remote environments support IME functions." }, "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.numPassedTests", - "id": 3448 + "name": "Session.deactivateIme", + "id": 1020 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 233, - "character": 20 + "fileName": "src/webdriver/Session.ts", + "line": 559, + "character": 15 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.numPassedTests", - "id": 3448 + "name": "Session.deactivateIme", + "id": 1020 } }, { - "id": 1082, - "name": "numSkippedTests", - "kind": 262144, - "kindString": "Accessor", + "id": 5336, + "name": "deleteCookie", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." - }, - "getSignature": [ + "signatures": [ { - "id": 1083, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5337, + "name": "deleteCookie", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." + "shortText": "Deletes a cookie on the current page." }, + "parameters": [ + { + "id": 5338, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The name of the cookie to delete.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.numSkippedTests", - "id": 3452 + "name": "Session.deleteCookie", + "id": 1088 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 263, - "character": 21 + "fileName": "src/webdriver/Session.ts", + "line": 1159, + "character": 14 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.numSkippedTests", - "id": 3452 + "name": "Session.deleteCookie", + "id": 1088 } }, { - "id": 1076, - "name": "numTests", - "kind": 262144, - "kindString": "Accessor", + "id": 5452, + "name": "deleteLocalStorageItem", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." - }, - "getSignature": [ + "signatures": [ { - "id": 1077, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5453, + "name": "deleteLocalStorageItem", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." + "shortText": "Deletes a value from local storage for the focused window/frame." }, + "parameters": [ + { + "id": 5454, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The key of the data to delete.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "intrinsic", - "name": "number" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.numTests", - "id": 3446 + "name": "Session.deleteLocalStorageItem", + "id": 1206 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 221, - "character": 14 + "fileName": "src/webdriver/Session.ts", + "line": 2026, + "character": 24 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.numTests", - "id": 3446 + "name": "Session.deleteLocalStorageItem", + "id": 1206 } }, { - "id": 1066, - "name": "parentId", - "kind": 262144, - "kindString": "Accessor", + "id": 5468, + "name": "deleteSessionStorageItem", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The unique identifier of the suite's parent." - }, - "getSignature": [ + "signatures": [ { - "id": 1067, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5469, + "name": "deleteSessionStorageItem", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The unique identifier of the suite's parent." + "shortText": "Deletes a value from session storage for the focused window/frame." }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "parameters": [ + { + "id": 5470, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The key of the data to delete.\n" }, - { + "type": { "type": "intrinsic", "name": "string" } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.parentId", - "id": 3436 + "name": "Session.deleteSessionStorageItem", + "id": 1222 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 171, - "character": 14 + "fileName": "src/webdriver/Session.ts", + "line": 2077, + "character": 26 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.parentId", - "id": 3436 + "name": "Session.deleteSessionStorageItem", + "id": 1222 } }, { - "id": 1068, - "name": "remote", - "kind": 262144, - "kindString": "Accessor", + "id": 5368, + "name": "dismissAlert", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." - }, - "getSignature": [ + "signatures": [ { - "id": 1069, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5369, + "name": "dismissAlert", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." + "shortText": "Dismisses an alert, prompt, or confirmation pop-up. Equivalent to\nclicking the 'OK' button of an alert pop-up or the 'Cancel' button of a\nprompt or confirmation pop-up." }, "type": { "type": "reference", - "name": "Remote", - "id": 2813 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.remote", - "id": 3438 + "name": "Session.dismissAlert", + "id": 1120 } } ], - "setSignature": [ + "sources": [ { - "id": 1070, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "fileName": "src/webdriver/Session.ts", + "line": 1474, + "character": 14 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.dismissAlert", + "id": 1120 + } + }, + { + "id": 5388, + "name": "doubleClick", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 5389, + "name": "doubleClick", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." + "shortText": "Double-clicks the primary mouse button." }, - "parameters": [ - { - "id": 1071, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Remote", - "id": 2813 - } - } - ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.remote", - "id": 3438 + "name": "Session.doubleClick", + "id": 1140 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 184, - "character": 12 - }, - { - "fileName": "lib/Suite.ts", - "line": 190, - "character": 12 + "fileName": "src/webdriver/Session.ts", + "line": 1655, + "character": 13 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.remote", - "id": 3438 + "name": "Session.doubleClick", + "id": 1140 } }, { - "id": 1072, - "name": "sessionId", - "kind": 262144, - "kindString": "Accessor", + "id": 5413, + "name": "doubleTap", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The sessionId of the environment in which the suite executed." - }, - "getSignature": [ + "decorators": [ { - "id": 1073, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The sessionId of the environment in which the suite executed." - }, + "name": "forCommand", "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { "type": "reference", - "name": "Suite.sessionId", - "id": 3442 + "name": "forCommand", + "id": 1381 + }, + "arguments": { + "properties": "{ usesElement: true }", + "__scrubbed__": true, + "__lenormalized__": true } } ], - "setSignature": [ + "signatures": [ { - "id": 1074, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 5414, + "name": "doubleTap", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The sessionId of the environment in which the suite executed." + "shortText": "Performs a double-tap gesture on an element." }, "parameters": [ { - "id": 1075, - "name": "value", + "id": 5415, + "name": "element", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, + "comment": { + "text": "The element to double-tap.\n" + }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Element", + "id": 1415 } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.sessionId", - "id": 3442 + "name": "Session.doubleTap", + "id": 1165 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 200, - "character": 15 - }, - { - "fileName": "lib/Suite.ts", - "line": 213, - "character": 15 + "fileName": "src/webdriver/Session.ts", + "line": 1802, + "character": 11 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.sessionId", - "id": 3442 + "name": "Session.doubleTap", + "id": 1165 } }, { - "id": 1086, - "name": "timeout", - "kind": 262144, - "kindString": "Accessor", + "id": 5250, + "name": "execute", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "getSignature": [ + "signatures": [ { - "id": 1087, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5251, + "name": "execute", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" + "comment": { + "shortText": "Executes JavaScript code within the focused window/frame. The code\nshould return a value synchronously.", + "text": "See [[Session.Session.executeAsync]] to execute code that returns values\nasynchronously.\n", + "returns": "The value returned by the remote code. Only values that can be\nserialised to JSON, plus DOM elements, can be returned.\n" }, - "inheritedFrom": { - "type": "reference", - "name": "Suite.timeout", - "id": 3456 - } - } - ], - "setSignature": [ - { - "id": 1088, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", - "flags": {}, + "typeParameter": [ + { + "id": 5252, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 1089, - "name": "value", + "id": 5253, + "name": "script", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The code to execute. This function will always be\nconverted to a string, sent to the remote environment, and reassembled\nas a new anonymous function on the remote end. This means that you\ncannot access any variables through closure. If your code needs to get\ndata from variables on the local end, they should be passed using\n`args`.\n" + }, "type": { - "type": "intrinsic", - "name": "number" + "type": "union", + "types": [ + { + "type": "reference", + "name": "Function" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 5254, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "An array of arguments that will be passed to the executed\ncode. Only values that can be serialised to JSON, plus\n[[Element.Element]] objects, can be specified as arguments.\n" + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.timeout", - "id": 3456 + "name": "Session.execute", + "id": 1002 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 282, - "character": 13 - }, - { - "fileName": "lib/Suite.ts", - "line": 292, - "character": 13 + "fileName": "src/webdriver/Session.ts", + "line": 414, + "character": 9 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.timeout", - "id": 3456 - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.timeout", - "id": 3488 + "name": "Session.execute", + "id": 1002 } }, { - "id": 1090, - "name": "add", + "id": 5255, + "name": "executeAsync", "kind": 2048, "kindString": "Method", "flags": { @@ -22451,65 +22238,103 @@ }, "signatures": [ { - "id": 1091, - "name": "add", + "id": 5256, + "name": "executeAsync", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Add a test or suite to this suite." + "shortText": "Executes JavaScript code within the focused window/frame. The code must\ninvoke the provided callback in order to signal that it has completed\nexecution.", + "text": "See [[Session.Session.execute]] to execute code that returns values\nsynchronously.\n\nSee [[Session.Session.setExecuteAsyncTimeout]] to set the time until an\nasynchronous script is considered timed out.\n", + "returns": "The value returned by the remote code. Only values that can be\nserialised to JSON, plus DOM elements, can be returned.\n" }, + "typeParameter": [ + { + "id": 5257, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 1092, - "name": "suiteOrTest", + "id": 5258, + "name": "script", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The code to execute. This function will always be\nconverted to a string, sent to the remote environment, and reassembled\nas a new anonymous function on the remote end. This means that you\ncannot access any variables through closure. If your code needs to get\ndata from variables on the local end, they should be passed using\n`args`.\n" + }, "type": { "type": "union", "types": [ { "type": "reference", - "name": "Suite", - "id": 3400 + "name": "Function" }, { - "type": "reference", - "name": "Test", - "id": 3317 + "type": "intrinsic", + "name": "string" } ] } + }, + { + "id": 5259, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "An array of arguments that will be passed to the executed\ncode. Only values that can be serialised to JSON, plus\n[[Element.Element]] objects, can be specified as arguments. In addition\nto these arguments, a callback function will always be passed as the\nfinal argument to the function specified in `script`. This callback\nfunction must be invoked in order to signal that execution has\ncompleted. The return value of the execution, if any, should be passed\nto this callback function.\n" + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] }, "inheritedFrom": { "type": "reference", - "name": "Suite.add", - "id": 3460 + "name": "Session.executeAsync", + "id": 1007 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 299, - "character": 5 + "fileName": "src/webdriver/Session.ts", + "line": 479, + "character": 14 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.add", - "id": 3460 + "name": "Session.executeAsync", + "id": 1007 } }, { - "id": 1038, - "name": "run", + "id": 5343, + "name": "find", "kind": 2048, "kindString": "Method", "flags": { @@ -22517,47 +22342,91 @@ }, "signatures": [ { - "id": 1039, - "name": "run", + "id": 5344, + "name": "find", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Run a suite in a remote browser." + "shortText": "Gets the first element from the focused window/frame that matches the\ngiven query.", + "text": "See [[Session.Session.setFindTimeout]] to set the amount of time it the\nremote environment should spend waiting for an element that does not\nexist at the time of the `find` call before timing out.\n" }, + "parameters": [ + { + "id": 5345, + "name": "using", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The element retrieval strategy to use. One of 'class name',\n'css selector', 'id', 'name', 'link text', 'partial link text', 'tag\nname', 'xpath'.\n" + }, + "type": { + "type": "reference", + "name": "Strategy", + "id": 931 + } + }, + { + "id": 5346, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The strategy-specific value to search for. For example, if\n`using` is 'id', `value` should be the ID of the element to retrieve.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { "type": "reference", "name": "CancellablePromise", + "id": 2, "typeArguments": [ { - "type": "intrinsic", - "name": "any" + "type": "reference", + "name": "Element", + "id": 1415 } ] }, "overwrites": { "type": "reference", - "name": "Suite.run", - "id": 3463 + "name": "Locator.find", + "id": 802 + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.find", + "id": 1095 } } ], "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 55, - "character": 5 + "fileName": "src/webdriver/Session.ts", + "line": 1237, + "character": 6 } ], "overwrites": { "type": "reference", - "name": "Suite.run", - "id": 3463 + "name": "Locator.find", + "id": 802 + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.find", + "id": 1095 } }, { - "id": 1093, - "name": "skip", + "id": 5347, + "name": "findAll", "kind": 2048, "kindString": "Method", "flags": { @@ -22565,59 +22434,93 @@ }, "signatures": [ { - "id": 1094, - "name": "skip", + "id": 5348, + "name": "findAll", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Skips this suite.", - "text": "Calling this function will cause all remaining tests in the suite to be\nskipped. If a message was provided, a reporter may report the suite’s\ntests as skipped. Skipped tests are not treated as passing or failing.\n\nIf this method is called from a test function (as this.parent.skip()),\nthe test will be immediately halted, just as if the test’s own skip\nmethod were called.\n" + "shortText": "Gets an array of elements from the focused window/frame that match the\ngiven query." }, "parameters": [ { - "id": 1095, - "name": "message", + "id": 5349, + "name": "using", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "If provided, will be stored in this suite's `skipped`\nproperty.\n" + "text": "The element retrieval strategy to use. See\n[[Session.Session.find]] for options.\n" + }, + "type": { + "type": "reference", + "name": "Strategy", + "id": 931 + } + }, + { + "id": 5350, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The strategy-specific value to search for. See\n[[Session.Session.find]] for details.\n" }, "type": { "type": "intrinsic", "name": "string" - }, - "defaultValue": "\"suite skipped\"" + } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Element", + "id": 1415 + } + } + ] + }, + "overwrites": { + "type": "reference", + "name": "Locator.findAll", + "id": 806 }, "inheritedFrom": { "type": "reference", - "name": "Suite.skip", - "id": 3465 + "name": "Session.findAll", + "id": 1099 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 736, - "character": 6 + "fileName": "src/webdriver/Session.ts", + "line": 1293, + "character": 9 } ], + "overwrites": { + "type": "reference", + "name": "Locator.findAll", + "id": 806 + }, "inheritedFrom": { "type": "reference", - "name": "Suite.skip", - "id": 3465 + "name": "Session.findAll", + "id": 1099 } }, { - "id": 1096, - "name": "toJSON", + "id": 5520, + "name": "findAllByClassName", "kind": 2048, "kindString": "Method", "flags": { @@ -22625,3168 +22528,3724 @@ }, "signatures": [ { - "id": 1097, - "name": "toJSON", + "id": 5521, + "name": "findAllByClassName", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Gets all elements inside this element matching the given CSS class name." + }, + "parameters": [ + { + "id": 5522, + "name": "className", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The CSS class name to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "intrinsic", - "name": "object" + "type": "unknown", + "name": "L" }, "inheritedFrom": { "type": "reference", - "name": "Suite.toJSON", - "id": 3468 + "name": "Locator.findAllByClassName", + "id": 842 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 743, - "character": 8 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 106, + "character": 20 } ], "inheritedFrom": { "type": "reference", - "name": "Suite.toJSON", - "id": 3468 + "name": "Locator.findAllByClassName", + "id": 842 } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1033 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1040, - 1041, - 1042, - 1046, - 1047, - 1048, - 1032, - 1049, - 1050, - 1051, - 1052, - 1053 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 1054, - 1058, - 1084, - 1036, - 1062, - 1080, - 1078, - 1082, - 1076, - 1066, - 1068, - 1072, - 1086 - ] }, { - "title": "Methods", + "id": 5523, + "name": "findAllByCssSelector", "kind": 2048, - "children": [ - 1090, - 1038, - 1093, - 1096 - ] - } - ], - "sources": [ - { - "fileName": "lib/RemoteSuite.ts", - "line": 21, - "character": 32 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "Suite", - "id": 3400 - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "SuiteProperties", - "id": 3479 - } - ] - }, - { - "id": 1122, - "name": "RemoteConfig", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 1127, - "name": "bail", - "kind": 1024, - "kindString": "Property", + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "By default, Intern will run all configured tests. Setting this option\nto `true` will cause Intern to stop running tests after the first failure." - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 18, - "character": 6 + "id": 5524, + "name": "findAllByCssSelector", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets all elements inside this element matching the given CSS selector." + }, + "parameters": [ + { + "id": 5525, + "name": "selector", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The CSS selector to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "L" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findAllByCssSelector", + "id": 845 + } } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.bail", - "id": 4099 - } - }, - { - "id": 1129, - "name": "basePath", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The path to the project base. This will always end with a path separator\n(e.g., /)." - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 26, - "character": 10 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 115, + "character": 22 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "inheritedFrom": { "type": "reference", - "name": "Config.basePath", - "id": 4101 + "name": "Locator.findAllByCssSelector", + "id": 845 } }, { - "id": 1128, - "name": "baseline", - "kind": 1024, - "kindString": "Property", + "id": 5529, + "name": "findAllByLinkText", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, + "signatures": [ + { + "id": 5530, + "name": "findAllByLinkText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets all elements inside this element matching the given\ncase-insensitive link text." + }, + "parameters": [ + { + "id": 5531, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The link text of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "L" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findAllByLinkText", + "id": 851 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 20, - "character": 10 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 134, + "character": 19 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, "inheritedFrom": { "type": "reference", - "name": "Config.baseline", - "id": 4100 + "name": "Locator.findAllByLinkText", + "id": 851 } }, { - "id": 1130, - "name": "benchmark", - "kind": 1024, - "kindString": "Property", + "id": 5526, + "name": "findAllByName", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "This property must be set to `true` for benchmark tests to run. If it is\nunset or `false`, any suites registered using the benchmark interface will\nbe ignored." - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 33, - "character": 11 + "id": 5527, + "name": "findAllByName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets all elements inside this element matching the given name attribute." + }, + "parameters": [ + { + "id": 5528, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The name of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "L" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findAllByName", + "id": 848 + } } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.benchmark", - "id": 4102 - } - }, - { - "id": 1131, - "name": "benchmarkConfig", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 35, - "character": 17 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 124, + "character": 15 } ], - "type": { - "type": "reference", - "name": "BenchmarkConfig", - "id": 4180 - }, "inheritedFrom": { "type": "reference", - "name": "Config.benchmarkConfig", - "id": 4103 + "name": "Locator.findAllByName", + "id": 848 } }, { - "id": 1132, - "name": "browser", - "kind": 1024, - "kindString": "Property", + "id": 5532, + "name": "findAllByPartialLinkText", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, + "signatures": [ + { + "id": 5533, + "name": "findAllByPartialLinkText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets all elements inside this element partially matching the given\ncase-insensitive link text." + }, + "parameters": [ + { + "id": 5534, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The partial link text of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "L" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findAllByPartialLinkText", + "id": 854 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 37, - "character": 9 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 144, + "character": 26 } ], - "type": { - "type": "reference", - "name": "ResourceConfig", - "id": 4171 - }, "inheritedFrom": { "type": "reference", - "name": "Config.browser", - "id": 4104 + "name": "Locator.findAllByPartialLinkText", + "id": 854 } }, { - "id": 1143, - "name": "capabilities", - "kind": 1024, - "kindString": "Property", + "id": 5535, + "name": "findAllByTagName", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The default capabilities for all test environments.", - "text": "They will be extended for each environment by values in the\n[`environments`](#environments) array.\n\nCloud testing services such as BrowserStack may have unique capabilities.\nIt’s important to use the proper capabilities for the WebDriver server or\ncloud service being used to run tests.\n\n* [Selenium capabilities](https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities)\n* [BrowserStack capabilities](https://www.browserstack.com/automate/capabilities)\n* [CrossBrowserTesting capabilities](https://help.crossbrowsertesting.com/selenium-testing/automation-capabilities)\n* [Sauce Labs capabilities](https://wiki.saucelabs.com/display/DOCS/Test+Configuration+Options#TestConfigurationOptions-Selenium-SpecificOptions) and [environments](https://saucelabs.com/platforms)\n* [TestingBot capabilities](https://testingbot.com/support/other/test-options) and [environments](https://testingbot.com/support/getting-started/browsers.html)\n\n[Chrome-specific options](https://sites.google.com/a/chromium.org/chromedriver/capabilities)\nmay be passed using a `goog:chromeOptions` capability.\n\n[Firefox-specific options](https://github.com/mozilla/geckodriver#firefox-capabilities)\nmay be passed using a `moz:firefoxOptions` capability.\n\nIntern will automatically provide certain capabilities to provide better\nfeedback with cloud service dashboards:\n\n* `name` will be set to the name of the test config\n* `build` will be set to the commit ID from the `TRAVIS_COMMIT` and\n `BUILD_TAG` environment variables, if either exists\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 124, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1144, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "id": 5536, + "name": "findAllByTagName", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "indexSignature": [ + "comment": { + "shortText": "Gets all elements inside this element matching the given HTML tag name." + }, + "parameters": [ { - "id": 1147, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", + "id": 5537, + "name": "tagName", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "parameters": [ - { - "id": 1148, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "children": [ - { - "id": 1146, - "name": "build", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 126, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 1145, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true + "comment": { + "text": "The tag name of the element.\n" }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 125, - "character": 8 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "type": "intrinsic", + "name": "string" } } ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 1146, - 1145 - ] - } - ], - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 124, - "character": 15 - } - ] + "type": { + "type": "unknown", + "name": "L" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findAllByTagName", + "id": 857 + } } - }, + ], + "sources": [ + { + "fileName": "src/webdriver/lib/Locator.ts", + "line": 153, + "character": 18 + } + ], "inheritedFrom": { "type": "reference", - "name": "Config.capabilities", - "id": 4116 + "name": "Locator.findAllByTagName", + "id": 857 } }, { - "id": 1149, - "name": "connectTimeout", - "kind": 1024, - "kindString": "Property", + "id": 5538, + "name": "findAllByXpath", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Time to wait for contact from a remote server" - }, + "signatures": [ + { + "id": 5539, + "name": "findAllByXpath", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets all elements inside this element matching the given XPath selector." + }, + "parameters": [ + { + "id": 5540, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The XPath selector to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "L" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findAllByXpath", + "id": 860 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 131, + "fileName": "src/webdriver/lib/Locator.ts", + "line": 162, "character": 16 } ], - "type": { - "type": "intrinsic", - "name": "number" - }, "inheritedFrom": { "type": "reference", - "name": "Config.connectTimeout", - "id": 4122 + "name": "Locator.findAllByXpath", + "id": 860 } }, { - "id": 1150, - "name": "coverage", - "kind": 1024, - "kindString": "Property", + "id": 5496, + "name": "findByClassName", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "An array of file paths or globs that should be instrumented for code\ncoverage, or false to completely disable coverage.", - "text": "This property should point to the actual JavaScript files that will be\nexecuted, not pre-transpiled sources (coverage results will still be\nmapped back to original sources). Coverage data will be collected for\nthese files even if they’re not loaded by Intern for tests, allowing a\ntest writer to see which files _haven’t_ been tested, as well as coverage\non files that were tested.\n\nWhen this value is unset, Intern will still look for coverage data on a\nglobal coverage variable, and it will request coverage data from remote\nsessions. Explicitly setting coverage to false will prevent Intern from\neven checking for coverage data.\n\n> 💡This property replaces the `excludeInstrumentation` property used in\nprevious versions of Intern, which acted as a filter rather than an\ninclusive list.\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 153, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "false" + "id": 5497, + "name": "findByClassName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element matching the given CSS class\nname." }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" + "parameters": [ + { + "id": 5498, + "name": "className", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The CSS class name to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findByClassName", + "id": 818 } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.coverage", - "id": 4123 - } - }, - { - "id": 1133, - "name": "coverageVariable", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The global variable that will be used to store coverage data" - }, + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 42, - "character": 18 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 28, + "character": 17 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "inheritedFrom": { "type": "reference", - "name": "Config.coverageVariable", - "id": 4105 + "name": "Locator.findByClassName", + "id": 818 } }, { - "id": 1134, - "name": "debug", - "kind": 1024, - "kindString": "Property", + "id": 5499, + "name": "findByCssSelector", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "When set to true, Intern will emit 'log' events for many internal\noperations. Reporters that register for these events, such as the Runner\nreporter, will display them during testing." - }, + "signatures": [ + { + "id": 5500, + "name": "findByCssSelector", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element matching the given CSS\nselector." + }, + "parameters": [ + { + "id": 5501, + "name": "selector", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The CSS selector to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findByCssSelector", + "id": 821 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 49, - "character": 7 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 38, + "character": 19 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, "inheritedFrom": { "type": "reference", - "name": "Config.debug", - "id": 4106 + "name": "Locator.findByCssSelector", + "id": 821 } }, { - "id": 1135, - "name": "defaultTimeout", - "kind": 1024, - "kindString": "Property", + "id": 5502, + "name": "findById", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "This is the number of milliseconds that Intern will wait for an\n[asynchronous test](https://github.com/theintern/intern/blob/master/docs/writing_tests.md#testing-asynchronous-code)\nto complete before timing out. A timed out test is considered to have\nfailed." - }, + "signatures": [ + { + "id": 5503, + "name": "findById", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element matching the given ID." + }, + "parameters": [ + { + "id": 5504, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The ID of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findById", + "id": 824 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 57, - "character": 16 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 47, + "character": 10 } ], - "type": { - "type": "intrinsic", - "name": "number" - }, "inheritedFrom": { "type": "reference", - "name": "Config.defaultTimeout", - "id": 4107 + "name": "Locator.findById", + "id": 824 } }, { - "id": 1136, - "name": "description", - "kind": 1024, - "kindString": "Property", + "id": 5508, + "name": "findByLinkText", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A description for this test run" - }, + "signatures": [ + { + "id": 5509, + "name": "findByLinkText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element matching the given\ncase-insensitive link text." + }, + "parameters": [ + { + "id": 5510, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The link text of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findByLinkText", + "id": 830 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 60, - "character": 13 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 67, + "character": 16 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "inheritedFrom": { "type": "reference", - "name": "Config.description", - "id": 4108 + "name": "Locator.findByLinkText", + "id": 830 } }, { - "id": 1151, - "name": "environments", - "kind": 1024, - "kindString": "Property", + "id": 5505, + "name": "findByName", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The environments that will be used to run tests.", - "text": "Its value can be a single browser name or an environment object, or an\narray of these.\n\n```js\nenvironments: 'chrome'\nenvironments: ['chrome', 'firefox']\nenvironments: { browserName: 'chrome', version: '57.0' }\nenvironments: { browserName: 'chrome', fixSessionCapabilities: false }\n```\n\nThe syntax for browser names and other properties depends on where tests\nare being run. For example, when running tests using a local Selenium\nserver, the browser name should be the lowercase name of a locally\navailable browser, such as ‘chrome’ or ‘firefox’, and other properties\nsuch as the platform name will generally be ignored. When running on a\ncloud testing service such as [Sauce Labs](https://wiki.saucelabs.com/display/DOCS/Test+Configuration+Options#TestConfigurationOptions-RequiredSeleniumTestConfigurationSettings)\nor [BrowserStack](https://www.browserstack.com/automate/capabilities),\nbrowser names and other properties may have different acceptable values\n(e.g., ‘googlechrome’ instead of ‘chrome’, or ‘MacOS’ vs ‘OSX’).\n\nThe [fixSessionCapabilities](https://theintern.io/docs.html#Leadfoot/2/api/Server/fixsessioncapabilities)\nproperty determines whether feature and defect tests will be run in the\nremote browser. Setting it to `false` entirely disables feature tests\n(assuming that all features are enabled), while setting it to\n`'no-detect'` will set certain already-known feature and defect flags\nbased on the browser and platform. The current set of capabilities are\navailable on `this.remote.session.capabilities` in functional tests.\n\n> 💡Note that 'node' is an environment. If no environments are specified,\nthe Node executor will automatically add 'node' to the resolved config.\nIf any environments are specified, though, unit tests will only be run in\nthis environments.\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 191, - "character": 14 + "id": 5506, + "name": "findByName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element matching the given name\nattribute." + }, + "parameters": [ + { + "id": 5507, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The name of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findByName", + "id": 827 + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "EnvironmentSpec", - "id": 4189 + "sources": [ + { + "fileName": "src/webdriver/lib/Locator.ts", + "line": 57, + "character": 12 } - }, + ], "inheritedFrom": { "type": "reference", - "name": "Config.environments", - "id": 4124 + "name": "Locator.findByName", + "id": 827 } }, { - "id": 1152, - "name": "excludeInstrumentation", - "kind": 1024, - "kindString": "Property", + "id": 5511, + "name": "findByPartialLinkText", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 194, - "character": 24 - } - ], - "type": { - "type": "intrinsic", - "name": "never" - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.excludeInstrumentation", - "id": 4125 - } - }, - { - "id": 1137, - "name": "filterErrorStack", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "If true, filter external library calls and runtime calls out of error\nstacks." - }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 66, - "character": 18 + "id": 5512, + "name": "findByPartialLinkText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element partially matching the given\ncase-insensitive link text." + }, + "parameters": [ + { + "id": 5513, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The partial link text of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findByPartialLinkText", + "id": 833 + } } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.filterErrorStack", - "id": 4109 - } - }, - { - "id": 1153, - "name": "functionalBaseUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The base URL to use for relative addresses in functional tests" - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 197, - "character": 19 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 77, + "character": 23 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, "inheritedFrom": { "type": "reference", - "name": "Config.functionalBaseUrl", - "id": 4126 + "name": "Locator.findByPartialLinkText", + "id": 833 } }, { - "id": 1154, - "name": "functionalCoverage", - "kind": 1024, - "kindString": "Property", + "id": 5514, + "name": "findByTagName", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Whether to collect coverage data from functional tests" - }, + "signatures": [ + { + "id": 5515, + "name": "findByTagName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element matching the given HTML tag\nname." + }, + "parameters": [ + { + "id": 5516, + "name": "tagName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The tag name of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findByTagName", + "id": 836 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 200, - "character": 20 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 87, + "character": 15 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, "inheritedFrom": { "type": "reference", - "name": "Config.functionalCoverage", - "id": 4127 + "name": "Locator.findByTagName", + "id": 836 } }, { - "id": 1155, - "name": "functionalSuites", - "kind": 1024, - "kindString": "Property", + "id": 5517, + "name": "findByXpath", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A list of paths or glob expressions that point to functional suites.", - "text": "Functional suites are files that register\n[WebDriver tests](writing_tests.md).\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 208, - "character": 18 + "id": 5518, + "name": "findByXpath", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first element inside this element matching the given XPath\nselector." + }, + "parameters": [ + { + "id": 5519, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The XPath selector to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findByXpath", + "id": 839 + } } ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" + "sources": [ + { + "fileName": "src/webdriver/lib/Locator.ts", + "line": 97, + "character": 13 } - }, + ], "inheritedFrom": { "type": "reference", - "name": "Config.functionalSuites", - "id": 4128 + "name": "Locator.findByXpath", + "id": 839 } }, { - "id": 1156, - "name": "functionalTimeouts", - "kind": 1024, - "kindString": "Property", + "id": 5473, + "name": "findDisplayed", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Default timeout values for functional tests", - "text": " * **find** is the time to wait for findBy commands to find an element\n * **executeAsync** is the time to wait for executeAsync calls to\n complete\n * **pageLoad** is the time to wait for a page to finish loading\n synchronous resources\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 219, - "character": 20 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1157, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "id": 5474, + "name": "findDisplayed", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "children": [ - { - "id": 1158, - "name": "connectTimeout", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 221, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 1160, - "name": "executeAsync", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Time to wait for an executeAsync to complete" - }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 227, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "comment": { + "shortText": "Gets the first [[Element.Element.isDisplayed|displayed]] element in the\ncurrently active window/frame matching the given query. This is\ninherently slower than [[Session.Session.find]], so should only be used\nin cases where the visibility of an element cannot be ensured in\nadvance.", + "tags": [ + { + "tag": "since", + "text": "1.6\n" } - }, + ] + }, + "parameters": [ { - "id": 1159, - "name": "find", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, + "id": 5475, + "name": "using", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "comment": { - "shortText": "Time to wait for a findBy command to find a matching element" + "text": "The element retrieval strategy to use. See\n[[Session.Session.find]] for options.\n" }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 224, - "character": 8 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "reference", + "name": "Strategy", + "id": 931 } }, { - "id": 1161, - "name": "pageLoad", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, + "id": 5476, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, "comment": { - "shortText": "Time to wait for initial page load to complete" + "text": "The strategy-specific value to search for. See\n[[Session.Session.find]] for details.\n" }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 230, - "character": 12 - } - ], "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] + "type": "intrinsic", + "name": "string" } } ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 1158, - 1160, - 1159, - 1161 - ] - } - ], - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 219, - "character": 21 - } - ] + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reference", + "name": "Element", + "id": 1415 + } + ] + }, + "overwrites": { + "type": "reference", + "name": "Locator.findDisplayed", + "id": 810 + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.findDisplayed", + "id": 1227 + } } - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.functionalTimeouts", - "id": 4129 - } - }, - { - "id": 1138, - "name": "grep", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "This property is a regular expression that is used to filter which tests\nare run. Grep operates on test IDs. A test ID is the concatenation of a\ntest name with all of its parent suite names. Every test ID that matches\nthe current grep expression will be run." - }, + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 74, - "character": 6 + "fileName": "src/webdriver/Session.ts", + "line": 2104, + "character": 15 } ], - "type": { + "overwrites": { "type": "reference", - "name": "RegExp" + "name": "Locator.findDisplayed", + "id": 810 }, "inheritedFrom": { "type": "reference", - "name": "Config.grep", - "id": 4110 + "name": "Session.findDisplayed", + "id": 1227 } }, { - "id": 1162, - "name": "heartbeatInterval", - "kind": 1024, - "kindString": "Property", + "id": 5541, + "name": "findDisplayedByClassName", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "How often to send a heartbeat message to a remote browser, in seconds" + "isExported": true }, + "signatures": [ + { + "id": 5542, + "name": "findDisplayedByClassName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement matching the given CSS class name. This is inherently slower\nthan [[Element.find]], so should only be used in cases where the\nvisibility of an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] + }, + "parameters": [ + { + "id": 5543, + "name": "className", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The CSS class name to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedByClassName", + "id": 863 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 234, - "character": 19 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 175, + "character": 26 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - }, "inheritedFrom": { "type": "reference", - "name": "Config.heartbeatInterval", - "id": 4135 + "name": "Locator.findDisplayedByClassName", + "id": 863 } }, { - "id": 1163, - "name": "instrumenterOptions", - "kind": 1024, - "kindString": "Property", + "id": 5544, + "name": "findDisplayedByCssSelector", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "An object containing options for the\n[Istanbul instrumenter](https://github.com/istanbuljs/istanbuljs/blob/master/packages/istanbul-lib-instrument/api.md#instrumenter)." - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 240, - "character": 21 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1164, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "id": 5545, + "name": "findDisplayedByCssSelector", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "indexSignature": [ + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement matching the given CSS selector. This is inherently slower than\n[[Element.find]], so should only be used in cases where the visibility\nof an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] + }, + "parameters": [ { - "id": 1165, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", + "id": 5546, + "name": "selector", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "parameters": [ - { - "id": 1166, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], + "comment": { + "text": "The CSS selector to search for.\n" + }, "type": { "type": "intrinsic", - "name": "any" + "name": "string" } } ], - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 240, - "character": 22 - } - ] + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedByCssSelector", + "id": 866 + } } - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.instrumenterOptions", - "id": 4136 - } - }, - { - "id": 1139, - "name": "internPath", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The path to Intern. This will always end with a path separator (e.g., /)." - }, + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 79, - "character": 12 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 188, + "character": 28 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "inheritedFrom": { "type": "reference", - "name": "Config.internPath", - "id": 4111 + "name": "Locator.findDisplayedByCssSelector", + "id": 866 } }, { - "id": 1167, - "name": "leaveRemoteOpen", - "kind": 1024, - "kindString": "Property", + "id": 5547, + "name": "findDisplayedById", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Whether to leave the remote browser open after testing.", - "text": "Normally when Intern runs tests on remote browsers, it shuts the browser\ndown when testing is finished. However, you may sometimes want to inspect\nthe state of a remote browser after tests have run, particularly if\nyou're trying to debug why a test is failing. Setting `leaveRemoteOpen`\nto true will cause Intern to leave the browser open after testing.\nSetting it to `'fail'` will cause Intern to leave it open only if there\nwere test failures.\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 253, - "character": 17 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "boolean" + "id": 5548, + "name": "findDisplayedById", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement matching the given ID. This is inherently slower than\n[[Element.find]], so should only be used in cases where the visibility\nof an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] }, - { - "type": "stringLiteral", - "value": "fail" + "parameters": [ + { + "id": 5549, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The ID of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedById", + "id": 869 } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.leaveRemoteOpen", - "id": 4140 - } - }, - { - "id": 1176, - "name": "loader", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The loader used to load test suites and application modules.", - "text": "When passed in as part of a config object, the `loader` property can be a\nstring with a loader name or the path to a loader script. It may also be\nan object with `script` and `config` properties. Intern provides built-in\nloader scripts for Dojo and Dojo2, which can be specified with the IDs\n'dojo' and 'dojo2'.\n\n```ts\nloader: 'dojo2'\nloader: 'tests/loader.js'\nloader: {\n script: 'dojo',\n config: {\n packages: [\n { name: 'app', location: './js' }\n ]\n }\n}\n```\n" - }, - "sources": [ - { - "fileName": "lib/common/config.ts", - "line": 415, - "character": 8 } ], - "type": { - "type": "reference", - "name": "LoaderDescriptor", - "id": 4183 - }, - "inheritedFrom": { - "type": "reference", - "name": "ResourceConfig.loader", - "id": 4172 - } - }, - { - "id": 1168, - "name": "maxConcurrency", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The number of concurrent remote test sessions to run at once.", - "text": "The default value is Infinity, meaning Intern will try to run all of its\ntest sessions in parallel. Note that cloud testing services often limit\nthe number of concurrent sessions they will allow to 2 or 5.\n" - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 262, - "character": 16 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 201, + "character": 19 } ], - "type": { - "type": "intrinsic", - "name": "number" - }, "inheritedFrom": { "type": "reference", - "name": "Config.maxConcurrency", - "id": 4141 + "name": "Locator.findDisplayedById", + "id": 869 } }, { - "id": 1140, - "name": "name", - "kind": 1024, - "kindString": "Property", + "id": 5553, + "name": "findDisplayedByLinkText", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A top-level name for this configuration." - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 82, - "character": 6 + "id": 5554, + "name": "findDisplayedByLinkText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement matching the given case-insensitive link text. This is\ninherently slower than [[Element.find]], so should only be used in cases\nwhere the visibility of an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] + }, + "parameters": [ + { + "id": 5555, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The link text of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedByLinkText", + "id": 875 + } } ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.name", - "id": 4112 - } - }, - { - "id": 1141, - "name": "node", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 84, - "character": 6 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 227, + "character": 25 } ], - "type": { - "type": "reference", - "name": "ResourceConfig", - "id": 4171 - }, "inheritedFrom": { "type": "reference", - "name": "Config.node", - "id": 4113 + "name": "Locator.findDisplayedByLinkText", + "id": 875 } }, { - "id": 1178, - "name": "plugins", - "kind": 1024, - "kindString": "Property", + "id": 5550, + "name": "findDisplayedByName", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A list of scripts or modules to load before suites are loaded." - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 459, - "character": 9 + "id": 5551, + "name": "findDisplayedByName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement matching the given name attribute. This is inherently slower\nthan [[Element.find]], so should only be used in cases where the\nvisibility of an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] + }, + "parameters": [ + { + "id": 5552, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The name of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedByName", + "id": 872 + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "PluginDescriptor", - "id": 4163 - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ResourceConfig.plugins", - "id": 4174 - } - }, - { - "id": 1169, - "name": "proxy", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "A proxy that should be used for outgoing web connections. If specified,\nthis will be used for Intern's WebDriver client instead of the Dig Dug\ntunnel's proxy value." - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 269, - "character": 7 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 214, + "character": 21 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, "inheritedFrom": { "type": "reference", - "name": "Config.proxy", - "id": 4142 + "name": "Locator.findDisplayedByName", + "id": 872 } }, { - "id": 1177, - "name": "reporters", - "kind": 1024, - "kindString": "Property", + "id": 5556, + "name": "findDisplayedByPartialLinkText", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A list of reporter names or descriptors.", - "text": "Reporters specified in this list must have been previously installed\nusing\n[`registerReporter`](https://theintern.io/docs.html#Intern/4/api/lib%2Fexecutors%2FExecutor/registerreporter)\nor\n[`registerPlugin`](https://theintern.io/docs.html#Intern/4/api/lib%2Fexecutors%2FExecutor/registerplugin).\n\nList entries may be reporter names or objects of the format\n\n```js\n{\n name: 'reporter name',\n options: {\n // reporter-specific options\n }\n}\n```\n\nThe built-in reporters under Node are:\n * benchmark - output benchmark test results\n * cobertura - output coverage data in the cobertura format\n * htmlcoverage - output coverage data as an HTML report\n * jsoncoverage - output coverage data in a JSON format\n * junit - output results in JUnit format\n * lcov - output coverage results in lcov format\n * pretty - draw text results in a terminal\n * runner - output test results as formatted text (default Node reporter)\n * simple - output test results as simple text\n * teamcity - output results in TeamCity format\n\nThe built-in reporters available in browsers are:\n * console - output to the browser console\n * dom - output results as text in the DOM\n * html - output a pretty HTML report (default browser reporter)\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 454, - "character": 11 + "id": 5557, + "name": "findDisplayedByPartialLinkText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement partially matching the given case-insensitive link text. This is\ninherently slower than [[Element.find]], so should only be used in cases\nwhere the visibility of an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] + }, + "parameters": [ + { + "id": 5558, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The partial link text of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedByPartialLinkText", + "id": 878 + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "ReporterDescriptor", - "id": 4160 - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ResourceConfig.reporters", - "id": 4173 - } - }, - { - "id": 1181, - "name": "require", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 486, - "character": 9 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 240, + "character": 32 } ], - "type": { - "type": "intrinsic", - "name": "never" - }, "inheritedFrom": { "type": "reference", - "name": "ResourceConfig.require", - "id": 4177 + "name": "Locator.findDisplayedByPartialLinkText", + "id": 878 } }, { - "id": 1182, - "name": "requires", - "kind": 1024, - "kindString": "Property", + "id": 5559, + "name": "findDisplayedByTagName", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 487, - "character": 10 + "id": 5560, + "name": "findDisplayedByTagName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement matching the given HTML tag name. This is inherently slower than\n[[Element.find]], so should only be used in cases where the visibility\nof an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] + }, + "parameters": [ + { + "id": 5561, + "name": "tagName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The tag name of the element.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedByTagName", + "id": 881 + } } ], - "type": { - "type": "intrinsic", - "name": "never" - }, - "inheritedFrom": { - "type": "reference", - "name": "ResourceConfig.requires", - "id": 4178 - } - }, - { - "id": 1125, - "name": "runInSync", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 302, - "character": 11 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 253, + "character": 24 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Config.runInSync", - "id": 4143 + "name": "Locator.findDisplayedByTagName", + "id": 881 } }, { - "id": 1183, - "name": "scripts", - "kind": 1024, - "kindString": "Property", + "id": 5562, + "name": "findDisplayedByXpath", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 488, - "character": 9 + "id": 5563, + "name": "findDisplayedByXpath", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the first [[Element.isDisplayed|displayed]] element inside this\nelement matching the given XPath selector. This is inherently slower\nthan [[Element.find]], so should only be used in cases where the\nvisibility of an element cannot be ensured in advance.", + "tags": [ + { + "tag": "since", + "text": "1.6" + } + ] + }, + "parameters": [ + { + "id": 5564, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The XPath selector to search for.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "unknown", + "name": "E" + }, + "inheritedFrom": { + "type": "reference", + "name": "Locator.findDisplayedByXpath", + "id": 884 + } } ], - "type": { - "type": "intrinsic", - "name": "never" - }, - "inheritedFrom": { - "type": "reference", - "name": "ResourceConfig.scripts", - "id": 4179 - } - }, - { - "id": 1170, - "name": "serveOnly", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "If true, start Intern's static test server but do not run any tests." - }, "sources": [ { - "fileName": "lib/common/config.ts", - "line": 278, - "character": 11 + "fileName": "src/webdriver/lib/Locator.ts", + "line": 266, + "character": 22 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, "inheritedFrom": { "type": "reference", - "name": "Config.serveOnly", - "id": 4144 + "name": "Locator.findDisplayedByXpath", + "id": 884 } }, { - "id": 1171, - "name": "serverPort", - "kind": 1024, - "kindString": "Property", + "id": 5419, + "name": "flickFinger", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The port Intern's static server will listen on during functional tests." - }, - "sources": [ + "decorators": [ { - "fileName": "lib/common/config.ts", - "line": 283, - "character": 12 + "name": "forCommand", + "type": { + "type": "reference", + "name": "forCommand", + "id": 1381 + }, + "arguments": { + "properties": "{ usesElement: true }", + "__scrubbed__": true, + "__lenormalized__": true + } + } + ], + "signatures": [ + { + "id": 5420, + "name": "flickFinger", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Flicks a finger. Note that this method is currently badly specified and\nhighly dysfunctional and is only provided for the sake of completeness." + }, + "parameters": [ + { + "id": 5421, + "name": "element", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The element where the flick should start." + }, + "type": { + "type": "reference", + "name": "Element", + "id": 1415 + } + }, + { + "id": 5422, + "name": "xOffset", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The x-offset in pixels to flick by." + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5423, + "name": "yOffset", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The x-offset in pixels to flick by." + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5424, + "name": "speed", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The speed of the flick, in pixels per *second*. Most human\nflicks are 100–200ms, so this value will be higher than expected.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.flickFinger", + "id": 1171 + } + }, + { + "id": 5425, + "name": "flickFinger", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 5426, + "name": "xOffset", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5427, + "name": "yOffset", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5428, + "name": "speed", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.flickFinger", + "id": 1171 + } } ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.serverPort", - "id": 4145 - } - }, - { - "id": 1123, - "name": "serverUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 300, - "character": 11 + "fileName": "src/webdriver/Session.ts", + "line": 1830, + "character": 13 + }, + { + "fileName": "src/webdriver/Session.ts", + "line": 1836, + "character": 13 + }, + { + "fileName": "src/webdriver/Session.ts", + "line": 1842, + "character": 13 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Config.serverUrl", - "id": 4146 + "name": "Session.flickFinger", + "id": 1171 } }, { - "id": 1124, - "name": "sessionId", - "kind": 1024, - "kindString": "Property", + "id": 5192, + "name": "get", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, + "signatures": [ + { + "id": 5193, + "name": "get", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Navigates the browser to a new URL like `leadfoot/Session#get`, but\nretrieves any code coverage data recorded by the browser prior to\nnavigation." + }, + "parameters": [ + { + "id": 5194, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "overwrites": { + "type": "reference", + "name": "Session.get", + "id": 993 + } + } + ], "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 301, - "character": 11 + "fileName": "src/core/lib/ProxiedSession.ts", + "line": 46, + "character": 5 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "overwrites": { "type": "reference", - "name": "Config.sessionId", - "id": 4114 + "name": "Session.get", + "id": 993 } }, { - "id": 1142, - "name": "showConfig", - "kind": 1024, - "kindString": "Property", + "id": 5351, + "name": "getActiveElement", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "If true, display the resolved config and exit" - }, + "decorators": [ + { + "name": "forCommand", + "type": { + "type": "reference", + "name": "forCommand", + "id": 1381 + }, + "arguments": { + "properties": "{ createsContext: true }", + "__scrubbed__": true, + "__lenormalized__": true + } + } + ], + "signatures": [ + { + "id": 5352, + "name": "getActiveElement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the currently focused element from the focused window/frame." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reference", + "name": "Element", + "id": 1415 + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getActiveElement", + "id": 1103 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 93, - "character": 12 + "fileName": "src/webdriver/Session.ts", + "line": 1344, + "character": 18 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, "inheritedFrom": { "type": "reference", - "name": "Config.showConfig", - "id": 4115 + "name": "Session.getActiveElement", + "id": 1103 } }, { - "id": 1126, - "name": "socketPort", - "kind": 1024, - "kindString": "Property", + "id": 5264, + "name": "getActiveImeEngine", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isOptional": true + "isExported": true }, + "signatures": [ + { + "id": 5265, + "name": "getActiveImeEngine", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the currently active input method editor for the remote environment.\nAs of April 2014, no known remote environments support IME functions." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getActiveImeEngine", + "id": 1016 + } + } + ], "sources": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 303, - "character": 12 + "fileName": "src/webdriver/Session.ts", + "line": 542, + "character": 20 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - }, - "overwrites": { + "inheritedFrom": { "type": "reference", - "name": "Config.socketPort", - "id": 4147 + "name": "Session.getActiveImeEngine", + "id": 1016 } }, { - "id": 1179, - "name": "suites", - "kind": 1024, - "kindString": "Property", + "id": 5361, + "name": "getAlertText", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A list of paths or glob expressions that point to suite scripts.", - "text": "```js\n{\n suites: [\n 'tests/unit/**\\/*.js',\n 'tests/intergration/request.js'\n ]\n}\n```\n\nNote that using globs with the browser client requires that Intern's\nserver be used to serve the tests. The server can be run in standalone\nmode by setting the `serveOnly` option.\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 477, - "character": 8 + "id": 5362, + "name": "getAlertText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the text displayed in the currently active alert pop-up." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getAlertText", + "id": 1113 + } } ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 1442, + "character": 14 } - }, + ], "inheritedFrom": { "type": "reference", - "name": "ResourceConfig.suites", - "id": 4175 + "name": "Session.getAlertText", + "id": 1113 } }, { - "id": 1180, - "name": "tsconfig", - "kind": 1024, - "kindString": "Property", + "id": 5240, + "name": "getAllWindowHandles", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "An optional path to a tsconfig for ts-node, or false if TypeScript\nsupport is not needed. This option can be used if tests need to use a\ndifferent tsconfig than the project uses normally." + "isExported": true }, + "signatures": [ + { + "id": 5241, + "name": "getAllWindowHandles", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets a list of identifiers for all currently open windows." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getAllWindowHandles", + "id": 989 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 484, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 315, + "character": 21 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "false" - } - ] - }, "inheritedFrom": { "type": "reference", - "name": "ResourceConfig.tsconfig", - "id": 4176 + "name": "Session.getAllWindowHandles", + "id": 989 } }, { - "id": 1172, - "name": "tunnel", - "kind": 1024, - "kindString": "Property", + "id": 5439, + "name": "getApplicationCacheStatus", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The Dig Dug tunnel class to use for WebDriver testing.", - "text": "There are several built in tunnel types, and others can be added through\nthe Node executor’s [`registerPlugin`\nmethod](./architecture.md#extension-points).\n\nThe built in tunnel classes are:\n\n* 'null'\n* 'selenium'\n* 'browserstack'\n* 'cbt' (CrossBrowserTesting)\n* 'saucelabs'\n* 'testingbot'\n" - }, + "signatures": [ + { + "id": 5440, + "name": "getApplicationCacheStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the current state of the HTML5 application cache for the current\npage.", + "returns": "The cache status. One of 0 (uncached), 1 (cached/idle), 2\n(checking), 3 (downloading), 4 (update ready), 5 (obsolete).\n" + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getApplicationCacheStatus", + "id": 1191 + } + } + ], "sources": [ { - "fileName": "lib/common/config.ts", - "line": 316, - "character": 8 + "fileName": "src/webdriver/Session.ts", + "line": 1976, + "character": 27 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "inheritedFrom": { "type": "reference", - "name": "Config.tunnel", - "id": 4148 + "name": "Session.getApplicationCacheStatus", + "id": 1191 } }, { - "id": 1173, - "name": "tunnelOptions", - "kind": 1024, - "kindString": "Property", + "id": 5262, + "name": "getAvailableImeEngines", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Options for the currently selected tunnel.", - "text": "The available options depend on the current tunnel. Common options\ninclude:\n\n** All tunnels**\n\n| Property | Value |\n| :--- | :--- |\n| `username` | Username for the tunnel service (e.g., BrowserStack) |\n| `apiKey` | API key for the tunnel service (e.g., BrowserStack) |\n| `pathname` | The path for the tunnel’s REST endpoint (e.g., `wd/hub`) |\n\n**Selenium tunnel**\n\n| Property | Value |\n| :--- | :--- |\n| `drivers` | A list of driver names, or objects with `name` and `options` properties |\n| `verbose` | If true, show tunnel debug information |\n\nSee also:\n\n* [[https://theintern.io/docs.html#Dig%20Dug/2/api/Tunnel/tunnelproperties|Tunnel]]\n* [[https://theintern.io/docs.html#Dig%20Dug/2/api/SeleniumTunnel/seleniumproperties|SeleniumTunnel]]\n* [[https://theintern.io/docs.html#Dig%20Dug/2/api/BrowserStackTunnel/browserstackproperties|BrowserStackTunnel]]\n" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 345, - "character": 15 - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "name": "TunnelOptions" + "id": 5263, + "name": "getAvailableImeEngines", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets a list of input method editor engines available to the remote\nenvironment. As of April 2014, no known remote environments support IME\nfunctions." }, - { + "type": { "type": "reference", - "name": "BrowserStackOptions" + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] }, - { + "inheritedFrom": { "type": "reference", - "name": "SeleniumOptions" + "name": "Session.getAvailableImeEngines", + "id": 1014 } - ] - }, + } + ], + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 534, + "character": 24 + } + ], "inheritedFrom": { "type": "reference", - "name": "Config.tunnelOptions", - "id": 4149 + "name": "Session.getAvailableImeEngines", + "id": 1014 } }, { - "id": 1175, - "name": "warnOnUncaughtException", - "kind": 1024, - "kindString": "Property", + "id": 5437, + "name": "getAvailableLogTypes", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "By default, an Intern session will fail if the Executor catches a\nbrowser-level unhandled error. This setting allows unhandled errors to be\ntreated as warnings instead of failing errors. If this setting is true or\nset to a RegExp that matches an unhandled error, Intern will emit a warning\nrather than failing the test run." - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 363, - "character": 25 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "boolean" + "id": 5438, + "name": "getAvailableLogTypes", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the types of logs that are currently available for retrieval from\nthe remote environment." }, - { + "type": { "type": "reference", - "name": "RegExp" + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getAvailableLogTypes", + "id": 1189 } - ] - }, + } + ], + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 1961, + "character": 22 + } + ], "inheritedFrom": { "type": "reference", - "name": "Config.warnOnUncaughtException", - "id": 4151 + "name": "Session.getAvailableLogTypes", + "id": 1189 } }, { - "id": 1174, - "name": "warnOnUnhandledRejection", - "kind": 1024, - "kindString": "Property", + "id": 5329, + "name": "getCookies", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "By default, an Intern session will fail if the Executor catches a\nbrowser-level unhandled Promise rejection. This setting allows unhandled\nrejections to be treated as warnings instead of failing errors. If this\nsetting is true or set to a RegExp that matches the reason for an unhandled\nrejection, Intern will emit a warning rather than failing the test run." - }, - "sources": [ + "signatures": [ { - "fileName": "lib/common/config.ts", - "line": 354, - "character": 26 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "boolean" + "id": 5330, + "name": "getCookies", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets all cookies set on the current page." }, - { + "type": { "type": "reference", - "name": "RegExp" + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getCookies", + "id": 1081 } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "Config.warnOnUnhandledRejection", - "id": 4150 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1127, - 1129, - 1128, - 1130, - 1131, - 1132, - 1143, - 1149, - 1150, - 1133, - 1134, - 1135, - 1136, - 1151, - 1152, - 1137, - 1153, - 1154, - 1155, - 1156, - 1138, - 1162, - 1163, - 1139, - 1167, - 1176, - 1168, - 1140, - 1141, - 1178, - 1169, - 1177, - 1181, - 1182, - 1125, - 1183, - 1170, - 1171, - 1123, - 1124, - 1142, - 1126, - 1179, - 1180, - 1172, - 1173, - 1175, - 1174 - ] - } - ], - "sources": [ - { - "fileName": "lib/RemoteSuite.ts", - "line": 299, - "character": 29 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "Config", - "id": 4098 - } - ] - }, - { - "id": 1098, - "name": "RemoteEvents", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 1106, - "name": "*", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A listener can listen for this event to be notified of all events" - }, + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1070, - "character": 5 + "fileName": "src/webdriver/Session.ts", + "line": 1032, + "character": 12 } ], - "type": { - "type": "reference", - "name": "ExecutorEvent", - "id": 4001 - }, "inheritedFrom": { "type": "reference", - "name": "Events.'*'", - "id": 4005 + "name": "Session.getCookies", + "id": 1081 } }, { - "id": 1107, - "name": "afterRun", - "kind": 1024, - "kindString": "Property", + "id": 5242, + "name": "getCurrentUrl", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Emitted after the local executor has finished running suites. This is\nfunctionally the same as runEnd." - }, + "signatures": [ + { + "id": 5243, + "name": "getCurrentUrl", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the URL that is loaded in the focused window/frame." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getCurrentUrl", + "id": 991 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1076, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 345, + "character": 15 } ], - "type": { - "type": "intrinsic", - "name": "void" - }, "inheritedFrom": { "type": "reference", - "name": "Events.afterRun", - "id": 4006 + "name": "Session.getCurrentUrl", + "id": 991 } }, { - "id": 1108, - "name": "beforeRun", - "kind": 1024, - "kindString": "Property", + "id": 5238, + "name": "getCurrentWindowHandle", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Emitted before the local executor loads suites" - }, + "signatures": [ + { + "id": 5239, + "name": "getCurrentWindowHandle", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the identifier for the window that is currently focused.", + "returns": "A window handle identifier that can be used with other window\nhandling functions.\n" + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getCurrentWindowHandle", + "id": 987 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1079, - "character": 11 + "fileName": "src/webdriver/Session.ts", + "line": 277, + "character": 24 } ], - "type": { - "type": "intrinsic", - "name": "void" - }, "inheritedFrom": { "type": "reference", - "name": "Events.beforeRun", - "id": 4007 + "name": "Session.getCurrentWindowHandle", + "id": 987 } }, { - "id": 1109, - "name": "coverage", - "kind": 1024, - "kindString": "Property", + "id": 5481, + "name": "getExecuteAsyncTimeout", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Coverage info has been gathered" - }, + "signatures": [ + { + "id": 5482, + "name": "getExecuteAsyncTimeout", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the timeout for [[Session.Session.executeAsync]] calls." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getExecuteAsyncTimeout", + "id": 1235 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1082, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 2125, + "character": 24 } ], - "type": { - "type": "reference", - "name": "CoverageMessage", - "id": 3993 - }, "inheritedFrom": { "type": "reference", - "name": "Events.coverage", - "id": 4008 + "name": "Session.getExecuteAsyncTimeout", + "id": 1235 } }, { - "id": 1110, - "name": "deprecated", - "kind": 1024, - "kindString": "Property", + "id": 5486, + "name": "getFindTimeout", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A deprecated method was called" - }, + "signatures": [ + { + "id": 5487, + "name": "getFindTimeout", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the timeout for [[Session.Session.find]] calls." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getFindTimeout", + "id": 1240 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1085, - "character": 12 + "fileName": "src/webdriver/Session.ts", + "line": 2141, + "character": 16 } ], - "type": { - "type": "reference", - "name": "DeprecationMessage", - "id": 3997 - }, "inheritedFrom": { "type": "reference", - "name": "Events.deprecated", - "id": 4009 + "name": "Session.getFindTimeout", + "id": 1240 } }, { - "id": 1111, - "name": "error", - "kind": 1024, - "kindString": "Property", + "id": 5429, + "name": "getGeolocation", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "An unhandled error occurs" - }, + "signatures": [ + { + "id": 5430, + "name": "getGeolocation", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the current geographical location of the remote environment.", + "returns": "Latitude and longitude are specified using standard WGS84\ndecimal latitude/longitude. Altitude is specified as meters above the\nWGS84 ellipsoid. Not all environments support altitude.\n" + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reference", + "name": "Geolocation", + "id": 652 + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getGeolocation", + "id": 1181 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1088, - "character": 7 + "fileName": "src/webdriver/Session.ts", + "line": 1874, + "character": 16 } ], - "type": { - "type": "reference", - "name": "Error" - }, "inheritedFrom": { "type": "reference", - "name": "Events.error", - "id": 4010 + "name": "Session.getGeolocation", + "id": 1181 } }, { - "id": 1112, - "name": "log", - "kind": 1024, - "kindString": "Property", + "id": 5449, + "name": "getLocalStorageItem", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A debug log event" - }, + "signatures": [ + { + "id": 5450, + "name": "getLocalStorageItem", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets a value from local storage for the focused window/frame." + }, + "parameters": [ + { + "id": 5451, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The key of the data to get.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getLocalStorageItem", + "id": 1203 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1091, - "character": 5 + "fileName": "src/webdriver/Session.ts", + "line": 2017, + "character": 21 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, "inheritedFrom": { "type": "reference", - "name": "Events.log", - "id": 4011 + "name": "Session.getLocalStorageItem", + "id": 1203 } }, { - "id": 1099, - "name": "remoteStatus", - "kind": 1024, - "kindString": "Property", + "id": 5441, + "name": "getLocalStorageKeys", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/RemoteSuite.ts", - "line": 296, - "character": 14 + "id": 5442, + "name": "getLocalStorageKeys", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the list of keys set in local storage for the focused window/frame." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getLocalStorageKeys", + "id": 1195 + } } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1113, - "name": "runEnd", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "All tests have finished running. This is functionally the same as\nafterRun." - }, "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1097, - "character": 8 + "fileName": "src/webdriver/Session.ts", + "line": 1991, + "character": 21 } ], - "type": { - "type": "intrinsic", - "name": "void" - }, "inheritedFrom": { "type": "reference", - "name": "Events.runEnd", - "id": 4012 + "name": "Session.getLocalStorageKeys", + "id": 1195 } }, { - "id": 1114, - "name": "runStart", - "kind": 1024, - "kindString": "Property", + "id": 5455, + "name": "getLocalStorageLength", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Emitted just before tests start running" - }, + "signatures": [ + { + "id": 5456, + "name": "getLocalStorageLength", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the number of keys set in local storage for the focused\nwindow/frame." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getLocalStorageLength", + "id": 1209 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1100, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 2034, + "character": 23 } ], - "type": { - "type": "intrinsic", - "name": "void" - }, "inheritedFrom": { "type": "reference", - "name": "Events.runStart", - "id": 4013 + "name": "Session.getLocalStorageLength", + "id": 1209 } }, { - "id": 1100, - "name": "serverEnd", - "kind": 1024, - "kindString": "Property", - "flags": { + "id": 5434, + "name": "getLogsFor", + "kind": 2048, + "kindString": "Method", + "flags": { "isExported": true }, - "comment": { - "shortText": "A test server has stopped" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/executors/Node.ts", - "line": 1004, - "character": 11 + "id": 5435, + "name": "getLogsFor", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets all logs from the remote environment of the given type. The logs in\nthe remote environment are cleared once they have been retrieved.", + "returns": "An array of log entry objects. Timestamps in log entries are\nUnix timestamps, in seconds.\n" + }, + "parameters": [ + { + "id": 5436, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The type of log entries to retrieve. Available log types\ndiffer between remote environments. Use\n[[Session.Session.getAvailableLogTypes]] to learn what log types are\ncurrently available. Not all environments support all possible log\ntypes.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "LogEntry", + "id": 656 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getLogsFor", + "id": 1186 + } } ], - "type": { - "type": "reference", - "name": "Server", - "id": 1245 - }, - "inheritedFrom": { - "type": "reference", - "name": "NodeEvents.serverEnd", - "id": 3257 - } - }, - { - "id": 1101, - "name": "serverStart", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A test server was started" - }, "sources": [ { - "fileName": "lib/executors/Node.ts", - "line": 1007, - "character": 13 + "fileName": "src/webdriver/Session.ts", + "line": 1919, + "character": 12 } ], - "type": { - "type": "reference", - "name": "Server", - "id": 1245 - }, "inheritedFrom": { "type": "reference", - "name": "NodeEvents.serverStart", - "id": 3258 + "name": "Session.getLogsFor", + "id": 1186 } }, { - "id": 1115, - "name": "suiteAdd", - "kind": 1024, - "kindString": "Property", + "id": 5356, + "name": "getOrientation", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A new suite has been added" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1103, - "character": 10 + "id": 5357, + "name": "getOrientation", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the current screen orientation.", + "returns": "Either 'portrait' or 'landscape'.\n" + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getOrientation", + "id": 1108 + } } ], - "type": { - "type": "reference", - "name": "Suite", - "id": 3400 - }, - "inheritedFrom": { - "type": "reference", - "name": "Events.suiteAdd", - "id": 4014 - } - }, - { - "id": 1116, - "name": "suiteEnd", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A suite has fininshed running" - }, "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1106, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 1418, + "character": 16 } ], - "type": { - "type": "reference", - "name": "Suite", - "id": 3400 - }, "inheritedFrom": { "type": "reference", - "name": "Events.suiteEnd", - "id": 4015 + "name": "Session.getOrientation", + "id": 1108 } }, { - "id": 1117, - "name": "suiteStart", - "kind": 1024, - "kindString": "Property", + "id": 5491, + "name": "getPageLoadTimeout", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A suite has started running" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1109, - "character": 12 + "id": 5492, + "name": "getPageLoadTimeout", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the timeout for [[Session.Session.get]] calls." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getPageLoadTimeout", + "id": 1245 + } } ], - "type": { - "type": "reference", - "name": "Suite", - "id": 3400 - }, - "inheritedFrom": { - "type": "reference", - "name": "Events.suiteStart", - "id": 4016 - } - }, - { - "id": 1118, - "name": "testAdd", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A new test has been added" - }, "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1112, - "character": 9 + "fileName": "src/webdriver/Session.ts", + "line": 2157, + "character": 20 } ], - "type": { - "type": "reference", - "name": "Test", - "id": 3317 - }, "inheritedFrom": { "type": "reference", - "name": "Events.testAdd", - "id": 4017 + "name": "Session.getPageLoadTimeout", + "id": 1245 } }, { - "id": 1119, - "name": "testEnd", - "kind": 1024, - "kindString": "Property", + "id": 5339, + "name": "getPageSource", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A test has finished" - }, + "signatures": [ + { + "id": 5340, + "name": "getPageSource", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the HTML loaded in the focused window/frame. This markup is\nserialised by the remote environment so may not exactly match the HTML\nprovided by the Web server." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getPageSource", + "id": 1091 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1115, - "character": 9 + "fileName": "src/webdriver/Session.ts", + "line": 1202, + "character": 15 } ], - "type": { - "type": "reference", - "name": "Test", - "id": 3317 - }, "inheritedFrom": { "type": "reference", - "name": "Events.testEnd", - "id": 4018 + "name": "Session.getPageSource", + "id": 1091 } }, { - "id": 1120, - "name": "testStart", - "kind": 1024, - "kindString": "Property", + "id": 5341, + "name": "getPageTitle", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A test has started" - }, + "signatures": [ + { + "id": 5342, + "name": "getPageTitle", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the title of the top-level browsing context of the current window\nor tab." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getPageTitle", + "id": 1093 + } + } + ], "sources": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1118, - "character": 11 + "fileName": "src/webdriver/Session.ts", + "line": 1218, + "character": 14 } ], - "type": { - "type": "reference", - "name": "Test", - "id": 3317 - }, "inheritedFrom": { "type": "reference", - "name": "Events.testStart", - "id": 4019 + "name": "Session.getPageTitle", + "id": 1093 } }, { - "id": 1102, - "name": "tunnelDownloadProgress", - "kind": 1024, - "kindString": "Property", + "id": 5465, + "name": "getSessionStorageItem", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Emitted as a Tunnel executable download is in process" - }, + "signatures": [ + { + "id": 5466, + "name": "getSessionStorageItem", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets a value from session storage for the focused window/frame." + }, + "parameters": [ + { + "id": 5467, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The key of the data to get.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getSessionStorageItem", + "id": 1219 + } + } + ], "sources": [ { - "fileName": "lib/executors/Node.ts", - "line": 1010, - "character": 24 + "fileName": "src/webdriver/Session.ts", + "line": 2068, + "character": 23 } ], - "type": { - "type": "reference", - "name": "TunnelMessage", - "id": 3252 - }, "inheritedFrom": { "type": "reference", - "name": "NodeEvents.tunnelDownloadProgress", - "id": 3259 + "name": "Session.getSessionStorageItem", + "id": 1219 } }, { - "id": 1103, - "name": "tunnelStart", - "kind": 1024, - "kindString": "Property", + "id": 5457, + "name": "getSessionStorageKeys", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A WebDriver tunnel has been opened" - }, + "signatures": [ + { + "id": 5458, + "name": "getSessionStorageKeys", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the list of keys set in session storage for the focused\nwindow/frame." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getSessionStorageKeys", + "id": 1211 + } + } + ], "sources": [ { - "fileName": "lib/executors/Node.ts", - "line": 1013, - "character": 13 + "fileName": "src/webdriver/Session.ts", + "line": 2042, + "character": 23 } ], - "type": { - "type": "reference", - "name": "TunnelMessage", - "id": 3252 - }, "inheritedFrom": { "type": "reference", - "name": "NodeEvents.tunnelStart", - "id": 3260 + "name": "Session.getSessionStorageKeys", + "id": 1211 } }, { - "id": 1104, - "name": "tunnelStatus", - "kind": 1024, - "kindString": "Property", + "id": 5471, + "name": "getSessionStorageLength", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A status update from a WebDriver tunnel" - }, + "signatures": [ + { + "id": 5472, + "name": "getSessionStorageLength", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the number of keys set in session storage for the focused\nwindow/frame." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getSessionStorageLength", + "id": 1225 + } + } + ], "sources": [ { - "fileName": "lib/executors/Node.ts", - "line": 1016, - "character": 14 + "fileName": "src/webdriver/Session.ts", + "line": 2085, + "character": 25 } ], - "type": { - "type": "reference", - "name": "TunnelMessage", - "id": 3252 - }, "inheritedFrom": { "type": "reference", - "name": "NodeEvents.tunnelStatus", - "id": 3261 + "name": "Session.getSessionStorageLength", + "id": 1225 } }, { - "id": 1105, - "name": "tunnelStop", - "kind": 1024, - "kindString": "Property", + "id": 5231, + "name": "getTimeout", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A WebDriver tunnel has been stopped" - }, + "signatures": [ + { + "id": 5232, + "name": "getTimeout", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the current value of a timeout for the session.", + "returns": "The timeout, in milliseconds.\n" + }, + "parameters": [ + { + "id": 5233, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The type of timeout to retrieve. One of 'script',\n'implicit', or 'page load'." + }, + "type": { + "type": "reference", + "name": "Timeout", + "id": 1380 + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getTimeout", + "id": 980 + } + } + ], "sources": [ { - "fileName": "lib/executors/Node.ts", - "line": 1019, + "fileName": "src/webdriver/Session.ts", + "line": 193, "character": 12 } ], - "type": { - "type": "reference", - "name": "TunnelMessage", - "id": 3252 - }, "inheritedFrom": { "type": "reference", - "name": "NodeEvents.tunnelStop", - "id": 3262 + "name": "Session.getTimeout", + "id": 980 } }, { - "id": 1121, - "name": "warning", - "kind": 1024, - "kindString": "Property", + "id": 5320, + "name": "getWindowPosition", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A non-fatal error occurred" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/executors/Executor.ts", - "line": 1121, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "Events.warning", - "id": 4020 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1106, - 1107, - 1108, - 1109, - 1110, - 1111, - 1112, - 1099, - 1113, - 1114, - 1100, - 1101, - 1115, - 1116, - 1117, - 1118, - 1119, - 1120, - 1102, - 1103, - 1104, - 1105, - 1121 - ] - } - ], - "sources": [ - { - "fileName": "lib/RemoteSuite.ts", - "line": 295, - "character": 29 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "NodeEvents", - "id": 3256 - } - ] - }, - { - "id": 1184, - "name": "intern", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "lib/RemoteSuite.ts", - "line": 15, - "character": 20 - } - ], - "type": { - "type": "reference", - "name": "Browser", - "id": 863 - } - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 1031 - ] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [ - 1122, - 1098 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 1184 - ] - } - ], - "sources": [ - { - "fileName": "lib/RemoteSuite.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1237, - "name": "\"lib/Server\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/Server.ts", - "children": [ - { - "id": 1245, - "name": "Server", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 1262, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 1263, - "name": "new Server", - "kind": 16384, - "kindString": "Constructor signature", + "id": 5321, + "name": "getWindowPosition", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Gets the position of a window.", + "text": "Note that this method is not part of the W3C WebDriver standard.\n", + "returns": "An object describing the position of the window, in CSS pixels,\nrelative to the top-left corner of the primary monitor. If a secondary\nmonitor exists above or to the left of the primary monitor, these values\nwill be negative.\n" + }, "parameters": [ { - "id": 1264, - "name": "options", + "id": 5322, + "name": "windowHandle", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, + "comment": { + "text": "The name of the window to query. See\n[[Session.Session.switchToWindow]] to learn about valid window names.\nOmit this argument to query the currently focused window.\n" + }, "type": { - "type": "reference", - "name": "ServerOptions", - "id": 1283 + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } } ], "type": { "type": "reference", - "name": "Server", - "id": 1245 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 5323, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 5324, + "name": "x", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 940, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5325, + "name": "y", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 940, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 5324, + 5325 + ] + } + ] + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getWindowPosition", + "id": 1072 } } ], "sources": [ { - "fileName": "lib/Server.ts", - "line": 55, - "character": 52 - } - ] - }, - { - "id": 1253, - "name": "_app", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 50, - "character": 16 + "fileName": "src/webdriver/Session.ts", + "line": 936, + "character": 19 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "express.Express" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "inheritedFrom": { + "type": "reference", + "name": "Session.getWindowPosition", + "id": 1072 } }, { - "id": 1254, - "name": "_httpServer", - "kind": 1024, - "kindString": "Property", + "id": 5297, + "name": "getWindowRect", + "kind": 2048, + "kindString": "Method", "flags": { - "isProtected": true, "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/Server.ts", - "line": 51, - "character": 23 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "HttpServer" + "id": 5298, + "name": "getWindowRect", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Return the current window's rectangle (size and position)." }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 1255, - "name": "_sessions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 52, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 1256, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": [ - { - "id": 1257, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 5299, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "parameters": [ + "children": [ { - "id": 1258, - "name": "id", - "kind": 32768, - "kindString": "Parameter", + "id": 5301, + "name": "height", + "kind": 32, + "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 834, + "character": 12 + } + ], "type": { "type": "intrinsic", - "name": "string" + "name": "number" } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 1259, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + }, + { + "id": 5300, + "name": "width", + "kind": 32, + "kindString": "Variable", "flags": {}, - "children": [ + "sources": [ { - "id": 1260, - "name": "listeners", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 53, - "character": 33 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "ServerListener", - "id": 1279 - } - } + "fileName": "src/webdriver/Session.ts", + "line": 833, + "character": 11 } ], - "groups": [ + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5302, + "name": "x", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ { - "title": "Variables", - "kind": 32, - "children": [ - 1260 - ] + "fileName": "src/webdriver/Session.ts", + "line": 835, + "character": 7 } ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5303, + "name": "y", + "kind": 32, + "kindString": "Variable", + "flags": {}, "sources": [ { - "fileName": "lib/Server.ts", - "line": 53, - "character": 21 + "fileName": "src/webdriver/Session.ts", + "line": 836, + "character": 7 } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 5301, + 5300, + 5302, + 5303 ] } - } - } - ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 53, - "character": 5 + ] } - ] - } + } + ] }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.getWindowRect", + "id": 1049 } - ] - } - }, - { - "id": 1261, - "name": "_wsServer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, + } + ], "sources": [ { - "fileName": "lib/Server.ts", - "line": 55, - "character": 21 + "fileName": "src/webdriver/Session.ts", + "line": 831, + "character": 15 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Server" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "inheritedFrom": { + "type": "reference", + "name": "Session.getWindowRect", + "id": 1049 } }, { - "id": 1247, - "name": "basePath", - "kind": 1024, - "kindString": "Property", + "id": 5291, + "name": "getWindowSize", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Base path to resolve file requests against" - }, + "signatures": [ + { + "id": 5292, + "name": "getWindowSize", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the dimensions of a window.", + "returns": "An object describing the width and height of the window, in CSS\npixels.\n" + }, + "parameters": [ + { + "id": 5293, + "name": "windowHandle", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The name of the window to query. See\n[[Session.Session.switchToWindow]] to learn about valid window names.\nOmit this argument to query the currently focused window.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 5294, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 5296, + "name": "height", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 786, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": " rect.height" + }, + { + "id": 5295, + "name": "width", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 785, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": " rect.width" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 5296, + 5295 + ] + } + ] + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.getWindowSize", + "id": 1043 + } + } + ], "sources": [ { - "fileName": "lib/Server.ts", - "line": 32, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 781, + "character": 15 } ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "ServerProperties.basePath", - "id": 1274 + "name": "Session.getWindowSize", + "id": 1043 } }, { - "id": 1246, - "name": "executor", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Executor managing this Server" + "id": 5246, + "name": "goBack", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/Server.ts", - "line": 29, - "character": 19 + "id": 5247, + "name": "goBack", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Navigates the focused window/frame back one page using the browser’s\nnavigation history." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.goBack", + "id": 998 + } } ], - "type": { - "type": "reference", - "name": "Node", - "id": 2600 - }, - "implementationOf": { - "type": "reference", - "name": "ServerProperties.executor", - "id": 1275 - } - }, - { - "id": 1248, - "name": "port", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Port to use for HTTP connections" - }, "sources": [ { - "fileName": "lib/Server.ts", - "line": 35, - "character": 6 + "fileName": "src/webdriver/Session.ts", + "line": 376, + "character": 8 } ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "ServerProperties.port", - "id": 1276 + "name": "Session.goBack", + "id": 998 } }, { - "id": 1249, - "name": "runInSync", - "kind": 1024, - "kindString": "Property", + "id": 5244, + "name": "goForward", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "If true, wait for emit handlers to complete before responding to a\nmessage" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Server.ts", - "line": 41, - "character": 11 + "id": 5245, + "name": "goForward", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Navigates the focused window/frame forward one page using the browser’s\nnavigation history." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.goForward", + "id": 996 + } } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "implementationOf": { - "type": "reference", - "name": "ServerProperties.runInSync", - "id": 1277 - } - }, - { - "id": 1250, - "name": "socketPort", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Port to use for WebSocket connections" - }, "sources": [ { - "fileName": "lib/Server.ts", - "line": 44, - "character": 12 + "fileName": "src/webdriver/Session.ts", + "line": 366, + "character": 11 } ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "ServerProperties.socketPort", - "id": 1278 + "name": "Session.goForward", + "id": 996 } }, { - "id": 1251, - "name": "stopped", - "kind": 262144, - "kindString": "Accessor", + "id": 5266, + "name": "isImeActivated", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "getSignature": [ + "signatures": [ { - "id": 1252, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5267, + "name": "isImeActivated", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns whether or not an input method editor is currently active in the\nremote environment. As of April 2014, no known remote environments\nsupport IME functions." + }, "type": { - "type": "intrinsic", - "name": "boolean" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.isImeActivated", + "id": 1018 } } ], "sources": [ { - "fileName": "lib/Server.ts", - "line": 46, - "character": 13 + "fileName": "src/webdriver/Session.ts", + "line": 551, + "character": 16 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.isImeActivated", + "id": 1018 + } }, { - "id": 1265, - "name": "start", + "id": 5416, + "name": "longTap", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, + "decorators": [ + { + "name": "forCommand", + "type": { + "type": "reference", + "name": "forCommand", + "id": 1381 + }, + "arguments": { + "properties": "{ usesElement: true }", + "__scrubbed__": true, + "__lenormalized__": true + } + } + ], "signatures": [ { - "id": 1266, - "name": "start", + "id": 5417, + "name": "longTap", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Performs a long-tap gesture on an element." + }, + "parameters": [ + { + "id": 5418, + "name": "element", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The element to long-tap.\n" + }, + "type": { + "type": "reference", + "name": "Element", + "id": 1415 + } + } + ], "type": { "type": "reference", - "name": "Promise", + "name": "CancellablePromise", + "id": 2, "typeArguments": [ { "type": "intrinsic", "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.longTap", + "id": 1168 } } ], "sources": [ { - "fileName": "lib/Server.ts", - "line": 68, - "character": 7 + "fileName": "src/webdriver/Session.ts", + "line": 1815, + "character": 9 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.longTap", + "id": 1168 + } }, { - "id": 1267, - "name": "stop", + "id": 5326, + "name": "maximizeWindow", "kind": 2048, "kindString": "Method", "flags": { @@ -25794,37 +26253,75 @@ }, "signatures": [ { - "id": 1268, - "name": "stop", + "id": 5327, + "name": "maximizeWindow", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Maximises a window according to the platform’s window system behaviour." + }, + "parameters": [ + { + "id": 5328, + "name": "windowHandle", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The name of the window to resize. See\n[[Session.Session.switchToWindow]] to learn about valid window names.\nOmit this argument to resize the currently focused window.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], "type": { "type": "reference", - "name": "Promise", + "name": "CancellablePromise", + "id": 2, "typeArguments": [ { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } + "type": "intrinsic", + "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.maximizeWindow", + "id": 1078 } } ], "sources": [ { - "fileName": "lib/Server.ts", - "line": 234, - "character": 6 + "fileName": "src/webdriver/Session.ts", + "line": 996, + "character": 16 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.maximizeWindow", + "id": 1078 + } }, { - "id": 1269, - "name": "subscribe", + "id": 5401, + "name": "moveFinger", "kind": 2048, "kindString": "Method", "flags": { @@ -25832,728 +26329,426 @@ }, "signatures": [ { - "id": 1270, - "name": "subscribe", + "id": 5402, + "name": "moveFinger", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen for all events for a specific session" + "shortText": "Moves the last depressed finger to a new point on the touch screen." }, "parameters": [ { - "id": 1271, - "name": "sessionId", + "id": 5403, + "name": "x", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The screen x-coordinate to move to, maybe in device pixels." + }, "type": { "type": "intrinsic", - "name": "string" + "name": "number" } }, { - "id": 1272, - "name": "listener", + "id": 5404, + "name": "y", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The screen y-coordinate to move to, maybe in device pixels.\n" + }, "type": { - "type": "reference", - "name": "ServerListener", - "id": 1279 + "type": "intrinsic", + "name": "number" } } ], "type": { "type": "reference", - "name": "Handle" + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.moveFinger", + "id": 1153 } } ], "sources": [ { - "fileName": "lib/Server.ts", - "line": 266, - "character": 11 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1262 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1253, - 1254, - 1255, - 1261, - 1247, - 1246, - 1248, - 1249, - 1250 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 1251 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1265, - 1267, - 1269 - ] - } - ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 27, - "character": 27 - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "ServerProperties", - "id": 1273 - } - ] - }, - { - "id": 1238, - "name": "Context", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 1240, - "name": "basePath", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 22, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1241, - "name": "executor", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 23, - "character": 19 + "fileName": "src/webdriver/Session.ts", + "line": 1729, + "character": 12 } ], - "type": { + "inheritedFrom": { "type": "reference", - "name": "Node", - "id": 2600 + "name": "Session.moveFinger", + "id": 1153 } }, { - "id": 1239, - "name": "stopped", - "kind": 1024, - "kindString": "Property", + "id": 5370, + "name": "moveMouseTo", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "decorators": [ { - "fileName": "lib/Server.ts", - "line": 21, - "character": 18 + "name": "forCommand", + "type": { + "type": "reference", + "name": "forCommand", + "id": 1381 + }, + "arguments": { + "properties": "{ usesElement: true }", + "__scrubbed__": true, + "__lenormalized__": true + } } ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 1242, - "name": "handleMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, "signatures": [ { - "id": 1243, - "name": "handleMessage", + "id": 5371, + "name": "moveMouseTo", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Moves the remote environment’s mouse cursor to the specified element or\nrelative position. If the element is outside of the viewport, the remote\ndriver will attempt to scroll it into view automatically." + }, + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.moveMouseTo", + "id": 1122 + } + }, + { + "id": 5372, + "name": "moveMouseTo", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1244, - "name": "message", + "id": 5373, + "name": "xOffset", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "type": { - "type": "reference", - "name": "Message", - "id": 1205 + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 5374, + "name": "yOffset", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] } } ], "type": { "type": "reference", - "name": "Promise", + "name": "CancellablePromise", + "id": 2, "typeArguments": [ { "type": "intrinsic", - "name": "any" + "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.moveMouseTo", + "id": 1122 } - } - ], - "sources": [ + }, { - "fileName": "lib/Server.ts", - "line": 24, - "character": 15 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1240, - 1241, - 1239 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1242 - ] - } - ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 20, - "character": 24 - } - ] - }, - { - "id": 1279, - "name": "ServerListener", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 1280, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 1281, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 5375, + "name": "moveMouseTo", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 5376, + "name": "element", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "Element", + "id": 1415 + } + }, + { + "id": 5377, + "name": "xOffset", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 5378, + "name": "yOffset", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1282, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, - "type": { - "type": "intrinsic", - "name": "any" + "inheritedFrom": { + "type": "reference", + "name": "Session.moveMouseTo", + "id": 1122 } } ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 352, - "character": 31 - } - ] - }, - { - "id": 1273, - "name": "ServerProperties", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 1274, - "name": "basePath", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/Server.ts", - "line": 345, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1275, - "name": "executor", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/webdriver/Session.ts", + "line": 1499, + "character": 13 + }, { - "fileName": "lib/Server.ts", - "line": 346, - "character": 10 - } - ], - "type": { - "type": "reference", - "name": "Node", - "id": 2600 - } - }, - { - "id": 1276, - "name": "port", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/webdriver/Session.ts", + "line": 1500, + "character": 13 + }, { - "fileName": "lib/Server.ts", - "line": 347, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 1277, - "name": "runInSync", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ + "fileName": "src/webdriver/Session.ts", + "line": 1501, + "character": 13 + }, { - "fileName": "lib/Server.ts", - "line": 348, - "character": 11 + "fileName": "src/webdriver/Session.ts", + "line": 1507, + "character": 13 } ], - "type": { - "type": "intrinsic", - "name": "boolean" + "inheritedFrom": { + "type": "reference", + "name": "Session.moveMouseTo", + "id": 1122 } }, { - "id": 1278, - "name": "socketPort", - "kind": 1024, - "kindString": "Property", + "id": 5393, + "name": "pressFinger", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/Server.ts", - "line": 349, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1274, - 1275, - 1276, - 1277, - 1278 - ] - } - ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 344, - "character": 33 - } - ], - "implementedBy": [ - { - "type": "reference", - "name": "Server", - "id": 1245 - } - ] - }, - { - "id": 1283, - "name": "ServerOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 356, - "character": 25 - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "name": "Partial", - "typeArguments": [ - { - "type": "reference", - "name": "ServerProperties", - "id": 1273 - } - ] - }, - { - "type": "reflection", - "declaration": { - "id": 1284, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "id": 5394, + "name": "pressFinger", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "children": [ + "comment": { + "shortText": "Depresses a new finger at the given point on a touch screen device\nwithout releasing it." + }, + "parameters": [ { - "id": 1285, - "name": "executor", - "kind": 32, - "kindString": "Variable", + "id": 5395, + "name": "x", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 356, - "character": 66 - } - ], + "comment": { + "text": "The screen x-coordinate to press, maybe in device pixels." + }, "type": { - "type": "reference", - "name": "Node", - "id": 2600 + "type": "intrinsic", + "name": "number" } - } - ], - "groups": [ + }, { - "title": "Variables", - "kind": 32, - "children": [ - 1285 - ] + "id": 5396, + "name": "y", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The screen y-coordinate to press, maybe in device pixels.\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } } ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 356, - "character": 55 - } - ] - } - } - ] - } - }, - { - "id": 1286, - "name": "resolvedPromise", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 358, - "character": 21 - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "defaultValue": " Promise.resolve()" - }, - { - "id": 1287, - "name": "getShouldWait", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 1288, - "name": "getShouldWait", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Indicate whether Server should wait for an event to process before sending an\nacknowlegement." - }, - "parameters": [ - { - "id": 1289, - "name": "waitMode", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ { "type": "intrinsic", - "name": "boolean" + "name": "void" } ] - } - }, - { - "id": 1290, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { + }, + "inheritedFrom": { "type": "reference", - "name": "Message", - "id": 1205 + "name": "Session.pressFinger", + "id": 1145 } } ], - "type": { - "type": "intrinsic", - "name": "boolean" + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 1703, + "character": 13 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.pressFinger", + "id": 1145 } - } - ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 364, - "character": 22 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 1245 - ] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [ - 1238, - 1279, - 1273 - ] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [ - 1283 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 1286 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [ - 1287 - ] - } - ], - "sources": [ - { - "fileName": "lib/Server.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 3399, - "name": "\"lib/Suite\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "src/lib/Suite.ts", - "children": [ - { - "id": 3400, - "name": "Suite", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The Suite class manages a group of tests." - }, - "children": [ + }, { - "id": 3415, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 5353, + "name": "pressKeys", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": {}, "signatures": [ { - "id": 3416, - "name": "new Suite", - "kind": 16384, - "kindString": "Constructor signature", + "id": 5354, + "name": "pressKeys", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": {}, + "comment": { + "shortText": "Types into the focused window/frame/element." + }, "parameters": [ { - "id": 3417, - "name": "options", + "id": 5355, + "name": "keys", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "an object with default property values\n" + "text": "The text to type in the remote environment. It is possible\nto type keys that do not have normal character representations (modifier\nkeys, function keys, etc.) as well as keys that have two different\nrepresentations on a typical US-ASCII keyboard (numpad keys); use the\nvalues from [[keys]] to type these special characters. Any modifier keys\nthat are activated by this call will persist until they are deactivated.\nTo deactivate a modifier key, type the same modifier key a second time,\nor send `\\uE000` ('NULL') to deactivate all currently active modifier\nkeys.\n" }, "type": { "type": "union", "types": [ { - "type": "reference", - "name": "SuiteOptions", - "id": 3492 + "type": "intrinsic", + "name": "string" }, { - "type": "reference", - "name": "RootSuiteOptions", - "id": 3497 + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } ] } @@ -26561,1137 +26756,1020 @@ ], "type": { "type": "reference", - "name": "Suite", - "id": 3400 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.pressKeys", + "id": 1105 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 74, - "character": 39 - } - ] - }, - { - "id": 3401, - "name": "after", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An optional method that is run after all the suite's tests have completed" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 22, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.after", - "id": 3480 - } - }, - { - "id": 3402, - "name": "afterEach", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An optional method that is run after each test has completed" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 27, + "fileName": "src/webdriver/Session.ts", + "line": 1399, "character": 11 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "SuiteProperties.afterEach", - "id": 3481 + "name": "Session.pressKeys", + "id": 1105 } }, { - "id": 3403, - "name": "async", - "kind": 1024, - "kindString": "Property", + "id": 5382, + "name": "pressMouseButton", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A convenience function that generates and returns a special\n[[lib/Deferred.Deferred]] that can be used for asynchronous testing" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 33, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 3404, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 3405, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 3406, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "type": { - "type": "reference", - "name": "Deferred", - "id": 3, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] + "id": 5383, + "name": "pressMouseButton", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Depresses a mouse button without releasing it." + }, + "parameters": [ + { + "id": 5384, + "name": "button", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "The button to press. See [[Session.Session.click]] for\navailable options.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 33, - "character": 8 - } - ] + ] + } } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.pressMouseButton", + "id": 1134 } - ] - } - }, - { - "id": 3407, - "name": "before", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An optional method that is run before any of this suite's tests are\nstarted" - }, + } + ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 39, - "character": 8 + "fileName": "src/webdriver/Session.ts", + "line": 1614, + "character": 18 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "SuiteProperties.before", - "id": 3483 + "name": "Session.pressMouseButton", + "id": 1134 } }, { - "id": 3408, - "name": "beforeEach", - "kind": 1024, - "kindString": "Property", + "id": 5195, + "name": "quit", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "An optional method that is run before each test" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 44, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 5196, + "name": "quit", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Quits the browser like `leadfoot/Session#quit`, but retrieves any code\ncoverage data recorded by the browser prior to quitting." + }, + "type": { "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "void" + } + ] + } + ] }, - { - "type": "intrinsic", - "name": "undefined" + "overwrites": { + "type": "reference", + "name": "Session.quit", + "id": 1193 } - ] - }, - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.beforeEach", - "id": 3484 - } - }, - { - "id": 3409, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The error that caused this suite to fail" - }, + } + ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 47, - "character": 7 + "fileName": "src/core/lib/ProxiedSession.ts", + "line": 70, + "character": 6 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "InternError", - "id": 23 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "overwrites": { + "type": "reference", + "name": "Session.quit", + "id": 1193 } }, { - "id": 3410, - "name": "parent", - "kind": 1024, - "kindString": "Property", + "id": 5248, + "name": "refresh", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "This suite's parent Suite" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 50, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 5249, + "name": "refresh", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Reloads the current browser window/frame." + }, + "type": { "type": "reference", - "name": "Suite", - "id": 3400 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.refresh", + "id": 1000 } - ] - } - }, - { - "id": 3411, - "name": "publishAfterSetup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "If true, the suite will emit a suiteStart event after the `before`\ncallback has finished, and will emit a suiteEnd event before the `after`\ncallback has finished." - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 57, - "character": 19 } ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false", - "implementationOf": { - "type": "reference", - "name": "SuiteProperties.publishAfterSetup", - "id": 3487 - } - }, - { - "id": 3412, - "name": "skipped", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The reason why this suite was skipped" - }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 60, + "fileName": "src/webdriver/Session.ts", + "line": 385, "character": 9 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "inheritedFrom": { + "type": "reference", + "name": "Session.refresh", + "id": 1000 } }, { - "id": 3413, - "name": "tests", - "kind": 1024, - "kindString": "Property", + "id": 5397, + "name": "releaseFinger", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The tests or other suites managed by this suite" - }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 63, - "character": 7 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "union", - "types": [ + "id": 5398, + "name": "releaseFinger", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Releases whatever finger exists at the given point on a touch screen\ndevice." + }, + "parameters": [ { - "type": "reference", - "name": "Suite", - "id": 3400 + "id": 5399, + "name": "x", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The screen x-coordinate where a finger is pressed, maybe in\ndevice pixels." + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "type": "reference", - "name": "Test", - "id": 3317 + "id": 5400, + "name": "y", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The screen y-coordinate where a finger is pressed, maybe in\ndevice pixels.\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.releaseFinger", + "id": 1149 + } } - }, - "defaultValue": " []" - }, - { - "id": 3414, - "name": "timeElapsed", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The time required to run all the tests in this suite" - }, + ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 66, - "character": 13 + "fileName": "src/webdriver/Session.ts", + "line": 1719, + "character": 15 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "inheritedFrom": { + "type": "reference", + "name": "Session.releaseFinger", + "id": 1149 } }, { - "id": 3418, - "name": "bail", - "kind": 262144, - "kindString": "Accessor", + "id": 5385, + "name": "releaseMouseButton", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." - }, - "getSignature": [ + "signatures": [ { - "id": 3419, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5386, + "name": "releaseMouseButton", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "setSignature": [ - { - "id": 3420, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", - "flags": {}, - "comment": { - "shortText": "A flag used to indicate whether a test run should stop after a failed\ntest." + "shortText": "Releases a previously depressed mouse button." }, "parameters": [ { - "id": 3421, - "name": "value", + "id": 5387, + "name": "button", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, + "comment": { + "text": "The button to press. See [[Session.Session.click]] for\navailable options.\n" + }, "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.releaseMouseButton", + "id": 1137 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 102, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 106, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 1636, + "character": 20 } ], - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "SuiteProperties.bail", - "id": 3482 + "name": "Session.releaseMouseButton", + "id": 1137 } }, { - "id": 3422, - "name": "executor", - "kind": 262144, - "kindString": "Accessor", + "id": 5225, + "name": "serverDelete", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The executor used to run this Suite." - }, - "getSignature": [ - { - "id": 3423, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The executor used to run this Suite." - }, - "type": { - "type": "reference", - "name": "Executor", - "id": 3780 - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 3424, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 5226, + "name": "serverDelete", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "The executor used to run this Suite." - }, + "typeParameter": [ + { + "id": 5227, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 3425, - "name": "value", + "id": 5228, + "name": "path", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "Executor", - "id": 3780 + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5229, + "name": "requestData", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 5230, + "name": "pathParts", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "unknown", + "name": "T" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.serverDelete", + "id": 974 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 113, - "character": 14 - }, - { - "fileName": "lib/Suite.ts", - "line": 118, + "fileName": "src/webdriver/Session.ts", + "line": 182, "character": 14 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.serverDelete", + "id": 974 + } }, { - "id": 3426, - "name": "grep", - "kind": 262144, - "kindString": "Accessor", + "id": 5213, + "name": "serverGet", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." - }, - "getSignature": [ - { - "id": 3427, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." - }, - "type": { - "type": "reference", - "name": "RegExp" - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 3428, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 5214, + "name": "serverGet", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "A regular expression used to filter, by test ID, which tests are run." - }, + "typeParameter": [ + { + "id": 5215, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], "parameters": [ { - "id": 3429, - "name": "value", + "id": 5216, + "name": "path", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "RegExp" + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5217, + "name": "requestData", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 5218, + "name": "pathParts", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "unknown", + "name": "T" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.serverGet", + "id": 962 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 130, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 134, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 174, + "character": 11 } ], - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "SuiteProperties.grep", - "id": 3485 + "name": "Session.serverGet", + "id": 962 } }, { - "id": 3454, - "name": "hasParent", - "kind": 262144, - "kindString": "Accessor", + "id": 5219, + "name": "serverPost", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." - }, - "getSignature": [ + "signatures": [ { - "id": 3455, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5220, + "name": "serverPost", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Whether or not this suite has a parent (for parity with serialized\nSuites)." - }, + "typeParameter": [ + { + "id": 5221, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "parameters": [ + { + "id": 5222, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5223, + "name": "requestData", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 5224, + "name": "pathParts", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], "type": { - "type": "intrinsic", - "name": "boolean" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "unknown", + "name": "T" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.serverPost", + "id": 968 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 278, - "character": 15 + "fileName": "src/webdriver/Session.ts", + "line": 178, + "character": 12 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.serverPost", + "id": 968 + } }, { - "id": 3434, - "name": "id", - "kind": 262144, - "kindString": "Accessor", + "id": 5331, + "name": "setCookie", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The unique identifier of the suite, assuming all combinations of suite +\ntest are unique." - }, - "getSignature": [ + "signatures": [ { - "id": 3435, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5332, + "name": "setCookie", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The unique identifier of the suite, assuming all combinations of suite +\ntest are unique." + "shortText": "Sets a cookie on the current page." }, + "parameters": [ + { + "id": 5333, + "name": "cookie", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "WebDriverCookie", + "id": 660 + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setCookie", + "id": 1083 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 157, - "character": 8 + "fileName": "src/webdriver/Session.ts", + "line": 1066, + "character": 11 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.setCookie", + "id": 1083 + } }, { - "id": 3430, - "name": "name", - "kind": 262144, - "kindString": "Accessor", + "id": 5483, + "name": "setExecuteAsyncTimeout", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "This suite's name" - }, - "getSignature": [ + "signatures": [ { - "id": 3431, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5484, + "name": "setExecuteAsyncTimeout", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "This suite's name" + "shortText": "Sets the timeout for [[Session.Session.executeAsync]] calls." }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "parameters": [ + { + "id": 5485, + "name": "ms", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The length of the timeout, in milliseconds.\n" }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ { "type": "intrinsic", - "name": "string" + "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setExecuteAsyncTimeout", + "id": 1237 } } ], - "setSignature": [ + "sources": [ { - "id": 3432, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "fileName": "src/webdriver/Session.ts", + "line": 2134, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.setExecuteAsyncTimeout", + "id": 1237 + } + }, + { + "id": 5488, + "name": "setFindTimeout", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 5489, + "name": "setFindTimeout", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "This suite's name" + "shortText": "Sets the timeout for [[Session.Session.find]] calls." }, "parameters": [ { - "id": 3433, - "name": "value", + "id": 5490, + "name": "ms", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The length of the timeout, in milliseconds.\n" + }, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "type": "intrinsic", + "name": "number" } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setFindTimeout", + "id": 1242 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 142, - "character": 10 - }, - { - "fileName": "lib/Suite.ts", - "line": 146, - "character": 10 + "fileName": "src/webdriver/Session.ts", + "line": 2150, + "character": 16 } ], - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "SuiteProperties.name", - "id": 3486 + "name": "Session.setFindTimeout", + "id": 1242 } }, { - "id": 3450, - "name": "numFailedTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." - }, - "getSignature": [ - { - "id": 3451, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that\nfailed." - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 248, - "character": 20 - } - ] - }, - { - "id": 3448, - "name": "numPassedTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The total number of tests in this test suite that passed." - }, - "getSignature": [ - { - "id": 3449, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The total number of tests in this test suite that passed." - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 233, - "character": 20 - } - ] - }, - { - "id": 3452, - "name": "numSkippedTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." - }, - "getSignature": [ - { - "id": 3453, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The total number of tests in this test suite and any sub-suites that were\nskipped." - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 263, - "character": 21 - } - ] - }, - { - "id": 3446, - "name": "numTests", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." - }, - "getSignature": [ - { - "id": 3447, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The total number of tests in this suite and any sub-suites. To get only\nthe number of tests for this suite, look at `this.tests.length`." - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 221, - "character": 14 - } - ] - }, - { - "id": 3436, - "name": "parentId", - "kind": 262144, - "kindString": "Accessor", + "id": 5431, + "name": "setGeolocation", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The unique identifier of the suite's parent." - }, - "getSignature": [ + "signatures": [ { - "id": 3437, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 5432, + "name": "setGeolocation", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The unique identifier of the suite's parent." + "shortText": "Sets the geographical location of the remote environment." }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "parameters": [ + { + "id": 5433, + "name": "location", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Latitude and longitude are specified using standard\nWGS84 decimal latitude/longitude. Altitude is specified as meters above\nthe WGS84 ellipsoid. Not all environments support altitude.\n" }, + "type": { + "type": "reference", + "name": "Geolocation", + "id": 652 + } + } + ], + "type": { + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ { "type": "intrinsic", - "name": "string" + "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setGeolocation", + "id": 1183 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 171, - "character": 14 + "fileName": "src/webdriver/Session.ts", + "line": 1896, + "character": 16 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.setGeolocation", + "id": 1183 + } }, { - "id": 3438, - "name": "remote", - "kind": 262144, - "kindString": "Accessor", + "id": 5197, + "name": "setHeartbeatInterval", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." - }, - "getSignature": [ - { - "id": 3439, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." - }, - "type": { - "type": "reference", - "name": "Remote", - "id": 2813 - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 3440, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 5198, + "name": "setHeartbeatInterval", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The WebDriver interface for driving a remote environment. This value is\nonly guaranteed to exist from the before/beforeEach/afterEach/after and\ntest methods, since environments are not instantiated until they are\nactually ready to be tested against." + "shortText": "Sets up a timer to send no-op commands to the remote server on an\ninterval to prevent long-running unit tests from causing the session to\ntime out." }, "parameters": [ { - "id": 3441, - "name": "value", + "id": 5199, + "name": "delay", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "Amount of time to wait between heartbeats. Setting the delay\nto 0 will disable heartbeats.\n" + }, "type": { - "type": "reference", - "name": "Remote", - "id": 2813 + "type": "intrinsic", + "name": "number" } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 184, - "character": 12 - }, - { - "fileName": "lib/Suite.ts", - "line": 190, - "character": 12 + "fileName": "src/core/lib/ProxiedSession.ts", + "line": 89, + "character": 22 } ] }, { - "id": 3442, - "name": "sessionId", - "kind": 262144, - "kindString": "Accessor", + "id": 5443, + "name": "setLocalStorageItem", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "The sessionId of the environment in which the suite executed." - }, - "getSignature": [ - { - "id": 3443, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "The sessionId of the environment in which the suite executed." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 3444, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 5444, + "name": "setLocalStorageItem", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "The sessionId of the environment in which the suite executed." + "shortText": "Sets a value in local storage for the focused window/frame." }, "parameters": [ { - "id": 3445, + "id": 5445, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The key to set." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5446, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The value to set.\n" + }, "type": { "type": "intrinsic", "name": "string" @@ -27699,92 +27777,104 @@ } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setLocalStorageItem", + "id": 1197 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 200, - "character": 15 - }, - { - "fileName": "lib/Suite.ts", - "line": 213, - "character": 15 + "fileName": "src/webdriver/Session.ts", + "line": 2001, + "character": 21 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.setLocalStorageItem", + "id": 1197 + } }, { - "id": 3456, - "name": "timeout", - "kind": 262144, - "kindString": "Accessor", + "id": 5358, + "name": "setOrientation", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "getSignature": [ - { - "id": 3457, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "setSignature": [ + "signatures": [ { - "id": 3458, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 5359, + "name": "setOrientation", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Sets the screen orientation." + }, "parameters": [ { - "id": 3459, - "name": "value", + "id": 5360, + "name": "orientation", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "Either 'portrait' or 'landscape'.\n" + }, "type": { "type": "intrinsic", - "name": "number" + "name": "string" } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setOrientation", + "id": 1110 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 282, - "character": 13 - }, - { - "fileName": "lib/Suite.ts", - "line": 292, - "character": 13 + "fileName": "src/webdriver/Session.ts", + "line": 1431, + "character": 16 } ], - "implementationOf": { + "inheritedFrom": { "type": "reference", - "name": "SuiteProperties.timeout", - "id": 3488 + "name": "Session.setOrientation", + "id": 1110 } }, { - "id": 3460, - "name": "add", + "id": 5493, + "name": "setPageLoadTimeout", "kind": 2048, "kindString": "Method", "flags": { @@ -27792,55 +27882,64 @@ }, "signatures": [ { - "id": 3461, - "name": "add", + "id": 5494, + "name": "setPageLoadTimeout", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Add a test or suite to this suite." + "shortText": "Sets the timeout for [[Session.Session.get]] calls." }, "parameters": [ { - "id": 3462, - "name": "suiteOrTest", + "id": 5495, + "name": "ms", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "text": "The length of the timeout, in milliseconds.\n" + }, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Suite", - "id": 3400 - }, - { - "type": "reference", - "name": "Test", - "id": 3317 - } - ] + "type": "intrinsic", + "name": "number" } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setPageLoadTimeout", + "id": 1247 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 299, - "character": 5 + "fileName": "src/webdriver/Session.ts", + "line": 2166, + "character": 20 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.setPageLoadTimeout", + "id": 1247 + } }, { - "id": 3463, - "name": "run", + "id": 5459, + "name": "setSessionStorageItem", "kind": 2048, "kindString": "Method", "flags": { @@ -27848,38 +27947,78 @@ }, "signatures": [ { - "id": 3464, - "name": "run", + "id": 5460, + "name": "setSessionStorageItem", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Runs test suite in order:", - "text": "* before\n* (for each test)\n * beforeEach\n * test\n * afterEach\n* after\n\nIf before, beforeEach, afterEach, or after throw, the suite itself will\nbe marked as failed and no further tests in the suite will be executed.\n" + "shortText": "Sets a value in session storage for the focused window/frame." }, + "parameters": [ + { + "id": 5461, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The key to set." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5462, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The value to set.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { "type": "reference", "name": "CancellablePromise", + "id": 2, "typeArguments": [ { "type": "intrinsic", "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setSessionStorageItem", + "id": 1213 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 363, - "character": 5 + "fileName": "src/webdriver/Session.ts", + "line": 2052, + "character": 23 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.setSessionStorageItem", + "id": 1213 + } }, { - "id": 3465, - "name": "skip", + "id": 5234, + "name": "setTimeout", "kind": 2048, "kindString": "Method", "flags": { @@ -27887,49 +28026,79 @@ }, "signatures": [ { - "id": 3466, - "name": "skip", + "id": 5235, + "name": "setTimeout", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Skips this suite.", - "text": "Calling this function will cause all remaining tests in the suite to be\nskipped. If a message was provided, a reporter may report the suite’s\ntests as skipped. Skipped tests are not treated as passing or failing.\n\nIf this method is called from a test function (as this.parent.skip()),\nthe test will be immediately halted, just as if the test’s own skip\nmethod were called.\n" + "shortText": "Sets the value of a timeout for the session." }, "parameters": [ { - "id": 3467, - "name": "message", + "id": 5236, + "name": "type", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "If provided, will be stored in this suite's `skipped`\nproperty.\n" + "text": "The type of timeout to set. One of 'script', 'implicit', or\n'page load'.\n" }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "Timeout", + "id": 1380 + } + }, + { + "id": 5237, + "name": "ms", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The length of time to use for the timeout, in milliseconds. A\nvalue of 0 will cause operations to time out immediately.\n" }, - "defaultValue": "\"suite skipped\"" + "type": { + "type": "intrinsic", + "name": "number" + } } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setTimeout", + "id": 983 } } ], "sources": [ { - "fileName": "lib/Suite.ts", - "line": 736, - "character": 6 + "fileName": "src/webdriver/Session.ts", + "line": 212, + "character": 12 } - ] + ], + "inheritedFrom": { + "type": "reference", + "name": "Session.setTimeout", + "id": 983 + } }, { - "id": 3468, - "name": "toJSON", + "id": 5312, + "name": "setWindowPosition", "kind": 2048, "kindString": "Method", "flags": { @@ -27937,1910 +28106,1430 @@ }, "signatures": [ { - "id": 3469, - "name": "toJSON", + "id": 5313, + "name": "setWindowPosition", "kind": 4096, "kindString": "Call signature", "flags": {}, - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 743, - "character": 8 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 3415 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 3401, - 3402, - 3403, - 3407, - 3408, - 3409, - 3410, - 3411, - 3412, - 3413, - 3414 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 3418, - 3422, - 3426, - 3454, - 3434, - 3430, - 3450, - 3448, - 3452, - 3446, - 3436, - 3438, - 3442, - 3456 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 3460, - 3463, - 3465, - 3468 - ] - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 18, - "character": 26 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "RemoteSuite", - "id": 1031 - }, - { - "type": "reference", - "name": "BenchmarkSuite", - "id": 3653 - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "SuiteProperties", - "id": 3479 - } - ] - }, - { - "id": 3470, - "name": "SuiteLifecycleFunction", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 3471, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 3472, - "name": "this", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, + "comment": { + "shortText": "Sets the position of a window.", + "text": "Note that this method is not part of the W3C WebDriver standard.\n" + }, + "parameters": [ + { + "id": 5314, + "name": "x", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The screen x-coordinate to move to, in CSS pixels, relative to\nthe left edge of the primary monitor.\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5315, + "name": "y", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The screen y-coordinate to move to, in CSS pixels, relative to\nthe top edge of the primary monitor.\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], "type": { "type": "reference", - "name": "Suite", - "id": 3400 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setWindowPosition", + "id": 1064 } }, { - "id": 3473, - "name": "suite", - "kind": 32768, - "kindString": "Parameter", + "id": 5316, + "name": "setWindowPosition", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 5317, + "name": "windowHandle", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5318, + "name": "x", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5319, + "name": "y", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], "type": { "type": "reference", - "name": "Suite", - "id": 3400 - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "reference", - "name": "PromiseLike", + "name": "CancellablePromise", + "id": 2, "typeArguments": [ { "type": "intrinsic", - "name": "any" + "name": "void" } ] - } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 789, - "character": 39 - } - ] - }, - { - "id": 3479, - "name": "SuiteProperties", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Properties that can be set on a Suite.", - "text": "Note that 'tests' isn't included so that other interfaces, such as the object\ninterface, can use a different definition for it.\n" - }, - "children": [ - { - "id": 3480, - "name": "after", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 804, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.setWindowPosition", + "id": 1064 } - ] - } - }, - { - "id": 3481, - "name": "afterEach", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 805, - "character": 11 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 3482, - "name": "bail", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 806, - "character": 6 + "fileName": "src/webdriver/Session.ts", + "line": 865, + "character": 19 + }, + { + "fileName": "src/webdriver/Session.ts", + "line": 866, + "character": 19 + }, + { + "fileName": "src/webdriver/Session.ts", + "line": 871, + "character": 19 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "boolean" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "inheritedFrom": { + "type": "reference", + "name": "Session.setWindowPosition", + "id": 1064 } }, { - "id": 3483, - "name": "before", - "kind": 1024, - "kindString": "Property", + "id": 5304, + "name": "setWindowRect", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 807, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 5305, + "name": "setWindowRect", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Set the current window's rectangle (size and position)." + }, + "parameters": [ + { + "id": 5306, + "name": "rect", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The windows rectangle. This may contain all 4 properties, or\njust x & y, or just width & height.\n" + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5307, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 5311, + "name": "height", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 846, + "character": 67 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5310, + "name": "width", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 846, + "character": 51 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5308, + "name": "x", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 846, + "character": 25 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5309, + "name": "y", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 846, + "character": 36 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 5311, + 5310, + 5308, + 5309 + ] + } + ], + "sources": [ + { + "fileName": "src/webdriver/Session.ts", + "line": 846, + "character": 21 + } + ] + } + } + } + ], + "type": { "type": "reference", - "name": "SuiteLifecycleFunction", - "id": 3470 + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] }, - { - "type": "intrinsic", - "name": "undefined" + "inheritedFrom": { + "type": "reference", + "name": "Session.setWindowRect", + "id": 1056 } - ] - } - }, - { - "id": 3484, - "name": "beforeEach", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 808, - "character": 12 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "TestLifecycleFunction", - "id": 3474 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 3485, - "name": "grep", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { - "fileName": "lib/Suite.ts", - "line": 809, - "character": 6 + "fileName": "src/webdriver/Session.ts", + "line": 846, + "character": 15 } ], - "type": { + "inheritedFrom": { "type": "reference", - "name": "RegExp" + "name": "Session.setWindowRect", + "id": 1056 } }, { - "id": 3486, - "name": "name", - "kind": 1024, - "kindString": "Property", + "id": 5283, + "name": "setWindowSize", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "lib/Suite.ts", - "line": 810, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" + "id": 5284, + "name": "setWindowSize", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sets the dimensions of a window." }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - } - }, - { - "id": 3487, - "name": "publishAfterSetup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 811, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 3488, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 812, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 3480, - 3481, - 3482, - 3483, - 3484, - 3485, - 3486, - 3487, - 3488 - ] - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 803, - "character": 32 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "BenchmarkSuiteProperties", - "id": 3725 - } - ], - "implementedBy": [ - { - "type": "reference", - "name": "BenchmarkSuite", - "id": 3653 - }, - { - "type": "reference", - "name": "RemoteSuite", - "id": 1031 - }, - { - "type": "reference", - "name": "Suite", - "id": 3400 - } - ] - }, - { - "id": 3474, - "name": "TestLifecycleFunction", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 3475, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 3476, - "name": "this", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, + "parameters": [ + { + "id": 5285, + "name": "width", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The new width of the window, in CSS pixels.\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5286, + "name": "height", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The new height of the window, in CSS pixels.\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], "type": { "type": "reference", - "name": "Suite", - "id": 3400 - } - }, - { - "id": 3477, - "name": "test", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { + "name": "CancellablePromise", + "id": 2, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { "type": "reference", - "name": "Test", - "id": 3317 + "name": "Session.setWindowSize", + "id": 1035 } }, { - "id": 3478, - "name": "suite", - "kind": 32768, - "kindString": "Parameter", + "id": 5287, + "name": "setWindowSize", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 5288, + "name": "windowHandle", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5289, + "name": "width", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5290, + "name": "height", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], "type": { "type": "reference", - "name": "Suite", - "id": 3400 - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "void" - }, - { - "type": "reference", - "name": "PromiseLike", + "name": "CancellablePromise", + "id": 2, "typeArguments": [ { "type": "intrinsic", - "name": "any" + "name": "void" } ] + }, + "inheritedFrom": { + "type": "reference", + "name": "Session.setWindowSize", + "id": 1035 } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 793, - "character": 38 - } - ] - }, - { - "id": 3502, - "name": "LifecycleMethod", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A suite lifecycle method" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 840, - "character": 27 - } - ], - "type": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "name": "Pick", - "typeArguments": [ + } + ], + "sources": [ { - "type": "reference", - "name": "Suite" + "fileName": "src/webdriver/Session.ts", + "line": 710, + "character": 15 }, { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "before" - }, - { - "type": "stringLiteral", - "value": "after" - }, - { - "type": "stringLiteral", - "value": "beforeEach" - }, - { - "type": "stringLiteral", - "value": "afterEach" - } - ] + "fileName": "src/webdriver/Session.ts", + "line": 711, + "character": 15 + }, + { + "fileName": "src/webdriver/Session.ts", + "line": 716, + "character": 15 } - ] - } - } - }, - { - "id": 3497, - "name": "RootSuiteOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Options that can be passed into a Suite constructor to initialize a root\nsuite" - }, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 828, - "character": 28 - } - ], - "type": { - "type": "intersection", - "types": [ - { + ], + "inheritedFrom": { "type": "reference", - "name": "Partial", - "typeArguments": [ - { - "type": "reference", - "name": "SuiteProperties", - "id": 3479 - } - ] + "name": "Session.setWindowSize", + "id": 1035 + } + }, + { + "id": 5273, + "name": "switchToFrame", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true }, - { - "type": "reflection", - "declaration": { - "id": 3498, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "signatures": [ + { + "id": 5274, + "name": "switchToFrame", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "children": [ + "comment": { + "shortText": "Switches the currently focused frame to a new frame." + }, + "parameters": [ { - "id": 3499, - "name": "executor", - "kind": 32, - "kindString": "Variable", + "id": 5275, + "name": "id", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "sources": [ - { - "fileName": "lib/Suite.ts", - "line": 829, - "character": 10 - } - ], - "type": { - "type": "reference", - "name": "Executor", - "id": 3780 - } - }, - { - "id": 3500, - "name": "tests", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true + "comment": { + "text": "The frame to switch to. In most environments, a number or\nstring value corresponds to a key in the `window.frames` object of the\ncurrently active frame. If `null`, the topmost (default) frame will be\nused. If an Element is provided, it must correspond to a `` or\n`' + ).then(() => + session + .serverPost('frame', { id: 'inlineFrame' }) + .then( + unsupported, + error => + error.name === 'NoSuchFrame' || + // At least geckodriver 0.24.0 throws an Unknown Command error + // with a message about an invalid tag name rather than a NoSuchFrame error + // (see https://github.com/mozilla/geckodriver/issues/1456) + /any variant of untagged/.test(error.message) + ) + ); + } + + if (capabilities.returnsFromClickImmediately == null) { + testedCapabilities.returnsFromClickImmediately = () => { + function assertSelected(expected: any) { + return function(actual: any) { + if (expected !== actual) { + throw new Error('unexpected selection state'); + } + }; + } + + return get('') + .then(() => session.findById('c')) + .then(element => + element + .click() + .then(() => element.isSelected()) + .then(assertSelected(true)) + .then(() => element.click().then(() => element.isSelected())) + .then(assertSelected(false)) + .then(() => element.click().then(() => element.isSelected())) + .then(assertSelected(true)) + ) + .then(works, broken); + }; + } + + // The W3C WebDriver standard does not support the session-level + // /keys command, but JsonWireProtocol does. + if (capabilities.noKeysCommand == null) { + testedCapabilities.noKeysCommand = () => + session.serverPost('keys', { value: ['a'] }).then( + () => false, + () => true + ); + } + + // The W3C WebDriver standard does not support the /displayed endpoint + if (capabilities.noElementDisplayed == null) { + testedCapabilities.noElementDisplayed = () => + session + .findByCssSelector('html') + .then(element => element.isDisplayed()) + .then( + () => false, + () => true + ); + } + + return Task.all( + Object.keys(testedCapabilities).map(key => testedCapabilities[key]) + ).then(() => testedCapabilities); + }; + + const discoverFeatures = () => { + const testedCapabilities: any = {}; + + // At least SafariDriver 2.41.0 fails to allow stand-alone feature + // testing because it does not inject user scripts for URLs that + // are not http/https + if (isSafari(capabilities, 0, 10) && isMac(capabilities)) { + return Task.resolve({}); + } + + // Appium iOS as of April 2014 supports rotation but does not + // specify the capability + if (capabilities.rotatable == null) { + testedCapabilities.rotatable = () => + session.getOrientation().then(supported, unsupported); + } + + if (capabilities.locationContextEnabled) { + testedCapabilities.locationContextEnabled = () => + session.getGeolocation().then(supported, function(error) { + // At least FirefoxDriver 2.40.0 and ios-driver 0.6.0 + // claim they support geolocation in their returned + // capabilities map, when they do not + if (error.message.indexOf('not mapped : GET_LOCATION') !== -1) { + return false; + } + + // At least chromedriver 2.25 requires the location to + // be set first. At least chromedriver 2.25 will throw + // a CastClassException while trying to retrieve a + // geolocation. + if (error.message.indexOf('Location must be set') !== -1) { + return session + .setGeolocation({ + latitude: 12.1, + longitude: -22.33, + altitude: 1000.2 + }) + .then(() => session.getGeolocation()) + .then(supported, unsupported); + } + + return false; + }); + } + + // At least FirefoxDriver 2.40.0 claims it supports web storage in + // the returned capabilities map, when it does not + if (capabilities.webStorageEnabled) { + testedCapabilities.webStorageEnabled = () => + session.getLocalStorageLength().then(supported, maybeSupported); + } + + // At least FirefoxDriver 2.40.0 claims it supports application + // cache in the returned capabilities map, when it does not + if (capabilities.applicationCacheEnabled) { + testedCapabilities.applicationCacheEnabled = () => + session.getApplicationCacheStatus().then(supported, maybeSupported); + } + + if (capabilities.takesScreenshot == null) { + // At least Selendroid 0.9.0 will fail to take screenshots in + // certain device configurations, usually emulators with + // hardware acceleration enabled + testedCapabilities.takesScreenshot = () => + session.takeScreenshot().then(supported, unsupported); + } + + // At least ios-driver 0.6.6-SNAPSHOT April 2014 does not support + // execute_async + if (capabilities.supportsExecuteAsync == null) { + testedCapabilities.supportsExecuteAsync = () => + session.executeAsync('arguments[0](true);').catch(unsupported); + } + + // Using mouse services such as doubleclick will hang Firefox 49+ + // session on the Mac. + if ( + capabilities.mouseEnabled == null && + !(isFirefox(capabilities, 49, Infinity) && isMac(capabilities)) + ) { + testedCapabilities.mouseEnabled = () => + get('') + .then(() => session.findById('clicker')) + .then(button => button.click().then(supported, maybeSupported)) + .catch(unsupported); + } + + if (capabilities.touchEnabled == null) { + testedCapabilities.touchEnabled = () => + get('') + .then(() => session.findById('clicker')) + .then(button => + session.doubleTap(button).then(supported, maybeSupported) + ) + .catch(unsupported); + } + + if (capabilities.dynamicViewport == null) { + testedCapabilities.dynamicViewport = () => + session + .getWindowSize() + .then(originalSize => + // At least Firefox 53 will hang if the target size is + // the same as the current size + session.setWindowSize( + originalSize.width - 2, + originalSize.height - 2 + ) + ) + .then(supported, unsupported); + } + + // At least Internet Explorer 11 and earlier do not allow data URIs + // to be used for navigation + if (capabilities.supportsNavigationDataUris == null) { + testedCapabilities.supportsNavigationDataUris = () => + get('a') + .then(() => session.getPageTitle()) + .then(pageTitle => pageTitle === 'a') + .catch(unsupported); + } + + if (capabilities.supportsCssTransforms == null) { + testedCapabilities.supportsCssTransforms = () => + get( + '
' + ) + .then(() => + session.execute( + /* istanbul ignore next */ () => { + const bbox = document + .getElementById('a')! + .getBoundingClientRect(); + return bbox.right - bbox.left === 4; + } + ) + ) + .catch(unsupported); + } + + return Task.all( + Object.keys(testedCapabilities).map(key => testedCapabilities[key]) + ).then(() => testedCapabilities); + }; + + const discoverDefects = (): CancellablePromise => { + const testedCapabilities: any = {}; + + // At least SafariDriver 2.41.0 fails to allow stand-alone feature + // testing because it does not inject user scripts for URLs that + // are not http/https + if (isSafari(capabilities, 0, 10) && isMac(capabilities)) { + return Task.resolve({}); + } + + // At least ChromeDriver 2.9 and MS Edge 10240 does not implement + // /element/active + if (capabilities.brokenActiveElement == null) { + testedCapabilities.brokenActiveElement = () => + session + .getActiveElement() + .then(works, error => error.name === 'UnknownCommand'); + } + + if (capabilities.brokenDeleteCookie == null) { + if (capabilities.browserName === 'selendroid') { + // At least Selendroid 0.9.0 has broken cookie deletion. + // This test is very hard to get working properly in other + // environments so only test when Selendroid is the browser + testedCapabilities.brokenDeleteCookie = () => + session + .get('about:blank') + .then(() => session.clearCookies()) + .then(() => + session.setCookie({ + name: 'foo', + value: 'foo' + }) + ) + .then(() => session.deleteCookie('foo')) + .then(() => session.getCookies()) + .then(cookies => cookies.length > 0) + .catch(() => true) + .then(isBroken => + session.clearCookies().then( + () => isBroken, + () => isBroken + ) + ); + } else { + // At least MS Edge < 18 doesn't support cookie deletion + testedCapabilities.brokenDeleteCookie = () => + session + .get('about:blank') + .then(() => session.clearCookies()) + .then(works, broken); + } + } + + // At least Selendroid 0.9.0 incorrectly returns HTML tag names in + // uppercase, which is a violation of the JsonWireProtocol spec + if (capabilities.brokenHtmlTagName == null) { + testedCapabilities.brokenHtmlTagName = () => + session + .findByTagName('html') + .then(element => element.getTagName()) + .then(tagName => tagName !== 'html') + .catch(broken); + } + + // At least ios-driver 0.6.6-SNAPSHOT incorrectly returns empty + // string instead of null for attributes that do not exist + if (capabilities.brokenNullGetSpecAttribute == null) { + testedCapabilities.brokenNullGetSpecAttribute = () => + session + .findByTagName('html') + .then(element => element.getSpecAttribute('nonexisting')) + .then(value => value !== null) + .catch(broken); + } + + // At least MS Edge 10240 doesn't properly deserialize web elements + // passed as `execute` arguments + if (capabilities.brokenElementSerialization == null) { + testedCapabilities.brokenElementSerialization = () => + get('
') + .then(() => session.findById('a')) + .then(element => + session.execute( + /* istanbul ignore next */ + (element: Element) => element.getAttribute('id'), + [element] + ) + ) + .then(attribute => attribute !== 'a') + .catch(broken); + } + + // At least Selendroid 0.16.0 incorrectly returns `undefined` + // instead of `null` when an undefined value is returned by an + // `execute` call + if (capabilities.brokenExecuteUndefinedReturn == null) { + testedCapabilities.brokenExecuteUndefinedReturn = () => + session + .execute('return undefined;') + .then(value => value !== null, broken); + } + + // At least Selendroid 0.9.0 always returns invalid element handles + // from JavaScript + if (capabilities.brokenExecuteElementReturn == null) { + testedCapabilities.brokenExecuteElementReturn = () => + get('
') + .then(() => + session.execute('return document.getElementById("a");') + ) + .then(element => element && element.getTagName()) + .then(works, broken); + } + + // At least Selendroid 0.9.0 treats fully transparent elements as + // displayed, but all others do not + if (capabilities.brokenElementDisplayedOpacity == null) { + testedCapabilities.brokenElementDisplayedOpacity = () => + get('
a
') + .then(() => + // IE<9 do not support CSS opacity so should not be + // involved in this test + session.execute( + 'var o = document.getElementById("a").style.opacity; return o && o.charAt(0) === "0";' + ) + ) + .then(supportsOpacity => { + if (!supportsOpacity) { + return works(); + } else { + return session + .execute('document.getElementById("a").style.opacity = "0";') + .then(() => session.findById('a')) + .then(element => element.isDisplayed()); + } + }) + .catch(broken); + } + + // At least ChromeDriver 2.9 treats elements that are offscreen as + // displayed, but others do not + if (capabilities.brokenElementDisplayedOffscreen == null) { + testedCapabilities.brokenElementDisplayedOffscreen = () => { + const pageText = + '
a
'; + return get(pageText) + .then(() => session.findById('a')) + .then(element => element.isDisplayed()) + .catch(broken); + }; + } + + // The feature test for this causes some browsers to hang, so it's + // just flagged directly for Edge for now. + // testedCapabilities.brokenFileSendKeys = function () { + // return get('').then(function () { + // var element; + // return session.findById('i1') + // .then(function (element) { + // return element.type('./Server.js'); + // }).then(function () { + // return session.execute(function () { + // return document.getElementById('i1').value; + // }); + // }).then(function (text) { + // if (!/Server.js$/.test(text)) { + // throw new Error('mismatch'); + // } + // }); + // }).then(works, broken); + // }; + + // At least Safari 11-12 include non-rendered text when retrieving + // "visible" text. + if (capabilities.brokenVisibleText == null) { + testedCapabilities.brokenVisibleText = () => + get( + '
This is really great
' + ) + .then(() => + session + .findById('d') + .then(element => element.getVisibleText()) + .then(text => { + if (text !== 'This is great') { + throw new Error('Incorrect text'); + } + }) + ) + .then(works, broken); + } + + // At least MS Edge Driver 14316 doesn't normalize whitespace + // properly when retrieving text. Text may contain "\r\n" pairs + // rather than "\n", and there may be extraneous whitespace + // adjacent to "\r\n" pairs and at the start and end of the text. + if (capabilities.brokenWhitespaceNormalization == null) { + testedCapabilities.brokenWhitespaceNormalization = () => + get('
This is\n
a test\n
') + .then(() => + session + .findById('d') + .then(element => element.getVisibleText()) + .then(text => { + if (/\r\n/.test(text) || /\s+$/.test(text)) { + throw new Error('invalid whitespace'); + } + }) + ) + .then(works, broken); + } + + // At least geckodriver 0.15.0 and Firefox 51.0.1 don't properly + // normalize link text when using the 'link text' locator strategy. + if (capabilities.brokenLinkTextLocator == null) { + testedCapabilities.brokenLinkTextLocator = () => + get( + 'What a cute, ' + + 'yellow backpackWhat a cute, yellow backpack' + ) + .then(() => + session + .findByLinkText('What a cute, yellow backpack') + .then(element => element.getAttribute('id')) + .then(attr => { + if (attr !== 'e') { + throw new Error('incorrect link was found'); + } + }) + ) + .then(works, broken); + } + + // At least MS Edge Driver 14316 doesn't return elements' computed + // styles + if (capabilities.brokenComputedStyles == null) { + testedCapabilities.brokenComputedStyles = () => { + const pageText = + 'foo'; + return get(pageText) + .then(() => session.findById('a1')) + .then(element => element.getComputedStyle('background-color')) + .then(value => { + if (!value) { + throw new Error('empty style'); + } + }) + .then(works, broken); + }; + } + + if (capabilities.brokenOptionSelect == null) { + // At least MS Edge Driver 14316 doesn't allow selection + // option elements to be clicked. + testedCapabilities.brokenOptionSelect = () => + get( + '' + ) + .then(() => session.findById('d')) + .then(element => element.click()) + .then(() => session.findById('o1')) + .then(element => element.click()) + .then(works, broken); + } + + // At least MS Edge driver 10240 doesn't support getting the page + // source + if (capabilities.brokenPageSource == null) { + testedCapabilities.brokenPageSource = () => + session.getPageSource().then(works, broken); + } + + if (capabilities.brokenSubmitElement == null) { + // There is inconsistency across all drivers as to whether or + // not submitting a form button should cause the form button to + // be submitted along with the rest of the form; it seems most + // likely that tests do want the specified button to act as + // though someone clicked it when it is submitted, so the + // behaviour needs to be normalised + testedCapabilities.brokenSubmitElement = () => + get( + '
' + + '
' + ) + .then(() => session.findById('a')) + .then(element => element.submit()) + .then(() => session.getCurrentUrl()) + .then(url => url.indexOf('a=a') === -1) + .catch(broken); + } + + // At least MS Edge driver 10240 doesn't support window sizing + // commands + if (capabilities.brokenWindowSize == null) { + testedCapabilities.brokenWindowSize = () => + session.getWindowSize().then(works, broken); + } + + // At least Chrome on Mac doesn't properly maximize. See + // https://bugs.chromium.org/p/chromedriver/issues/detail?id=985 + if (capabilities.brokenWindowMaximize == null) { + testedCapabilities.brokenWindowMaximize = () => { + let originalSize: { width: number; height: number }; + return session + .getWindowSize() + .then(size => { + originalSize = size; + return session.setWindowSize(size.width - 10, size.height - 10); + }) + .then(() => session.maximizeWindow()) + .then(() => session.getWindowSize()) + .then(size => { + return ( + size.width > originalSize.width && + size.height > originalSize.height + ); + }) + .catch(broken); + }; + } + + // At least Selendroid 0.9.0 has a bug where it catastrophically + // fails to retrieve available types; they have tried to hardcode + // the available log types in this version so we can just return + // the same hardcoded list ourselves. + // At least InternetExplorerDriver 2.41.0 also fails to provide log + // types. Firefox 49+ (via geckodriver) doesn't support retrieving + // logs or log types, and may hang the session. + if (capabilities.fixedLogTypes == null) { + testedCapabilities.fixedLogTypes = () => + session + .getAvailableLogTypes() + .then(unsupported, (error: LeadfootError) => { + if ( + capabilities.browserName === 'selendroid' && + error.response!.text.length === 0 + ) { + return ['logcat']; + } + + return []; + }); + } + + // At least Microsoft Edge 10240 doesn't support timeout values of + // 0. + if (capabilities.brokenZeroTimeout == null) { + testedCapabilities.brokenZeroTimeout = () => + session.setTimeout('implicit', 0).then(works, broken); + } + + if (capabilities.brokenWindowSwitch == null) { + testedCapabilities.brokenWindowSwitch = () => + session + .getCurrentWindowHandle() + .then(handle => session.switchToWindow(handle)) + .then(works, broken); + } + + if (capabilities.brokenParentFrameSwitch == null) { + testedCapabilities.brokenParentFrameSwitch = () => + session.switchToParentFrame().then(works, broken); + } + + // This URL is used by several tests below + const scrollTestUrl = + '
'; + + // ios-driver 0.6.6-SNAPSHOT April 2014 calculates position based + // on a bogus origin and does not account for scrolling + if (capabilities.brokenElementPosition == null) { + testedCapabilities.brokenElementPosition = () => + get(scrollTestUrl) + .then(() => session.findById('a')) + .then(element => element.getPosition()) + .then(position => position.x !== 3000 || position.y !== 3000) + .catch(broken); + } + + // At least ios-driver 0.6.6-SNAPSHOT April 2014 will never + // complete a refresh call + if (capabilities.brokenRefresh == null) { + testedCapabilities.brokenRefresh = () => + session + .get('about:blank?1') + .then(() => { + let timer: NodeJS.Timer; + let refresh: CancellablePromise; + + return new Task( + resolve => { + let settled = false; + + refresh = session + .refresh() + .then( + () => { + settled = true; + clearTimeout(timer); + resolve(false); + }, + () => { + settled = true; + clearTimeout(timer); + resolve(true); + } + ) + .finally(() => { + if (!settled) { + resolve(true); + } + }); + + timer = setTimeout(function() { + refresh.cancel(); + }, 2000); + }, + () => { + clearTimeout(timer); + refresh.cancel(); + } + ); + }) + .catch(broken); + } + + if (capabilities.brokenMouseEvents == null && capabilities.mouseEnabled) { + // At least IE 10 and 11 on SauceLabs don't fire native mouse + // events consistently even though they support moveMouseTo + testedCapabilities.brokenMouseEvents = () => + get( + '
foo
' + + '' + ) + .then(() => session.findById('foo')) + .then(element => session.moveMouseTo(element, 20, 20)) + .then(() => sleep(100)) + .then(() => session.execute('return window.counter;')) + .then(counter => (counter > 0 ? works() : broken()), broken); + + // At least ChromeDriver 2.12 through 2.19 will throw an error + // if mouse movement relative to the element is + // attempted + if (capabilities.brokenHtmlMouseMove == null) { + testedCapabilities.brokenHtmlMouseMove = () => + get('') + .then(() => + session + .findByTagName('html') + .then(element => session.moveMouseTo(element, 0, 0)) + ) + .then(works, broken); + } + } + + // At least ChromeDriver 2.9.248307 does not correctly emit the + // entire sequence of events that would normally occur during a + // double-click + if (capabilities.brokenDoubleClick == null) { + testedCapabilities.brokenDoubleClick = function retry(): CancellablePromise< + any + > { + // InternetExplorerDriver is not buggy, but IE9 in + // quirks-mode is; since we cannot do feature tests in + // standards-mode in IE<10, force the value to false + // since it is not broken in this browser + if ( + capabilities.browserName === 'internet explorer' && + capabilities.browserVersion === '9' + ) { + return Task.resolve(false); + } + + return get( + '' + ) + .then(() => session.findById('clicker')) + .then(element => session.moveMouseTo(element)) + .then(() => sleep(100)) + .then(() => session.doubleClick()) + .then(() => session.execute('return window.counter;')) + .then(counter => { + // InternetExplorerDriver 2.41.0 has a race + // condition that makes this test sometimes + // fail + /* istanbul ignore if: inconsistent race condition */ + if (counter === 0) { + return retry(); + } + + return counter !== 6; + }) + .catch(broken); + }; + } + + if (capabilities.touchEnabled) { + // At least Selendroid 0.9.0 fails to perform a long tap due to + // an INJECT_EVENTS permission failure + if (capabilities.brokenLongTap == null) { + testedCapabilities.brokenLongTap = () => + session + .findByTagName('body') + .then(element => session.longTap(element)) + .then(works, broken); + + // At least ios-driver 0.6.6-SNAPSHOT April 2014 claims to + // support touch press/move/release but actually fails when you + // try to use the commands + if (capabilities.brokenMoveFinger == null) { + testedCapabilities.brokenMoveFinger = () => + session + .pressFinger(0, 0) + .then( + works, + error => + error.name === 'UnknownCommand' || + error.message.indexOf('need to specify the JS') > -1 + ); + } + + // Touch scroll in ios-driver 0.6.6-SNAPSHOT is broken, does + // not scroll at all; in selendroid 0.9.0 it ignores the + // element argument + if (capabilities.brokenTouchScroll == null) { + testedCapabilities.brokenTouchScroll = () => + get(scrollTestUrl) + .then(() => session.touchScroll(0, 20)) + .then(() => session.execute('return window.scrollY !== 20;')) + .then(isBroken => { + if (isBroken) { + return true; + } + + return session + .findById('a') + .then(element => session.touchScroll(element, 0, 0)) + .then(() => + session.execute('return window.scrollY !== 3000;') + ); + }) + .catch(broken); + } + } + + // Touch flick in ios-driver 0.6.6-SNAPSHOT is broken, does not + // scroll at all except in very broken ways if very tiny speeds + // are provided and the flick goes in the wrong direction + if (capabilities.brokenFlickFinger == null) { + testedCapabilities.brokenFlickFinger = () => + get(scrollTestUrl) + .then(() => session.flickFinger(0, 400)) + .then(() => session.execute('return window.scrollY === 0;')) + .catch(broken); + } + } + + if ( + capabilities.supportsCssTransforms && + capabilities.brokenCssTransformedSize == null + ) { + testedCapabilities.brokenCssTransformedSize = () => + get( + '
' + ) + .then(() => + session + .execute('return document.getElementById("a");') + .then(element => element.getSize()) + .then( + dimensions => + dimensions.width !== 4 || dimensions.height !== 4 + ) + ) + .catch(broken); + } + + // This test will cause at least Edge 18 (44) to hang + if (!isMsEdge(capabilities)) { + // At least Safari 12 isn't properly detecting disabled elements + if (capabilities.brokenElementEnabled == null) { + testedCapabilities.brokenElementEnabled = () => + get('').then( + () => + session + .execute('return document.getElementById("dis");') + .then(element => element.isEnabled()) + .then(isEnabled => (isEnabled ? broken() : works())) + .catch(broken) + ); + } + } + + return Task.all( + Object.keys(testedCapabilities).map(key => testedCapabilities[key]) + ).then(() => testedCapabilities); + }; + + if (capabilities._filled) { + return Task.resolve(session); + } + + // At least geckodriver 0.11 and Firefox 49+ may hang when getting + // 'about:blank' in the first request + const promise: CancellablePromise = isFirefox( + capabilities, + 49, + Infinity + ) + ? Task.resolve(session) + : session.get('about:blank'); + + return promise + .then(discoverServerFeatures) + .then(addCapabilities) + .then(discoverFeatures) + .then(addCapabilities) + .then(() => session.get('about:blank')) + .then(discoverDefects) + .then(addCapabilities) + .then(() => session.get('about:blank')) + .then(() => session); + } + + /** + * Gets a list of all currently active remote control sessions on this + * server. + */ + getSessions(): CancellablePromise { + return this.get('sessions').then(function(sessions: any) { + // At least BrowserStack is now returning an array for the sessions + // response + if (sessions && !Array.isArray(sessions)) { + sessions = returnValue(sessions); + } + + // At least ChromeDriver 2.19 uses the wrong keys + // https://code.google.com/p/chromedriver/issues/detail?id=1229 + sessions.forEach(function(session: any) { + if (session.sessionId && !session.id) { + session.id = session.sessionId; + } + }); + + return sessions; + }); + } + + /** + * Gets information on the capabilities of a given session from the server. + * The list of capabilities returned by this command will not include any + * of the extra session capabilities detected by Leadfoot and may be + * inaccurate. + */ + getSessionCapabilities(sessionId: string): CancellablePromise { + return this.get('session/$0', undefined, [sessionId]).then(returnValue); + } + + /** + * Terminates a session on the server. + */ + deleteSession(sessionId: string) { + return this.delete('session/$0', undefined, [sessionId]).then(noop); + } +} + +function getErrorName(error: { name: string; detail: { error: string } }) { + if ( + // Most browsers use 'Error' as the generic error name, but at least Safari + // 12 uses 'UnknownError' + (error.name !== 'Error' && error.name !== 'UnknownError') || + !error.detail || + !error.detail.error + ) { + return error.name; + } + + // desc will be something like 'javascript error' or 'no such window' + const desc = error.detail.error; + + // 'javascript error' is a special case because of...case (javascript -> + // JavaScript) + if (desc === 'javascript error') { + return 'JavaScriptError'; + } + + // For other error descriptions, just combine the description words into a + // Pascal case name + return desc + .split(' ') + .map(word => `${word[0].toUpperCase()}${word.slice(1)}`) + .join(''); +} + +function isAndroid(capabilities: Capabilities) { + const { browserName = '' } = capabilities; + return browserName.toLowerCase() === 'android'; +} + +function isAndroidEmulator(capabilities: Capabilities) { + const { deviceName = '' } = capabilities; + return deviceName.toLowerCase() === 'android emulator'; +} + +function isChrome( + capabilities: Capabilities, + minOrExactVersion?: number, + maxVersion?: number +) { + const { browserName = '' } = capabilities; + if (browserName.toLowerCase() !== 'chrome') { + return false; + } + return isValidVersion(capabilities, minOrExactVersion, maxVersion); +} + +function isIos(capabilities: Capabilities) { + const { platform = '', platformName = '' } = capabilities; + return (platformName || platform).toLowerCase() === 'ios'; +} + +function isMac(capabilities: Capabilities) { + const { platform = '', platformName = '' } = capabilities; + const _platform = platform || platformName; + return ( + (/mac(os)?/i.test(_platform) || /darwin/i.test(_platform)) && + _platform.toLowerCase() !== 'ios' + ); +} + +export function isMsEdge( + capabilities: Capabilities, + minOrExactVersion?: number, + maxVersion?: number +) { + const { browserName = '' } = capabilities; + if (browserName.toLowerCase() !== 'microsoftedge') { + return false; + } + + return isValidVersion(capabilities, minOrExactVersion, maxVersion); +} + +export function isInternetExplorer( + capabilities: Capabilities, + minOrExactVersion?: number, + maxVersion?: number +) { + const { browserName = '' } = capabilities; + if (browserName.toLowerCase() !== 'internet explorer') { + return false; + } + + return isValidVersion(capabilities, minOrExactVersion, maxVersion); +} + +export function isSafari( + capabilities: Capabilities, + minOrExactVersion?: number, + maxVersion?: number +) { + const { browserName = '' } = capabilities; + if (browserName.toLowerCase() !== 'safari') { + return false; + } + + return isValidVersion(capabilities, minOrExactVersion, maxVersion); +} + +export function isFirefox( + capabilities: Capabilities, + minOrExactVersion?: number, + maxVersion?: number +) { + const { browserName = '' } = capabilities; + if (browserName.toLowerCase() !== 'firefox') { + return false; + } + + return isValidVersion(capabilities, minOrExactVersion, maxVersion); +} + +/** + * Check if a browserVersion is between a min (inclusive) and a max + * (exclusive). If only one version is specified, it is treated as an exact + * match. + */ +function isValidVersion( + capabilities: Capabilities, + minOrExactVersion?: number, + maxVersion?: number +) { + if (minOrExactVersion != null) { + const version = parseFloat( + (capabilities.browserVersion || capabilities.version)! + ); + + if (maxVersion != null) { + if (version < minOrExactVersion) { + return false; + } + if (version >= maxVersion) { + return false; + } + } else if (version !== minOrExactVersion) { + return false; + } + } + + return true; +} + +function noop() {} + +/** + * Returns the actual response value from the remote environment. + * + * @param response JsonWireProtocol response object. + * @returns The actual response value. + */ +function returnValue(response: any): any { + return response.value; +} + +interface ResponseData { + response: Response; + data: any; +} diff --git a/src/webdriver/Session.ts b/src/webdriver/Session.ts new file mode 100644 index 000000000..66accff05 --- /dev/null +++ b/src/webdriver/Session.ts @@ -0,0 +1,2552 @@ +import Element, { ElementOrElementId } from './Element'; +import Server from './Server'; +import findDisplayed from './lib/findDisplayed'; +import { Task, CancellablePromise, partial } from '../common'; +import statusCodes from './lib/statusCodes'; +import Locator, { toW3cLocator, Strategy } from './lib/Locator'; +import { + forCommand as utilForCommand, + manualFindByLinkText, + sleep, + toExecuteString +} from './lib/util'; +import waitForDeleted from './lib/waitForDeleted'; +import { + Capabilities, + Geolocation, + LogEntry, + WebDriverCookie, + WebDriverResponse +} from './interfaces'; + +/** + * A Session represents a connection to a remote environment that can be driven + * programmatically. + */ +export default class Session extends Locator< + CancellablePromise, + CancellablePromise, + CancellablePromise +> { + private _sessionId: string; + private _server: Server; + private _capabilities: Capabilities; + private _closedWindows: any = null; + // TODO: Timeouts are held so that we can fiddle with the implicit wait + // timeout to add efficient `waitFor` and `waitForDeleted` convenience + // methods. Technically only the implicit timeout is necessary. + private _timeouts: { [key: string]: CancellablePromise } = {}; + private _movedToElement = false; + private _lastMousePosition: any = null; + private _lastAltitude: any = null; + private _nextRequest: CancellablePromise | undefined; + + /** + * A Session represents a connection to a remote environment that can be + * driven programmatically. + * + * @param sessionId The ID of the session, as provided by the remote. + * @param server The server that the session belongs to. + * @param capabilities A map of bugs and features that the remote + * environment exposes. + */ + constructor(sessionId: string, server: Server, capabilities: Capabilities) { + super(); + + this._sessionId = sessionId; + this._server = server; + this._capabilities = capabilities; + this._closedWindows = {}; + this._timeouts = { + script: Task.resolve(0), + implicit: Task.resolve(0), + 'page load': Task.resolve(Infinity) + }; + } + + /** + * Information about the available features and bugs in the remote + * environment. + */ + get capabilities() { + return this._capabilities; + } + + /** + * The current session ID. + */ + get sessionId() { + return this._sessionId; + } + + /** + * The Server that the session runs on. + */ + get server() { + return this._server; + } + + /** + * Delegates the HTTP request for a method to the underlying + * [[Server.Server]] object. + */ + private _delegateToServer( + method: 'post' | 'get' | 'delete', + path: string, + requestData: any, + pathParts?: string[] + ): CancellablePromise { + path = 'session/' + this._sessionId + (path ? '/' + path : ''); + + if ( + method === 'post' && + !requestData && + this.capabilities.brokenEmptyPost + ) { + requestData = {}; + } + + let cancelled = false; + return new Task( + resolve => { + // The promise is cleared from `_nextRequest` once it has been + // resolved in order to avoid infinitely long chains of promises + // retaining values that are not used any more + let thisRequest: CancellablePromise | undefined; + const clearNextRequest = () => { + if (this._nextRequest === thisRequest) { + this._nextRequest = undefined; + } + }; + + const runRequest = () => { + // `runRequest` is normally called once the previous request is + // finished. If this request is cancelled before the previous + // request is finished, then it should simply never run. (This + // Task will have been rejected already by the cancellation.) + if (cancelled) { + clearNextRequest(); + return; + } + + const response = this._server[method]( + path, + requestData, + pathParts + ).then(response => response.value); + + // safePromise is simply a promise based on the response that + // is guaranteed to resolve -- it is only used for promise + // chain management + const safePromise = response.catch(_error => {}); + safePromise.then(clearNextRequest); + + // The value of the response always needs to be taken directly + // from the server call rather than from the chained + // `_nextRequest` promise, since if an undefined value is + // returned by the server call and that value is returned + // through `finally(runRequest)`, the *previous* Task’s + // resolved value will be used as the resolved value, which is + // wrong + resolve(response); + + return safePromise; + }; + + // At least ChromeDriver 2.19 will just hard close connections if + // parallel requests are made to the server, so any request sent to + // the server for a given session must be serialised. Other servers + // like Selendroid have been known to have issues with parallel + // requests as well, so serialisation is applied universally, even + // though it has negative performance implications + if (this._nextRequest) { + thisRequest = this._nextRequest = this._nextRequest.finally( + runRequest + ); + } else { + thisRequest = this._nextRequest = runRequest(); + } + }, + () => (cancelled = true) + ); + } + + serverGet(path: string, requestData?: any, pathParts?: string[]) { + return this._delegateToServer('get', path, requestData, pathParts); + } + + serverPost(path: string, requestData?: any, pathParts?: string[]) { + return this._delegateToServer('post', path, requestData, pathParts); + } + + serverDelete(path: string, requestData?: any, pathParts?: string[]) { + return this._delegateToServer('delete', path, requestData, pathParts); + } + + /** + * Gets the current value of a timeout for the session. + * + * @param type The type of timeout to retrieve. One of 'script', + * 'implicit', or 'page load'. + * @returns The timeout, in milliseconds. + */ + getTimeout(type: Timeout): CancellablePromise { + if (this.capabilities.supportsGetTimeouts) { + return this.serverGet('timeouts').then(timeouts => + type === 'page load' ? timeouts.pageLoad : timeouts[type] + ); + } else { + return this._timeouts[type]; + } + } + + /** + * Sets the value of a timeout for the session. + * + * @param type The type of timeout to set. One of 'script', 'implicit', or + * 'page load'. + * + * @param ms The length of time to use for the timeout, in milliseconds. A + * value of 0 will cause operations to time out immediately. + */ + setTimeout(type: Timeout, ms: number): CancellablePromise { + // Infinity cannot be serialised by JSON + if (ms === Infinity) { + // It seems that at least ChromeDriver 2.10 has a limit here that + // is near the 32-bit signed integer limit, and IEDriverServer + // 2.42.2 has an even lower limit; 2.33 hours should be infinite + // enough for testing + ms = Math.pow(2, 23) - 1; + } + + // If the target doesn't support a timeout of 0, use 1. + if (this.capabilities.brokenZeroTimeout && ms === 0) { + ms = 1; + } + + // Set both JSONWireProtocol and WebDriver properties in the data object + let data = this.capabilities.usesWebDriverTimeouts + ? { + [type === 'page load' ? 'pageLoad' : type]: ms + } + : { + type, + ms + }; + + const promise = this.serverPost('timeouts', data).catch(error => { + // Appium as of April 2014 complains that `timeouts` is + // unsupported, so try the more specific endpoints if they exist + if (error.name === 'UnknownCommand') { + if (type === 'script') { + return this.serverPost('timeouts/async_script', { + ms: ms + }); + } else if (type === 'implicit') { + return this.serverPost('timeouts/implicit_wait', { + ms: ms + }); + } + } else if ( + !this.capabilities.usesWebDriverTimeouts && + // At least Chrome 60+ + (/Missing 'type' parameter/.test(error.message) || + // At least Safari 10+ + /Unknown timeout type/.test(error.message) || + // IE11 + /Invalid timeout type specified/.test(error.message)) + ) { + this.capabilities.usesWebDriverTimeouts = true; + return this.setTimeout(type, ms); + } + + throw error; + }); + + this._timeouts[type] = promise.then(() => ms).catch(() => 0); + + return promise; + } + + /** + * Gets the identifier for the window that is currently focused. + * + * @returns A window handle identifier that can be used with other window + * handling functions. + */ + getCurrentWindowHandle(): CancellablePromise { + const endpoint = this.capabilities.usesWebDriverWindowHandleCommands + ? 'window' + : 'window_handle'; + + return this.serverGet(endpoint) + .then(handle => { + if ( + this.capabilities.brokenDeleteWindow && + this._closedWindows[handle] + ) { + const error: SessionError = new Error(); + error.status = '23'; + error.name = statusCodes[error.status][0]; + error.message = statusCodes[error.status][1]; + throw error; + } + + return handle; + }) + .catch(error => { + if ( + // At least Edge 44.17763 returns an UnknownError when it doesn't + // support /window_handle, whereas most drivers return an + // UnknownCommand error. + /^Unknown/.test(error.name) && + !this.capabilities.usesWebDriverWindowHandleCommands + ) { + this.capabilities.usesWebDriverWindowHandleCommands = true; + return this.getCurrentWindowHandle(); + } + throw error; + }); + } + + /** + * Gets a list of identifiers for all currently open windows. + */ + getAllWindowHandles(): CancellablePromise { + const endpoint = this.capabilities.usesWebDriverWindowHandleCommands + ? 'window/handles' + : 'window_handles'; + + return this.serverGet(endpoint) + .then((handles: string[]) => { + if (this.capabilities.brokenDeleteWindow) { + return handles.filter(handle => { + return !this._closedWindows[handle]; + }); + } + + return handles; + }) + .catch(error => { + if ( + error.name === 'UnknownCommand' && + !this.capabilities.usesWebDriverWindowHandleCommands + ) { + this.capabilities.usesWebDriverWindowHandleCommands = true; + return this.getAllWindowHandles(); + } + throw error; + }); + } + + /** + * Gets the URL that is loaded in the focused window/frame. + */ + getCurrentUrl() { + return this.serverGet('url'); + } + + /** + * Navigates the focused window/frame to a new URL. + */ + get(url: string) { + this._movedToElement = false; + + if (this.capabilities.brokenMouseEvents) { + this._lastMousePosition = { x: 0, y: 0 }; + } + + return this.serverPost('url', { url: url }); + } + + /** + * Navigates the focused window/frame forward one page using the browser’s + * navigation history. + */ + goForward() { + // TODO: SPEC: Seems like this and `back` should return the newly + // navigated URL. + return this.serverPost('forward'); + } + + /** + * Navigates the focused window/frame back one page using the browser’s + * navigation history. + */ + goBack() { + // TODO: SPEC: Seems like this and `back` should return the newly + // navigated URL. + return this.serverPost('back'); + } + + /** + * Reloads the current browser window/frame. + */ + refresh() { + if (this.capabilities.brokenRefresh) { + return this.execute('location.reload();'); + } + + return this.serverPost('refresh'); + } + + /** + * Executes JavaScript code within the focused window/frame. The code + * should return a value synchronously. + * + * See [[Session.Session.executeAsync]] to execute code that returns values + * asynchronously. + * + * @param script The code to execute. This function will always be + * converted to a string, sent to the remote environment, and reassembled + * as a new anonymous function on the remote end. This means that you + * cannot access any variables through closure. If your code needs to get + * data from variables on the local end, they should be passed using + * `args`. + * + * @param args An array of arguments that will be passed to the executed + * code. Only values that can be serialised to JSON, plus + * [[Element.Element]] objects, can be specified as arguments. + * + * @returns The value returned by the remote code. Only values that can be + * serialised to JSON, plus DOM elements, can be returned. + */ + execute(script: Function | string, args?: any[]): CancellablePromise { + // At least FirefoxDriver 2.40.0 will throw a confusing + // NullPointerException if args is not an array; provide a friendlier + // error message to users that accidentally pass a non-array + if (typeof args !== 'undefined' && !Array.isArray(args)) { + throw new Error('Arguments passed to execute must be an array'); + } + + const endpoint = this.capabilities.usesWebDriverExecuteSync + ? 'execute/sync' + : 'execute'; + + let result = this.serverPost(endpoint, { + script: toExecuteString(script), + args: args || [] + }) + .then(value => convertToElements(this, value), fixExecuteError) + .catch(error => { + if ( + error.detail.error === 'unknown command' && + !this.capabilities.usesWebDriverExecuteSync + ) { + this.capabilities.usesWebDriverExecuteSync = true; + return this.execute(script, args); + } + throw error; + }); + + if (this.capabilities.brokenExecuteUndefinedReturn) { + result = result.then(value => (value == null ? null : value)); + } + + return result; + } + + /** + * Executes JavaScript code within the focused window/frame. The code must + * invoke the provided callback in order to signal that it has completed + * execution. + * + * See [[Session.Session.execute]] to execute code that returns values + * synchronously. + * + * See [[Session.Session.setExecuteAsyncTimeout]] to set the time until an + * asynchronous script is considered timed out. + * + * @param script The code to execute. This function will always be + * converted to a string, sent to the remote environment, and reassembled + * as a new anonymous function on the remote end. This means that you + * cannot access any variables through closure. If your code needs to get + * data from variables on the local end, they should be passed using + * `args`. + * + * @param args An array of arguments that will be passed to the executed + * code. Only values that can be serialised to JSON, plus + * [[Element.Element]] objects, can be specified as arguments. In addition + * to these arguments, a callback function will always be passed as the + * final argument to the function specified in `script`. This callback + * function must be invoked in order to signal that execution has + * completed. The return value of the execution, if any, should be passed + * to this callback function. + * + * @returns The value returned by the remote code. Only values that can be + * serialised to JSON, plus DOM elements, can be returned. + */ + executeAsync( + script: Function | string, + args?: any[] + ): CancellablePromise { + // At least FirefoxDriver 2.40.0 will throw a confusing + // NullPointerException if args is not an array; provide a friendlier + // error message to users that accidentally pass a non-array + if (typeof args !== 'undefined' && !Array.isArray(args)) { + throw new Error('Arguments passed to executeAsync must be an array'); + } + + const endpoint = this.capabilities.usesWebDriverExecuteAsync + ? 'execute/async' + : 'execute_async'; + + return this.serverPost(endpoint, { + script: toExecuteString(script), + args: args || [] + }) + .then(partial(convertToElements, this), fixExecuteError) + .catch(error => { + if ( + error.detail.error === 'unknown command' && + !this.capabilities.usesWebDriverExecuteAsync + ) { + this.capabilities.usesWebDriverExecuteAsync = true; + return this.executeAsync(script, args); + } + + // At least Safari 11, Jan 2019 will throw Timeout errors rather than + // ScriptTimeout errors for script timeouts + if (error.name === 'Timeout') { + error.name = 'ScriptTimeout'; + } + + throw error; + }); + } + + /** + * Gets a screenshot of the focused window and returns it in PNG format. + * + * @returns A buffer containing a PNG image. + */ + takeScreenshot() { + return this.serverGet('screenshot').then(data => + Buffer.from(data, 'base64') + ); + } + + /** + * Gets a list of input method editor engines available to the remote + * environment. As of April 2014, no known remote environments support IME + * functions. + */ + getAvailableImeEngines() { + return this.serverGet('ime/available_engines'); + } + + /** + * Gets the currently active input method editor for the remote environment. + * As of April 2014, no known remote environments support IME functions. + */ + getActiveImeEngine() { + return this.serverGet('ime/active_engine'); + } + + /** + * Returns whether or not an input method editor is currently active in the + * remote environment. As of April 2014, no known remote environments + * support IME functions. + */ + isImeActivated() { + return this.serverGet('ime/activated'); + } + + /** + * Deactivates any active input method editor in the remote environment. + * As of April 2014, no known remote environments support IME functions. + */ + deactivateIme() { + return this.serverPost('ime/deactivate'); + } + + /** + * Activates an input method editor in the remote environment. + * As of April 2014, no known remote environments support IME functions. + * + * @param engine The type of IME to activate. + */ + activateIme(engine: string) { + return this.serverPost('ime/activate', { engine: engine }); + } + + /** + * Switches the currently focused frame to a new frame. + * + * @param id The frame to switch to. In most environments, a number or + * string value corresponds to a key in the `window.frames` object of the + * currently active frame. If `null`, the topmost (default) frame will be + * used. If an Element is provided, it must correspond to a `` or + * ` + +

(The flowers in the garden are representative of those in your heart.
+ Treat them both nice.)

+ + diff --git a/tests/functional/webdriver/helpers/pollUntil.ts b/tests/functional/webdriver/helpers/pollUntil.ts new file mode 100644 index 000000000..821a0232e --- /dev/null +++ b/tests/functional/webdriver/helpers/pollUntil.ts @@ -0,0 +1,113 @@ +import Command from 'src/webdriver/Command'; +import pollUntil from 'src/webdriver/helpers/pollUntil'; +import { createSessionFromRemote } from '../support/util'; +import { ObjectSuiteDescriptor } from 'src/core/lib/interfaces/object'; + +registerSuite('leadfoot/helpers/pollUntil', () => { + let command: Command; + + return { + before() { + const remote = this.remote; + return createSessionFromRemote(remote).then(session => { + command = new Command(session); + }); + }, + + tests: { + 'basic test'() { + return command + .get('tests/functional/data/elements.html') + .findById('makeD') + .click() + .then(pollUntil('return document.getElementById("d");', [], 1000)) + .then(function(result: any) { + assert.property( + result, + 'elementId', + 'Returned value should be an element' + ); + }); + }, + + 'with args'() { + return command + .get('tests/functional/data/elements.html') + .findById('makeD') + .click() + .then( + pollUntil( + id => { + return document.getElementById(id); + }, + ['d'], + 1000 + ) + ) + .then(function(result: any) { + assert.property( + result, + 'elementId', + 'Returned value should be an element' + ); + }); + }, + + 'without args'() { + return command + .get('tests/functional/data/elements.html') + .findById('makeD') + .click() + .then(pollUntil('return document.getElementById("d");', 1000)) + .then(function(result: any) { + assert.property( + result, + 'elementId', + 'Returned value should be an element' + ); + }); + }, + + 'early timeout'() { + return command + .get('tests/functional/data/elements.html') + .findById('makeDSlowly') + .click() + .then(pollUntil('return document.getElementById("d");', [], 100, 25)) + .then( + function() { + throw new Error('Polling should fail after a timeout'); + }, + function(error: Error) { + assert.strictEqual(error.name, 'ScriptTimeout'); + } + ); + }, + + 'iteration check'() { + return command + .get('tests/functional/data/default.html') + .then( + pollUntil( + function() { + const anyWindow = window; + if (!anyWindow.counter) { + anyWindow.counter = 0; + } + + if (++anyWindow.counter === 4) { + return anyWindow.counter; + } + }, + [], + 1000, + 25 + ) + ) + .then(function(counter) { + assert.strictEqual(counter, 4); + }); + } + } + } as ObjectSuiteDescriptor; +}); diff --git a/tests/functional/webdriver/helpers/pollUntilTruthy.ts b/tests/functional/webdriver/helpers/pollUntilTruthy.ts new file mode 100644 index 000000000..91ecbaec7 --- /dev/null +++ b/tests/functional/webdriver/helpers/pollUntilTruthy.ts @@ -0,0 +1,100 @@ +import Command from 'src/webdriver/Command'; +import pollUntilTruthy from 'src/webdriver/helpers/pollUntilTruthy'; +import { createSessionFromRemote } from '../support/util'; +import { ObjectSuiteDescriptor } from 'src/core/lib/interfaces/object'; + +registerSuite('helpers/pollUntilTruthy', () => { + let command: Command; + + return { + before() { + const remote = this.remote; + return createSessionFromRemote(remote).then(session => { + command = new Command(session); + }); + }, + + tests: { + 'basic test'() { + return command + .get('tests/functional/data/elements.html') + .findById('makeD') + .click() + .then( + pollUntilTruthy( + 'return document.getElementById("d") != null;', + [], + 1000 + ) + ) + .then(function(result) { + assert.isTrue(result, 'Expected poll result to be true'); + }); + }, + + 'without args'() { + return command + .get('tests/functional/data/elements.html') + .findById('makeD') + .click() + .then( + pollUntilTruthy( + 'return document.getElementById("d") != null;', + 1000 + ) + ) + .then(function(result) { + assert.isTrue(result, 'Expected poll result to be true'); + }); + }, + + 'early timeout'() { + return command + .get('tests/functional/data/elements.html') + .findById('makeDSlowly') + .click() + .then( + pollUntilTruthy( + 'return document.getElementById("d") != null;', + [], + 100, + 25 + ) + ) + .then( + function() { + throw new Error('Polling should fail after a timeout'); + }, + function(error: Error) { + assert.strictEqual(error.name, 'ScriptTimeout'); + } + ); + }, + + 'iteration check'() { + return command + .get('tests/functional/data/default.html') + .then( + pollUntilTruthy( + function() { + const anyWindow = window; + if (!anyWindow.counter) { + anyWindow.counter = 0; + } + + if (++anyWindow.counter === 4) { + return anyWindow.counter; + } + }, + [], + 1000, + 25 + ) + ) + .then(function(counter) { + assert.strictEqual(counter, 4); + }); + } + } + } as ObjectSuiteDescriptor; +}); diff --git a/tests/functional/webdriver/support/util.ts b/tests/functional/webdriver/support/util.ts new file mode 100644 index 000000000..b423d83ab --- /dev/null +++ b/tests/functional/webdriver/support/util.ts @@ -0,0 +1,61 @@ +import Server from 'src/webdriver/Server'; +import Session from 'src/webdriver/Session'; +import { LeadfootURL } from 'src/webdriver/interfaces'; +import { Remote } from 'src/core/lib/executors/Node'; +import ProxiedSession from 'src/core/lib/ProxiedSession'; + +export * from 'src/webdriver/lib/util'; + +export function createServer(config: LeadfootURL | string) { + return new Server(config); +} + +export function createServerFromRemote(remote: any) { + if (remote.session && remote.session.server) { + return new Server(remote.session.server.url); + } + + throw new Error('Unsupported remote'); +} + +export function createSessionFromRemote( + remote: Remote, + SessionCtor: any = Session +): PromiseLike { + const server = createServerFromRemote(remote); + + function fixGet(session: any) { + const oldGet = session.get; + session.get = function(this: Session, url: string) { + if (!/^[A-Za-z][A-Za-z0-9+.-]+:/.test(url)) { + url = convertPathToUrl(remote, url); + } + + return oldGet.call(this, url); + }; + } + + if (remote.session) { + const session = new SessionCtor( + remote.session.sessionId, + server, + remote.session.capabilities + ); + fixGet(session); + return ( + server['_fillCapabilities'](session) + // Ensure the session has default timeouts + .then(() => session.setFindTimeout(5000)) + .then(() => session.setExecuteAsyncTimeout(10000)) + .then(() => session.setPageLoadTimeout(30000)) + .then(() => session) + ); + } + + throw new Error('Unsupported remote'); +} + +export function convertPathToUrl(remote: Remote, url: string) { + const session: ProxiedSession = remote.session; + return `${session.baseUrl}${url}`; +} diff --git a/tests/globals.d.ts b/tests/globals.d.ts index 37b210438..c9d629b57 100644 --- a/tests/globals.d.ts +++ b/tests/globals.d.ts @@ -1,5 +1,8 @@ import { assert as _assert } from 'chai'; -import _registerSuite from '../src/lib/interfaces/object'; +import _registerSuite from 'src/core/lib/interfaces/object'; + +// Ensure intern global is available +import 'src/core'; declare global { export const registerSuite: typeof _registerSuite; diff --git a/tests/integration/tunnels/BrowserStackTunnel.ts b/tests/integration/tunnels/BrowserStackTunnel.ts new file mode 100644 index 000000000..877e47761 --- /dev/null +++ b/tests/integration/tunnels/BrowserStackTunnel.ts @@ -0,0 +1,21 @@ +import { + addEnvironmentTest, + addStartStopTest +} from 'tests/support/integration'; +import BrowserStackTunnel from 'src/tunnels/BrowserStackTunnel'; + +function checkEnvironment(environment: any) { + assert.property(environment, 'os_version'); + assert.property(environment, 'browser'); + assert.property(environment, 'os'); + assert.property(environment, 'device'); + assert.property(environment, 'browser_version'); +} + +let suite = {}; +suite = addEnvironmentTest(suite, BrowserStackTunnel, checkEnvironment, { + needsAuthData: true +}); +suite = addStartStopTest(suite, BrowserStackTunnel); + +registerSuite('integration/BrowserStackTunnel', suite); diff --git a/tests/integration/tunnels/CrossBrowserTestingTunnel.ts b/tests/integration/tunnels/CrossBrowserTestingTunnel.ts new file mode 100644 index 000000000..34204dd9c --- /dev/null +++ b/tests/integration/tunnels/CrossBrowserTestingTunnel.ts @@ -0,0 +1,29 @@ +import { rm } from 'shelljs'; +import { + addEnvironmentTest, + addStartStopTest +} from 'tests/support/integration'; +import CrossBrowserTestingTunnel from 'src/tunnels/CrossBrowserTestingTunnel'; + +function checkEnvironment(environment: any) { + assert.property(environment, 'api_name'); + assert.nestedProperty(environment, 'browsers.0.api_name'); +} + +let tests = {}; +tests = addEnvironmentTest(tests, CrossBrowserTestingTunnel, checkEnvironment, { + needsAuthData: true +}); +tests = addStartStopTest(tests, CrossBrowserTestingTunnel, { + timeout: 120000 +}); + +const suite = { + before() { + rm('-rf', 'node_modules/cbt_tunnels'); + }, + + tests +}; + +registerSuite('integration/CrossBrowserTestingTunnel', suite); diff --git a/tests/integration/tunnels/SauceLabsTunnel.ts b/tests/integration/tunnels/SauceLabsTunnel.ts new file mode 100644 index 000000000..f09d87845 --- /dev/null +++ b/tests/integration/tunnels/SauceLabsTunnel.ts @@ -0,0 +1,19 @@ +import { + addEnvironmentTest, + addStartStopTest +} from 'tests/support/integration'; +import SauceLabsTunnel from 'src/tunnels/SauceLabsTunnel'; + +function checkEnvironment(environment: any) { + assert.property(environment, 'short_version'); + assert.property(environment, 'api_name'); + assert.property(environment, 'os'); +} + +let suite = {}; +suite = addEnvironmentTest(suite, SauceLabsTunnel, checkEnvironment); +suite = addStartStopTest(suite, SauceLabsTunnel, { + timeout: 120000 +}); + +registerSuite('integration/SauceLabsTunnel', suite); diff --git a/tests/integration/tunnels/SeleniumTunnel.ts b/tests/integration/tunnels/SeleniumTunnel.ts new file mode 100644 index 000000000..a4f5877f1 --- /dev/null +++ b/tests/integration/tunnels/SeleniumTunnel.ts @@ -0,0 +1,141 @@ +import { mkdirSync, existsSync } from 'fs'; +import { join } from 'path'; +import { execSync } from 'child_process'; +import { ObjectSuiteDescriptor, Tests } from 'src/core/lib/interfaces/object'; + +import SeleniumTunnel, { DriverFile } from 'src/tunnels/SeleniumTunnel'; +import { addStartStopTest } from 'tests/support/integration'; +import { cleanup, deleteTunnelFiles, getDigdugArgs } from 'tests/support/util'; + +function createDownloadTest(config: any) { + return () => { + tunnel = new SeleniumTunnel(); + Object.keys(config).forEach(key => { + Object.defineProperty(tunnel, key, { value: config[key] }); + }); + + mkdirSync(tunnel.directory); + + const expected = tunnel['_getDriverConfigs']() + .map((config: DriverFile) => { + return config.executable; + }) + .concat(tunnel.artifact) + .filter((executable: string) => { + // Remove any skipped artifacts + return executable !== '.'; + }); + + // Check that the progress callback is called + let progressed = false; + + tunnel.on('downloadprogress', () => { + progressed = true; + }); + + return tunnel.download().then(function() { + for (const file of expected) { + assert.isTrue( + existsSync(join(tunnel.directory, file)), + `expected ${file} to exist` + ); + } + assert.isTrue(progressed, 'expected to have seen progress'); + }); + }; +} + +let tunnel: SeleniumTunnel; + +let tests: Tests = { + download: (function() { + const tests: any = { + 'selenium standalone': createDownloadTest({ drivers: [] }) + }; + + [ + { name: 'chrome', platform: 'win32' }, + { name: 'chrome', platform: 'linux', arch: 'x64' }, + { name: 'chrome', platform: 'darwin', version: '2.35' }, + { name: 'chrome', platform: 'darwin', version: '2.36' }, + { name: 'ie', arch: 'x64' }, + { name: 'ie', arch: 'x86' }, + { name: 'internet explorer' }, + { name: 'edge' }, + { name: 'MicrosoftEdge' }, + { name: 'MicrosoftEdgeChromium', platform: 'win32', arch: 'x64' }, + { name: 'MicrosoftEdgeChromium', platform: 'win32', arch: 'x86' }, + { name: 'MicrosoftEdgeChromium', platform: 'darwin' }, + { name: 'firefox', platform: 'linux' }, + { name: 'firefox', platform: 'darwin' }, + { name: 'firefox', platform: 'win32' } + ].forEach(function(config: any) { + let testName = config.name; + if (config.platform) { + testName += '-' + config.platform; + } + if (config.arch) { + testName += '-' + config.arch; + } + if (config.version) { + testName += '-' + config.version; + } + tests[testName] = createDownloadTest({ + // We don't want to download selenium every time so we're going + // to change the Selenium configuration so isDownloaded() should + // always report true for Selenium + artifact: '.', + drivers: [config] + }); + }); + + return tests; + })(), + + isDownloaded() { + const args = getDigdugArgs(); + if (args.noClean) { + return this.skip('Cleanup is disabled'); + } + + tunnel = new SeleniumTunnel(); + deleteTunnelFiles(tunnel); + + assert.isFalse(tunnel.isDownloaded); + }, + + 'version check': function() { + const version = '2.25'; + const { arch } = process; + tunnel = new SeleniumTunnel({ + drivers: [{ name: 'chrome', version }] + }); + return tunnel.download().then(() => { + const driver = join(tunnel.directory, version, arch, 'chromedriver'); + const result = execSync(`"${driver}" --version`).toString('utf-8'); + assert.match( + result, + new RegExp(`ChromeDriver ${version}\.`), + 'unexpected driver version' + ); + }); + } +}; + +tests = addStartStopTest(tests, SeleniumTunnel, { + needsAuthData: false +}); + +const suite: ObjectSuiteDescriptor = { + beforeEach() { + this.timeout = 10 * 60 * 1000; // ten minutes + }, + + afterEach() { + return cleanup(tunnel); + }, + + tests +}; + +registerSuite('integration/SeleniumTunnel', suite); diff --git a/tests/integration/tunnels/TestingBotTunnel.ts b/tests/integration/tunnels/TestingBotTunnel.ts new file mode 100644 index 000000000..c4af480c2 --- /dev/null +++ b/tests/integration/tunnels/TestingBotTunnel.ts @@ -0,0 +1,18 @@ +import { + addEnvironmentTest, + addStartStopTest +} from 'tests/support/integration'; +import TestingBotTunnel from 'src/tunnels/TestingBotTunnel'; + +function checkEnvironment(environment: any) { + assert.property(environment, 'selenium_name'); + assert.property(environment, 'name'); + assert.property(environment, 'platform'); + assert.property(environment, 'version'); +} + +let suite = {}; +suite = addEnvironmentTest(suite, TestingBotTunnel, checkEnvironment); +suite = addStartStopTest(suite, TestingBotTunnel, { timeout: 60000 }); + +registerSuite('integration/TestingBotTunnel', suite); diff --git a/tests/support/globalUi.ts b/tests/support/globalUi.ts index 459185ed1..77270e96d 100644 --- a/tests/support/globalUi.ts +++ b/tests/support/globalUi.ts @@ -1,8 +1,12 @@ +/// + /** * Install some commonly used test functionals globally */ intern.registerPlugin('globalUI', () => { - const globalObj: any = typeof process === 'undefined' ? window : global; - globalObj.registerSuite = intern.getPlugin('interface.object').registerSuite; - globalObj.assert = intern.getPlugin('chai').assert; + const globalObj = typeof process === 'undefined' ? window : global; + (globalObj as any).registerSuite = intern.getPlugin( + 'interface.object' + ).registerSuite; + (globalObj as any).assert = intern.getPlugin('chai').assert; }); diff --git a/tests/support/integration.ts b/tests/support/integration.ts new file mode 100644 index 000000000..5ae9a4faa --- /dev/null +++ b/tests/support/integration.ts @@ -0,0 +1,143 @@ +import * as nodeUtil from 'util'; +import * as util from './util'; +import { Tests } from 'src/core/lib/interfaces/object'; + +import Tunnel, { IOEvent, NormalizedEnvironment } from 'src/tunnels/Tunnel'; +import { createCompositeHandle, Handle } from 'src/common'; + +function writeIOEvent(event: IOEvent) { + process.stdout.write(event.data); +} + +function addVerboseListeners(tunnel: Tunnel) { + return createCompositeHandle( + tunnel.on('stdout', writeIOEvent), + tunnel.on( + 'stderr', + writeIOEvent + ) /*, + TODO: enable when we figure out progress events + tunnel.on('downloadprogress', function (info) { + process.stdout.write('.'); + if (info.loaded >= info.total) { + process.stdout.write('\n'); + } + })*/ + ); +} + +function assertNormalizedProperties(environment: NormalizedEnvironment) { + const message = ' undefined for ' + nodeUtil.inspect(environment.descriptor); + assert.isDefined(environment.browserName, 'browserName' + message); + assert.isDefined(environment.version, 'version' + message); + assert.isDefined(environment.platform, 'platform' + message); +} + +function checkCredentials(tunnel: Tunnel, options: any) { + if (options.checkCredentials) { + return options.checkCredentials(tunnel); + } + return /\S+:\S+/.test(tunnel.auth!); +} + +function getCleanup(tunnel: Tunnel, handle?: Handle) { + return () => { + if (handle) { + handle.destroy(); + } + return util.cleanup(tunnel); + }; +} + +export function addEnvironmentTest( + suite: Tests, + TunnelClass: typeof Tunnel, + checkEnvironment: Function, + options?: any +): Tests { + options = options || {}; + + return { + ...suite, + getEnvironments() { + const tunnel = new TunnelClass(); + + if (options.needsAuthData && !checkCredentials(tunnel, options)) { + this.skip('missing auth data'); + } + + let handle: Handle | undefined; + if (intern.config.debug) { + handle = addVerboseListeners(tunnel); + } + + const cleanup = getCleanup(tunnel, handle); + return tunnel + .getEnvironments() + .then(function(environments) { + assert.isArray(environments); + assert.isAbove( + environments.length, + 0, + 'Expected at least 1 environment' + ); + environments.forEach(function(environment) { + assertNormalizedProperties(environment); + assert.property(environment, 'descriptor'); + checkEnvironment(environment.descriptor); + }); + }) + .then(cleanup) + .catch(reason => { + return cleanup().then(() => { + throw reason; + }); + }) + .finally(cleanup); + } + }; +} + +export function addStartStopTest( + suite: Tests, + TunnelClass: typeof Tunnel, + options?: any +): Tests { + options = options || {}; + + return { + ...suite, + + 'start and stop'() { + const tunnel = new TunnelClass(); + + if ( + options.needsAuthData !== false && + !checkCredentials(tunnel, options) + ) { + this.skip('missing auth data'); + } + + let handle: Handle | undefined; + if (intern.config.debug) { + handle = addVerboseListeners(tunnel); + } + + const timeout = options.timeout || 30000; + this.async(timeout); + + const cleanup = getCleanup(tunnel, handle); + const cleanupTimer = setTimeout(() => { + cleanup(); + }, timeout - 5000); + + return tunnel + .start()! + .then(function() { + clearTimeout(cleanupTimer); + return tunnel.stop(); + }) + .finally(cleanup); + } + }; +} diff --git a/tests/support/nodeMocking.ts b/tests/support/nodeMocking.ts index c9eeb0af9..eb4afe6cb 100644 --- a/tests/support/nodeMocking.ts +++ b/tests/support/nodeMocking.ts @@ -1,3 +1,5 @@ +/// + intern.registerPlugin('mockRequire', () => { function mockRequire( require: NodeRequire, @@ -24,7 +26,7 @@ intern.registerPlugin('mockRequire', () => { filename: id, loaded: true, exports: mocks[name] - }; + } as NodeModule; } }); diff --git a/tests/support/unit/executor.ts b/tests/support/unit/executor.ts index 5b47571a5..f2c47f03d 100644 --- a/tests/support/unit/executor.ts +++ b/tests/support/unit/executor.ts @@ -1,5 +1,5 @@ import { SinonSpy } from 'sinon'; -import { Executor, Config } from 'src/lib/executors/Executor'; +import { Executor, Config } from 'src/core/lib/executors/Executor'; const { assert } = intern.getPlugin('chai'); diff --git a/tests/support/unit/factories.ts b/tests/support/unit/factories.ts index 6be651621..6c886d9f3 100644 --- a/tests/support/unit/factories.ts +++ b/tests/support/unit/factories.ts @@ -2,8 +2,8 @@ * Factories are convenience functions for creating instances of normal classes * (not mocks). */ -import Test from 'src/lib/Test'; -import Suite from 'src/lib/Suite'; +import Test from 'src/core/lib/Test'; +import Suite from 'src/core/lib/Suite'; import { createMockExecutor } from './mocks'; /** diff --git a/tests/support/unit/mocks.ts b/tests/support/unit/mocks.ts index 66b6d5d15..4add5e7ed 100644 --- a/tests/support/unit/mocks.ts +++ b/tests/support/unit/mocks.ts @@ -3,15 +3,15 @@ * classes and interfaces (as far as TypeScript is concerned). */ import { createSandbox, spy, SinonSpy } from 'sinon'; -import { Handle, duplicate, Task } from '@theintern/common'; -import Command from '@theintern/leadfoot/Command'; +import { Handle, duplicate, Task } from 'src/common'; +import Command from 'src/webdriver/Command'; -import { Executor, Events } from 'src/lib/executors/Executor'; -import Node, { Remote } from 'src/lib/executors/Node'; -import Browser from 'src/lib/executors/Browser'; -import Server, { ServerListener } from 'src/lib/Server'; -import { Message } from 'src/lib/channels/Base'; -import ProxiedSession from 'src/lib/ProxiedSession'; +import { Executor, Events } from 'src/core/lib/executors/Executor'; +import Node, { Remote } from 'src/core/lib/executors/Node'; +import Browser from 'src/core/lib/executors/Browser'; +import Server, { ServerListener } from 'src/core/lib/Server'; +import { Message } from 'src/core/lib/channels/Base'; +import ProxiedSession from 'src/core/lib/ProxiedSession'; /** * Create a mock entity @@ -298,7 +298,8 @@ export function createMockRemote( properties?: { [P in keyof (Remote | Command)]?: ( | Remote - | Command)[P] + | Command + )[P]; } ) { const remote = MockRemote.resolve(); @@ -359,7 +360,7 @@ export class MockRequest extends EventHandler { } export type MockResponseOptions = { - [P in keyof MockResponse]?: MockResponse[P] + [P in keyof MockResponse]?: MockResponse[P]; }; export class MockResponse extends EventHandler { diff --git a/tests/support/util.ts b/tests/support/util.ts new file mode 100644 index 000000000..80a8e4043 --- /dev/null +++ b/tests/support/util.ts @@ -0,0 +1,46 @@ +import { rm } from 'shelljs'; +import Tunnel from 'src/tunnels/Tunnel'; + +/** + * Cleans up a tunnel by stopping it if the tunnel is running and deleting its target install directory + */ +export function cleanup(tunnel: Tunnel) { + if (!tunnel) { + return Promise.resolve(); + } + + let error: Error | undefined; + + return tunnel + .stop() + .catch(err => { + error = err; + }) + .then(() => { + deleteTunnelFiles(tunnel); + if (error) { + throw error; + } + }); +} + +/** + * Deletes a tunnel's target install directory + */ +export function deleteTunnelFiles(tunnel: Tunnel) { + const args = getDigdugArgs(); + if (!tunnel || !tunnel.directory || args.noClean) { + return; + } + + rm('-rf', tunnel.directory); +} + +/** + * Return command line args specific to digdug + */ +export function getDigdugArgs() { + return { + noClean: (intern.config).noClean + }; +} diff --git a/tests/tsconfig.json b/tests/tsconfig.json deleted file mode 100644 index bbcf9b947..000000000 --- a/tests/tsconfig.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "..", - "declaration": false, - "outDir": "../_tests", - "paths": { - "src/*": ["_build/src/*", "src/*"] - } - }, - "extends": "../tsconfig.json", - "include": [ - "./globals.d.ts", - "./benchmark/example.ts", - "./support/**/*.ts", - "./unit/index.ts", - "./unit/bin/*.ts", - "./unit/lib/browser/*.ts", - "./unit/lib/channels/*.ts", - "./unit/lib/common/*.ts", - "./unit/lib/executors/*.ts", - "./unit/lib/interfaces/bdd.ts", - "./unit/lib/interfaces/benchmark.ts", - "./unit/lib/interfaces/object.ts", - "./unit/lib/interfaces/tdd.ts", - "./unit/lib/middleware/*.ts", - "./unit/lib/node/*.ts", - "./unit/lib/reporters/Benchmark.ts", - "./unit/lib/reporters/Cobertura.ts", - "./unit/lib/reporters/Console.ts", - "./unit/lib/reporters/Coverage.ts", - "./unit/lib/reporters/Dom.ts", - "./unit/lib/reporters/Html.ts", - "./unit/lib/reporters/HtmlCoverage.ts", - "./unit/lib/reporters/JsonCoverage.ts", - "./unit/lib/reporters/JUnit.ts", - "./unit/lib/reporters/Lcov.ts", - "./unit/lib/reporters/Pretty.ts", - "./unit/lib/reporters/Reporter.ts", - "./unit/lib/reporters/Runner.ts", - "./unit/lib/reporters/Simple.ts", - "./unit/lib/reporters/TeamCity.ts", - "./unit/lib/reporters/TextCoverage.ts", - "./unit/lib/*.ts", - "./unit/loaders/*.ts", - "./unit/tasks/*.ts", - "./functional/lib/*.ts", - "../src/bin/*.ts", - "../src/loaders/*.ts", - "../src/lib/typings.d.ts" - ] -} diff --git a/tests/unit/cli/util.ts b/tests/unit/cli/util.ts new file mode 100644 index 000000000..8c7bf0ef3 --- /dev/null +++ b/tests/unit/cli/util.ts @@ -0,0 +1,107 @@ +import { + acceptVersion, + collect, + copy, + die, + enumArg, + _setDieMethod +} from 'src/cli/lib/util'; +import { mkdirSync, readdirSync, rmdirSync, statSync, unlinkSync } from 'fs'; +import { join } from 'path'; + +const { registerSuite } = intern.getInterface('object'); +const { assert } = intern.getPlugin('chai'); + +registerSuite('lib/util', { + acceptVersion() { + assert.isTrue(acceptVersion('3.3.0-pre', '3.0.0')); + assert.isTrue(acceptVersion('3.3.2', '3.0.0')); + assert.isFalse(acceptVersion('2.3.2', '3.0.0')); + }, + + collect() { + const input: string[] = []; + collect('5', input); + assert.deepEqual(input, ['5']); + + collect('6', input); + assert.deepEqual(input, ['5', '6']); + }, + + copy: (() => { + function rm(name: string) { + if (statSync(name).isDirectory()) { + readdirSync(name).forEach(function(filename) { + rm(join(name, filename)); + }); + rmdirSync(name); + } else { + unlinkSync(name); + } + } + + let tempdir: string; + + return { + before() { + mkdirSync('.testtmp'); + tempdir = '.testtmp'; + }, + + afterEach() { + readdirSync(tempdir).forEach(function(filename: string) { + rm(join(tempdir, filename)); + }); + }, + + after() { + rm(tempdir); + }, + + tests: { + 'copy file'() { + copy('./tests/util.ts', join(tempdir, 'util.js')); + assert.isTrue(statSync(join(tempdir, 'util.js')).isFile()); + }, + + 'copy dir'() { + copy('./tests', tempdir); + assert.isTrue(statSync(join(tempdir, 'util.ts')).isFile()); + } + } + }; + })(), + + enumArg: (() => { + const oldDie = die; + let message: string | null; + + return { + before() { + _setDieMethod(function(msg: string) { + message = msg; + }); + }, + + beforeEach() { + message = null; + }, + + after() { + _setDieMethod(oldDie); + }, + + tests: { + good() { + assert.strictEqual(enumArg(['a', 'b'], 'a'), 'a'); + assert.isNull(message); + }, + + bad() { + enumArg(['a', 'b'], 'c'); + assert.isNotNull(message); + } + } + }; + })() +}); diff --git a/tests/unit/bin/intern.ts b/tests/unit/core/bin/intern.ts similarity index 66% rename from tests/unit/bin/intern.ts rename to tests/unit/core/bin/intern.ts index 072f95937..1d49a8657 100644 --- a/tests/unit/bin/intern.ts +++ b/tests/unit/core/bin/intern.ts @@ -1,22 +1,24 @@ import { createSandbox, SinonStub, SinonSpy } from 'sinon'; -import { Task, global } from '@theintern/common'; +import { Task, global } from 'src/common'; +import { getPackagePath } from 'src/core/lib/node/util'; import { createMockBrowserExecutor, createMockConsole, createMockNodeExecutor, MockConsole -} from '../../support/unit/mocks'; +} from 'tests/support/unit/mocks'; const mockRequire = intern.getPlugin('mockRequire'); const originalIntern = global.intern; registerSuite('bin/intern', function() { const sandbox = createSandbox(); - const mockNodeUtil: { [name: string]: SinonSpy } = { + const mockNodeUtil: { [name: string]: SinonSpy } = { getConfig: sandbox.spy((..._args: any[]) => { return Task.resolve({ config: configData, file: 'intern.json' }); - }) + }), + getPackagePath: sandbox.spy(() => getPackagePath()) }; const originalExitCode = process.exitCode; @@ -50,12 +52,12 @@ registerSuite('bin/intern', function() { tests: { 'basic run'() { const mockExecutor = createMockNodeExecutor(); - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: mockExecutor }, - '@theintern/common': { global: { process: {} } } + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': mockExecutor, + 'src/common': { global: { process: {} } } }).then(handle => { removeMocks = handle.remove; assert.equal(mockNodeUtil.getConfig.callCount, 1); @@ -72,12 +74,12 @@ registerSuite('bin/intern', function() { const mockExecutor = createMockNodeExecutor({ environment: 'node' } as any); - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: mockExecutor }, - '@theintern/common': { global: { process: {} } } + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': mockExecutor, + 'src/common': { global: { process: {} } } }).then(handle => { removeMocks = handle.remove; assert.equal(mockNodeUtil.getConfig.callCount, 1); @@ -89,12 +91,12 @@ registerSuite('bin/intern', function() { 'show configs'() { configData = { showConfigs: true }; - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: createMockNodeExecutor() }, - '@theintern/common': { global: { process: {} } } + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': createMockNodeExecutor(), + 'src/common': { global: { process: {} } } }).then(handle => { removeMocks = handle.remove; assert.equal(mockNodeUtil.getConfig.callCount, 1); @@ -105,12 +107,12 @@ registerSuite('bin/intern', function() { 'bad run': { 'intern defined'() { - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: createMockNodeExecutor() }, - '@theintern/common': { global: { process: {} } } + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': createMockNodeExecutor(), + 'src/common': { global: { process: {} } } }).then(handle => { removeMocks = handle.remove; assert.equal( @@ -125,12 +127,12 @@ registerSuite('bin/intern', function() { configData = { showConfigs: true }; mockCommonUtil.getConfigDescription.throws(); - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: createMockNodeExecutor() }, - '@theintern/common': { + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': createMockNodeExecutor(), + 'src/common': { global: { process: { stdout: process.stdout } } } }) @@ -154,12 +156,12 @@ registerSuite('bin/intern', function() { const mockExecutor = createMockBrowserExecutor({ environment: 'browser' } as any); - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: mockExecutor }, - '@theintern/common': { global: { process: {} } } + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': mockExecutor, + 'src/common': { global: { process: {} } } }).then(handle => { removeMocks = handle.remove; assert.equal(mockNodeUtil.getConfig.callCount, 1); @@ -178,12 +180,12 @@ registerSuite('bin/intern', function() { const mockExecutor = createMockBrowserExecutor({ environment: 'browser' } as any); - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: mockExecutor }, - '@theintern/common': { global: { process: {} } } + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': mockExecutor, + 'src/common': { global: { process: {} } } }).then(handle => { removeMocks = handle.remove; assert.equal(mockNodeUtil.getConfig.callCount, 1); @@ -206,12 +208,12 @@ registerSuite('bin/intern', function() { }); configData = { help: true }; - return mockRequire(require, 'src/bin/intern', { - 'src/lib/node/util': mockNodeUtil, - 'src/lib/common/console': mockConsole, - 'src/lib/common/util': mockCommonUtil, - 'src/index': { default: mockExecutor }, - '@theintern/common': { global: { process: {} } } + return mockRequire(require, 'src/core/bin/intern', { + 'src/core/lib/node/util': mockNodeUtil, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/common/util': mockCommonUtil, + 'src/core/index': mockExecutor, + 'src/common': { global: { process: {} } } }).then(handle => { removeMocks = handle.remove; assert.match(mockConsole.log.args[0][0], /intern version \d/); diff --git a/tests/unit/index.ts b/tests/unit/core/index.ts similarity index 71% rename from tests/unit/index.ts rename to tests/unit/core/index.ts index 7b64d70f0..f62c88424 100644 --- a/tests/unit/index.ts +++ b/tests/unit/core/index.ts @@ -5,11 +5,11 @@ let mockGlobal = Object.create(null); class MockNode {} -registerSuite('index', { +registerSuite('core/index', { before() { - return mockRequire(require, 'src/index', { - 'src/lib/executors/Node': { default: MockNode }, - '@theintern/common': { global: mockGlobal } + return mockRequire(require, 'src/core/index', { + 'src/core/lib/executors/Node': MockNode, + 'src/common': { global: mockGlobal } }).then(resource => { removeMocks = resource.remove; }); diff --git a/tests/unit/lib/BenchmarkTest.ts b/tests/unit/core/lib/BenchmarkTest.ts similarity index 97% rename from tests/unit/lib/BenchmarkTest.ts rename to tests/unit/core/lib/BenchmarkTest.ts index 99dfe0deb..4698e1b23 100644 --- a/tests/unit/lib/BenchmarkTest.ts +++ b/tests/unit/core/lib/BenchmarkTest.ts @@ -1,15 +1,17 @@ -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; import BenchmarkTest, { BenchmarkTestOptions, BenchmarkDeferredTestFunction, BenchmarkTestFunction -} from 'src/lib/BenchmarkTest'; -import Suite from 'src/lib/Suite'; -import { BenchmarkData } from 'src/lib/reporters/Benchmark'; -import Test from 'src/lib/Test'; -import BenchmarkSuite, { BenchmarkSuiteOptions } from 'src/lib/BenchmarkSuite'; -import Deferred from 'src/lib/Deferred'; +} from 'src/core/lib/BenchmarkTest'; +import Suite from 'src/core/lib/Suite'; +import { BenchmarkData } from 'src/core/lib/reporters/Benchmark'; +import Test from 'src/core/lib/Test'; +import BenchmarkSuite, { + BenchmarkSuiteOptions +} from 'src/core/lib/BenchmarkSuite'; +import Deferred from 'src/core/lib/Deferred'; type FullBenchmarkTestFunction = BenchmarkTestFunction & { options: any }; diff --git a/tests/unit/lib/Channel.ts b/tests/unit/core/lib/Channel.ts similarity index 89% rename from tests/unit/lib/Channel.ts rename to tests/unit/core/lib/Channel.ts index 20a39f661..aa96dd4c6 100644 --- a/tests/unit/lib/Channel.ts +++ b/tests/unit/core/lib/Channel.ts @@ -1,5 +1,5 @@ -import { Task } from '@theintern/common'; -import _Channel, { ChannelOptions } from 'src/lib/Channel'; +import { Task } from 'src/common'; +import _Channel, { ChannelOptions } from 'src/core/lib/Channel'; const mockRequire = intern.getPlugin('mockRequire'); @@ -9,11 +9,11 @@ let messages: string[]; let websocketError: 'construct' | 'send' | null; let removeMocks: () => void; -registerSuite('lib/Channel', { +registerSuite('core/lib/Channel', { before() { - return mockRequire(require, 'src/lib/Channel', { - 'src/lib/channels/WebSocket': { default: MockWebSocket }, - 'src/lib/channels/Http': { default: MockHttp } + return mockRequire(require, 'src/core/lib/Channel', { + 'src/core/lib/channels/WebSocket': MockWebSocket, + 'src/core/lib/channels/Http': MockHttp }).then(handle => { removeMocks = handle.remove; Channel = handle.module.default; diff --git a/tests/unit/lib/Deferred.ts b/tests/unit/core/lib/Deferred.ts similarity index 92% rename from tests/unit/lib/Deferred.ts rename to tests/unit/core/lib/Deferred.ts index 4c698888d..1544fc8c1 100644 --- a/tests/unit/lib/Deferred.ts +++ b/tests/unit/core/lib/Deferred.ts @@ -1,4 +1,4 @@ -import Deferred from 'src/lib/Deferred'; +import Deferred from 'src/core/lib/Deferred'; registerSuite('lib/Deferred', { '#rejectOnError': { diff --git a/tests/unit/lib/Environment.ts b/tests/unit/core/lib/Environment.ts similarity index 91% rename from tests/unit/lib/Environment.ts rename to tests/unit/core/lib/Environment.ts index 266278161..b081863d9 100644 --- a/tests/unit/lib/Environment.ts +++ b/tests/unit/core/lib/Environment.ts @@ -1,4 +1,4 @@ -import Environment from 'src/lib/Environment'; +import Environment from 'src/core/lib/Environment'; const { assert } = intern.getPlugin('chai'); const { registerSuite } = intern.getInterface('object'); diff --git a/tests/unit/lib/ProxiedSession.ts b/tests/unit/core/lib/ProxiedSession.ts similarity index 89% rename from tests/unit/lib/ProxiedSession.ts rename to tests/unit/core/lib/ProxiedSession.ts index 98d1439b6..32e7a7fd2 100644 --- a/tests/unit/lib/ProxiedSession.ts +++ b/tests/unit/core/lib/ProxiedSession.ts @@ -1,4 +1,4 @@ -import _ProxiedSession from 'src/lib/ProxiedSession'; +import _ProxiedSession from 'src/core/lib/ProxiedSession'; const mockRequire = intern.getPlugin('mockRequire'); @@ -21,8 +21,8 @@ class MockSession { registerSuite('lib/ProxiedSession', { before() { - return mockRequire(require, 'src/lib/ProxiedSession', { - '@theintern/leadfoot/Session': { default: MockSession } + return mockRequire(require, 'src/core/lib/ProxiedSession', { + 'src/webdriver/Session': { default: MockSession } }).then(result => { removeMocks = result.remove; ProxiedSession = result.module.default; diff --git a/tests/unit/lib/RemoteSuite.ts b/tests/unit/core/lib/RemoteSuite.ts similarity index 96% rename from tests/unit/lib/RemoteSuite.ts rename to tests/unit/core/lib/RemoteSuite.ts index b20874341..d86f2c4f8 100644 --- a/tests/unit/lib/RemoteSuite.ts +++ b/tests/unit/core/lib/RemoteSuite.ts @@ -1,12 +1,12 @@ -import RemoteSuite from 'src/lib/RemoteSuite'; -import { ServerListener } from 'src/lib/Server'; +import RemoteSuite from 'src/core/lib/RemoteSuite'; +import { ServerListener } from 'src/core/lib/Server'; import { createMockNodeExecutor, createMockRemoteAndSession, createMockServer, MockNode -} from '../../support/unit/mocks'; -import { ObjectSuiteDescriptor } from '../../../src/lib/interfaces/object'; +} from 'tests/support/unit/mocks'; +import { ObjectSuiteDescriptor } from 'src/core/lib/interfaces/object'; registerSuite('lib/RemoteSuite', { 'id property'() { @@ -74,9 +74,10 @@ registerSuite('lib/RemoteSuite', { 'simple run'() { const dfd = this.async(); - remoteSuite - .run() - .then(() => dfd.resolve(), error => dfd.reject(error)); + remoteSuite.run().then( + () => dfd.resolve(), + error => dfd.reject(error) + ); assert.lengthOf(subscribers, 1); subscribers[0]('remoteStatus', 'initialized'); diff --git a/tests/unit/lib/Server.ts b/tests/unit/core/lib/Server.ts similarity index 97% rename from tests/unit/lib/Server.ts rename to tests/unit/core/lib/Server.ts index 926fc0b53..7efbc6c54 100644 --- a/tests/unit/lib/Server.ts +++ b/tests/unit/core/lib/Server.ts @@ -1,16 +1,16 @@ import { STATUS_CODES } from 'http'; -import * as createError from 'http-errors'; -import * as sinon from 'sinon'; +import createError from 'http-errors'; +import sinon from 'sinon'; -import _Server from 'src/lib/Server'; +import _Server from 'src/core/lib/Server'; import { createMockNodeExecutor, MockExecutor, MockRequest, MockResponse, EventHandler -} from '../../support/unit/mocks'; -import { mockFs, mockPath } from '../../support/unit/nodeMocks'; +} from 'tests/support/unit/mocks'; +import { mockFs, mockPath } from 'tests/support/unit/nodeMocks'; const mockRequire = intern.getPlugin('mockRequire'); @@ -161,15 +161,15 @@ registerSuite('lib/Server', function() { return { before() { - return mockRequire(require, 'src/lib/Server', { + return mockRequire(require, 'src/core/lib/Server', { fs, path, http: mockHttp, ws: mockWebSocket, - 'src/lib/middleware/instrument': { default: instrument }, - 'src/lib/middleware/post': { default: post }, - 'src/lib/middleware/unhandled': { default: unhandled }, - 'src/lib/middleware/finalError': { default: finalError }, + 'src/core/lib/middleware/instrument': instrument, + 'src/core/lib/middleware/post': post, + 'src/core/lib/middleware/unhandled': unhandled, + 'src/core/lib/middleware/finalError': finalError, 'serve-static/index': mockServeStatic, express: null, 'express/lib/express': null, diff --git a/tests/unit/lib/Suite.ts b/tests/unit/core/lib/Suite.ts similarity index 99% rename from tests/unit/lib/Suite.ts rename to tests/unit/core/lib/Suite.ts index c22a37cdc..d8a61f29a 100644 --- a/tests/unit/lib/Suite.ts +++ b/tests/unit/core/lib/Suite.ts @@ -1,19 +1,19 @@ -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import Suite, { SuiteOptions } from 'src/lib/Suite'; -import Test from 'src/lib/Test'; -import { InternError } from 'src/lib/types'; +import Suite, { SuiteOptions } from 'src/core/lib/Suite'; +import Test from 'src/core/lib/Test'; +import { InternError } from 'src/core/lib/types'; import { createMockExecutor, createMockRemoteAndSession -} from '../../support/unit/mocks'; -import _Deferred from '../../../src/lib/Deferred'; -import { TestFunction as _TestFunction } from '../../../src/lib/Test'; +} from 'tests/support/unit/mocks'; +import _Deferred from 'src/core/lib/Deferred'; +import { TestFunction as _TestFunction } from 'src/core/lib/Test'; import { ObjectSuiteDescriptor as _ObjectSuiteDescriptor, Tests -} from '../../../src/lib/interfaces/object'; +} from 'src/core/lib/interfaces/object'; type lifecycleMethod = 'before' | 'beforeEach' | 'afterEach' | 'after'; diff --git a/tests/unit/lib/Test.ts b/tests/unit/core/lib/Test.ts similarity index 98% rename from tests/unit/lib/Test.ts rename to tests/unit/core/lib/Test.ts index e5e0792a1..5a9bc750e 100644 --- a/tests/unit/lib/Test.ts +++ b/tests/unit/core/lib/Test.ts @@ -1,21 +1,21 @@ -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import { Executor } from 'src/lib/executors/Executor'; +import { Executor } from 'src/core/lib/executors/Executor'; import Test, { isTest, isTestFunction, isTestOptions, TestOptions, TestProperties -} from 'src/lib/Test'; -import Suite from 'src/lib/Suite'; +} from 'src/core/lib/Test'; +import Suite from 'src/core/lib/Suite'; import { createMockRemote, createMockExecutor, createMockSession -} from '../../support/unit/mocks'; -import { createSuite } from '../../support/unit/factories'; +} from 'tests/support/unit/mocks'; +import { createSuite } from 'tests/support/unit/factories'; function createTest( options: Partial & { executor?: Executor } = {} diff --git a/tests/unit/lib/browser/util.ts b/tests/unit/core/lib/browser/util.ts similarity index 97% rename from tests/unit/lib/browser/util.ts rename to tests/unit/core/lib/browser/util.ts index ef19907e9..2de6d7a6a 100644 --- a/tests/unit/lib/browser/util.ts +++ b/tests/unit/core/lib/browser/util.ts @@ -1,7 +1,7 @@ import { spy } from 'sinon'; -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import * as _util from 'src/lib/browser/util'; +import * as _util from 'src/core/lib/browser/util'; const mockRequire = intern.getPlugin('mockRequire'); @@ -62,8 +62,8 @@ registerSuite('lib/browser/util', function() { return { before() { - return mockRequire(require, 'src/lib/browser/util', { - '@theintern/common': { + return mockRequire(require, 'src/core/lib/browser/util', { + 'src/common': { request, global: { location: { @@ -72,7 +72,7 @@ registerSuite('lib/browser/util', function() { } } }, - 'src/lib/common/util': mockUtil + 'src/core/lib/common/util': mockUtil }).then(handle => { removeMocks = handle.remove; util = handle.module; diff --git a/tests/unit/lib/channels/Base.ts b/tests/unit/core/lib/channels/Base.ts similarity index 83% rename from tests/unit/lib/channels/Base.ts rename to tests/unit/core/lib/channels/Base.ts index bf68bd334..a5a521d38 100644 --- a/tests/unit/lib/channels/Base.ts +++ b/tests/unit/core/lib/channels/Base.ts @@ -1,7 +1,7 @@ -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import Base, { isChannel } from 'src/lib/channels/Base'; -import { RemoteEvents } from 'src/lib/RemoteSuite'; +import Base, { isChannel } from 'src/core/lib/channels/Base'; +import { RemoteEvents } from 'src/core/lib/RemoteSuite'; class TestBase extends Base { sent: any[] = []; @@ -11,7 +11,7 @@ class TestBase extends Base { } } -registerSuite('lib/channels/Base', { +registerSuite('core/lib/channels/Base', { '#sendMessage': { data() { const base = new TestBase({ sessionId: 'foo', url: 'bar' }); diff --git a/tests/unit/lib/channels/Http.ts b/tests/unit/core/lib/channels/Http.ts similarity index 94% rename from tests/unit/lib/channels/Http.ts rename to tests/unit/core/lib/channels/Http.ts index 9b71a3d08..fdf46bd79 100644 --- a/tests/unit/lib/channels/Http.ts +++ b/tests/unit/core/lib/channels/Http.ts @@ -1,13 +1,13 @@ import { spy, SinonSpy } from 'sinon'; -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import _Http from 'src/lib/channels/Http'; +import _Http from 'src/core/lib/channels/Http'; const mockRequire = intern.getPlugin('mockRequire'); let Http: typeof _Http; -registerSuite('lib/channels/Http', function() { +registerSuite('core/lib/channels/Http', function() { const request = spy((path: string, data: any) => { if (requestHandler) { return requestHandler(path, data); @@ -22,8 +22,8 @@ registerSuite('lib/channels/Http', function() { return { before() { - return mockRequire(require, 'src/lib/channels/Http', { - '@theintern/common': { + return mockRequire(require, 'src/core/lib/channels/Http', { + 'src/common': { request, Task } diff --git a/tests/unit/lib/channels/WebSocket.ts b/tests/unit/core/lib/channels/WebSocket.ts similarity index 91% rename from tests/unit/lib/channels/WebSocket.ts rename to tests/unit/core/lib/channels/WebSocket.ts index 6da0e1496..75536823a 100644 --- a/tests/unit/lib/channels/WebSocket.ts +++ b/tests/unit/core/lib/channels/WebSocket.ts @@ -1,7 +1,7 @@ import { useFakeTimers, SinonFakeTimers } from 'sinon'; -import { Task } from '@theintern/common'; -import _WebSocket from 'src/lib/channels/WebSocket'; -import { parseUrl } from '../../../../src/lib/browser/util'; +import { Task } from 'src/common'; +import _WebSocket from 'src/core/lib/channels/WebSocket'; +import { parseUrl } from 'src/core/lib/browser/util'; const mockRequire = intern.getPlugin('mockRequire'); @@ -28,9 +28,9 @@ registerSuite('lib/channels/WebSocket', function() { return { before() { - return mockRequire(require, 'src/lib/channels/WebSocket', { - 'src/lib/browser/util': { parseUrl }, - '@theintern/common': { global: { WebSocket: MockWebSocket }, Task } + return mockRequire(require, 'src/core/lib/channels/WebSocket', { + 'src/core/lib/browser/util': { parseUrl }, + 'src/common': { global: { WebSocket: MockWebSocket }, Task } }).then(handle => { removeMocks = handle.remove; WebSocket = handle.module.default; diff --git a/tests/unit/lib/common/ErrorFormatter.ts b/tests/unit/core/lib/common/ErrorFormatter.ts similarity index 95% rename from tests/unit/lib/common/ErrorFormatter.ts rename to tests/unit/core/lib/common/ErrorFormatter.ts index 7dbe81557..a370ce325 100644 --- a/tests/unit/lib/common/ErrorFormatter.ts +++ b/tests/unit/core/lib/common/ErrorFormatter.ts @@ -1,6 +1,6 @@ -import _ErrorFormatter from 'src/lib/common/ErrorFormatter'; -import { InternError } from 'src/lib/types'; -import { createMockExecutor, MockExecutor } from '../../../support/unit/mocks'; +import _ErrorFormatter from 'src/core/lib/common/ErrorFormatter'; +import { InternError } from 'src/core/lib/types'; +import { createMockExecutor, MockExecutor } from 'tests/support/unit/mocks'; const mockRequire = intern.getPlugin('mockRequire'); @@ -24,7 +24,7 @@ registerSuite('lib/common/ErrorFormatter', function() { return { before() { - return mockRequire(require, 'src/lib/common/ErrorFormatter', { + return mockRequire(require, 'src/core/lib/common/ErrorFormatter', { diff: { diffJson } }).then(handle => { removeMocks = handle.remove; diff --git a/tests/unit/lib/common/console.ts b/tests/unit/core/lib/common/console.ts similarity index 88% rename from tests/unit/lib/common/console.ts rename to tests/unit/core/lib/common/console.ts index d678d1152..3019fc908 100644 --- a/tests/unit/lib/common/console.ts +++ b/tests/unit/core/lib/common/console.ts @@ -1,5 +1,5 @@ import { createSandbox } from 'sinon'; -import * as _console from 'src/lib/common/console'; +import * as _console from 'src/core/lib/common/console'; const mockRequire = intern.getPlugin('mockRequire'); @@ -21,8 +21,8 @@ registerSuite('lib/common/console', { tests: { 'console exists': { before() { - return mockRequire(require, 'src/lib/common/console', { - '@theintern/common': { + return mockRequire(require, 'src/core/lib/common/console', { + 'src/common': { global: { console: mockConsole } @@ -57,8 +57,8 @@ registerSuite('lib/common/console', { 'console does not exist': { before() { - return mockRequire(require, 'src/lib/common/console', { - '@theintern/common': { + return mockRequire(require, 'src/core/lib/common/console', { + 'src/common': { global: { console: undefined } } }).then(handle => { diff --git a/tests/unit/lib/common/path.ts b/tests/unit/core/lib/common/path.ts similarity index 96% rename from tests/unit/lib/common/path.ts rename to tests/unit/core/lib/common/path.ts index 1623352ff..5f3abf923 100644 --- a/tests/unit/lib/common/path.ts +++ b/tests/unit/core/lib/common/path.ts @@ -1,4 +1,4 @@ -import * as path from 'src/lib/common/path'; +import * as path from 'src/core/lib/common/path'; registerSuite('lib/common/path', { dirname() { diff --git a/tests/unit/lib/common/util.ts b/tests/unit/core/lib/common/util.ts similarity index 99% rename from tests/unit/lib/common/util.ts rename to tests/unit/core/lib/common/util.ts index 190709a60..e66a6d032 100644 --- a/tests/unit/lib/common/util.ts +++ b/tests/unit/core/lib/common/util.ts @@ -1,7 +1,7 @@ -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import * as util from 'src/lib/common/util'; -import { Config } from 'src/lib/common/config'; +import * as util from 'src/core/lib/common/util'; +import { Config } from 'src/core/lib/common/config'; registerSuite('lib/common/util', { loadConfig: { diff --git a/tests/unit/lib/executors/Browser.ts b/tests/unit/core/lib/executors/Browser.ts similarity index 96% rename from tests/unit/lib/executors/Browser.ts rename to tests/unit/core/lib/executors/Browser.ts index 45109c153..8772b1862 100644 --- a/tests/unit/lib/executors/Browser.ts +++ b/tests/unit/core/lib/executors/Browser.ts @@ -1,6 +1,6 @@ import { spy, createSandbox } from 'sinon'; -import { Task, isPromiseLike, deepMixin } from '@theintern/common'; -import _Browser, { Config } from 'src/lib/executors/Browser'; +import { Task, isPromiseLike, deepMixin } from 'src/common'; +import _Browser, { Config } from 'src/core/lib/executors/Browser'; const mockRequire = intern.getPlugin('mockRequire'); @@ -85,13 +85,13 @@ registerSuite('lib/executors/Browser', function() { return { before() { - return mockRequire(require, 'src/lib/executors/Browser', { - 'src/lib/common/ErrorFormatter': { default: MockErrorFormatter }, - 'src/lib/common/console': mockConsole, - 'src/lib/browser/util': mockUtil, + return mockRequire(require, 'src/core/lib/executors/Browser', { + 'src/core/lib/common/ErrorFormatter': { default: MockErrorFormatter }, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/browser/util': mockUtil, chai: mockChai, minimatch: { Minimatch: MockMiniMatch }, - '@theintern/common': { + 'src/common': { request, global: mockGlobal, isPromiseLike, diff --git a/tests/unit/lib/executors/Executor.ts b/tests/unit/core/lib/executors/Executor.ts similarity index 96% rename from tests/unit/lib/executors/Executor.ts rename to tests/unit/core/lib/executors/Executor.ts index f222bceb5..9aada399e 100644 --- a/tests/unit/lib/executors/Executor.ts +++ b/tests/unit/core/lib/executors/Executor.ts @@ -1,11 +1,15 @@ import { createSandbox, spy } from 'sinon'; -import { Task, deepMixin, isPromiseLike } from '@theintern/common'; +import { Task, deepMixin, isPromiseLike } from 'src/common'; -import _Executor, { Config, Events, Plugins } from 'src/lib/executors/Executor'; +import _Executor, { + Config, + Events, + Plugins +} from 'src/core/lib/executors/Executor'; // Import isSuite from the testing source rather than the source being tested -import { isSuite } from '../../../../src/lib/Suite'; -import { testProperty } from '../../../support/unit/executor'; +import { isSuite } from 'src/core/lib/Suite'; +import { testProperty } from 'tests/support/unit/executor'; const mockRequire = intern.getPlugin('mockRequire'); @@ -33,7 +37,7 @@ function assertRunFails(executor: ExecutorType, errorMatcher: RegExp) { ); } -registerSuite('lib/executors/Executor', function() { +registerSuite('core/lib/executors/Executor', function() { class MockErrorFormatter { format(error: Error) { return 'Foo: ' + error.message; @@ -82,11 +86,11 @@ registerSuite('lib/executors/Executor', function() { return { before() { - return mockRequire(require, 'src/lib/executors/Executor', { - 'src/lib/common/ErrorFormatter': { default: MockErrorFormatter }, - 'src/lib/common/console': mockConsole, + return mockRequire(require, 'src/core/lib/executors/Executor', { + 'src/core/lib/common/ErrorFormatter': MockErrorFormatter, + 'src/core/lib/common/console': mockConsole, chai: mockChai, - '@theintern/common': { + 'src/common': { global: { __coverage__: {} }, isPromiseLike, Task, @@ -516,11 +520,7 @@ registerSuite('lib/executors/Executor', function() { .log('testing', new Error('foo'), () => {}, /bar/, 5) .then(() => { assert.equal(logger.callCount, 1, 'log should have been emitted'); - assert.match( - logger.getCall(0).args[0], - /^testing .*Error.*foo.* function \(\) {[^]*} \/bar\/ 5$/, - 'expected all args to have been serialized in log message' - ); + assert.match(logger.getCall(0).args[0], /Error.*foo/); }); }); }, diff --git a/tests/unit/lib/executors/Node.ts b/tests/unit/core/lib/executors/Node.ts similarity index 91% rename from tests/unit/lib/executors/Node.ts rename to tests/unit/core/lib/executors/Node.ts index e4a7bc789..98443b171 100644 --- a/tests/unit/lib/executors/Node.ts +++ b/tests/unit/core/lib/executors/Node.ts @@ -1,15 +1,15 @@ import { spy, SinonSpy, stub } from 'sinon'; -import { Task, deepMixin, isPromiseLike } from '@theintern/common'; +import { Task, deepMixin, isPromiseLike } from 'src/common'; -import { Config } from 'src/lib/common/config'; -import _Node from 'src/lib/executors/Node'; -import Suite from 'src/lib/Suite'; +import { Config } from 'src/core/lib/common/config'; +import _Node from 'src/core/lib/executors/Node'; +import Suite from 'src/core/lib/Suite'; -import { testProperty } from '../../../support/unit/executor'; +import { testProperty } from 'tests/support/unit/executor'; const mockRequire = intern.getPlugin('mockRequire'); -registerSuite('lib/executors/Node', function() { +registerSuite('core/lib/executors/Node', function() { function createExecutor(config?: Partial) { const executor = new Node(config); executor.registerLoader((_options: any) => (_modules: string[]) => @@ -235,85 +235,91 @@ registerSuite('lib/executors/Node', function() { let sessions: MockSession[]; let coverageMaps: MockCoverageMap[]; let Node: typeof _Node; - let removeMocks: () => void; + let allRemoveMocks: (() => void)[] = []; let fsData: { [name: string]: string }; let tsExtension: any; return { before() { - return mockRequire(require, 'src/lib/executors/Node', { - 'src/lib/common/ErrorFormatter': { default: MockErrorFormatter }, - 'src/lib/common/console': mockConsole, - 'src/lib/node/util': mockNodeUtil, - chai: mockChai, - path: mockPath, - fs: mockFs, - '@theintern/common': { - global: mockGlobal, - isPromiseLike, - Task, - deepMixin - }, - 'src/lib/reporters/Pretty': { default: MockReporter }, - 'src/lib/reporters/Runner': { default: MockReporter }, - 'src/lib/reporters/Simple': { default: MockReporter }, - 'src/lib/reporters/JsonCoverage': { default: MockReporter }, - 'src/lib/reporters/HtmlCoverage': { default: MockReporter }, - 'src/lib/reporters/Lcov': { default: MockReporter }, - 'src/lib/reporters/Benchmark': { default: MockReporter }, - 'istanbul-lib-coverage': { - classes: { - FileCoverage: { - prototype: { - merge() {} + return mockRequire(require, 'src/core/lib/executors/Executor', { + 'src/core/lib/common/console': mockConsole + }).then(handle => { + allRemoveMocks.push(handle.remove); + const Executor = handle.module.default; + + return mockRequire(require, 'src/core/lib/executors/Node', { + 'src/core/lib/common/ErrorFormatter': MockErrorFormatter, + 'src/core/lib/common/console': mockConsole, + 'src/core/lib/executors/Executor': Executor, + 'src/core/lib/node/util': mockNodeUtil, + chai: mockChai, + path: mockPath, + fs: mockFs, + 'src/common': { + global: mockGlobal, + isPromiseLike, + Task, + deepMixin + }, + 'src/core/lib/reporters/Pretty': MockReporter, + 'src/core/lib/reporters/Runner': MockReporter, + 'src/core/lib/reporters/Simple': MockReporter, + 'src/core/lib/reporters/JsonCoverage': MockReporter, + 'src/core/lib/reporters/HtmlCoverage': MockReporter, + 'src/core/lib/reporters/Lcov': MockReporter, + 'src/core/lib/reporters/Benchmark': MockReporter, + 'istanbul-lib-coverage': { + classes: { + FileCoverage: { + prototype: { + merge() {} + } } + }, + createCoverageMap() { + return new MockCoverageMap(); } }, - createCoverageMap() { - return new MockCoverageMap(); - } - }, - 'istanbul-lib-hook': { - hookRunInThisContext() {}, - hookRequire() {}, - unhookRunInThisContext() {} - }, - 'istanbul-lib-instrument': { - createInstrumenter() { - return new MockInstrumenter(); + 'istanbul-lib-hook': { + hookRunInThisContext() {}, + hookRequire() {}, + unhookRunInThisContext() {} }, - readInitialCoverage(code: string) { - return { coverageData: `covered: ${code}` }; - } - }, - 'istanbul-lib-source-maps': { - createSourceMapStore() { - return new MockMapStore(); - } - }, - 'ts-node': { - register: mockTsNodeRegister - }, - 'src/lib/Server': { default: MockServer }, - 'src/lib/resolveEnvironments': { - default: () => { + 'istanbul-lib-instrument': { + createInstrumenter() { + return new MockInstrumenter(); + }, + readInitialCoverage(code: string) { + return { coverageData: `covered: ${code}` }; + } + }, + 'istanbul-lib-source-maps': { + createSourceMapStore() { + return new MockMapStore(); + } + }, + 'ts-node': { + register: mockTsNodeRegister + }, + 'src/core/lib/Server': MockServer, + 'src/core/lib/resolveEnvironments': () => { return ['foo env']; - } - }, - '@theintern/leadfoot/Command': { default: MockCommand }, - '@theintern/leadfoot/Server': { default: MockLeadfootServer }, - '@theintern/digdug/NullTunnel': { default: MockTunnel }, - '@theintern/digdug/BrowserStackTunnel': { default: MockTunnel }, - 'src/lib/ProxiedSession': { default: MockSession }, - 'src/lib/RemoteSuite': { default: MockRemoteSuite } - }).then(handle => { - removeMocks = handle.remove; - Node = handle.module.default; + }, + 'src/webdriver/Command': MockCommand, + 'src/webdriver/Server': MockLeadfootServer, + 'src/tunnels/NullTunnel': MockTunnel, + 'src/tunnels/BrowserStackTunnel': MockTunnel, + 'src/core/lib/ProxiedSession': MockSession, + 'src/core/lib/RemoteSuite': MockRemoteSuite + }).then(handle => { + allRemoveMocks.push(handle.remove); + Node = handle.module.default; + }); }); }, after() { - removeMocks(); + allRemoveMocks.forEach(remove => remove()); }, beforeEach() { @@ -794,7 +800,7 @@ registerSuite('lib/executors/Node', function() { tests: { 'good script'() { const module = require.resolve( - '../../data/lib/executors/intern.js' + '../../../data/lib/executors/intern.js' ); assert.isUndefined( require.cache[module], @@ -808,12 +814,13 @@ registerSuite('lib/executors/Node', function() { }, 'good node_module'() { - const module = require.resolve('commander'); + // Try loading a module that shouldn't already be loaded + const module = require.resolve('yargs'); assert.isUndefined( require.cache[module], 'expected test module not to be loaded already' ); - executor.loadScript('commander'); + executor.loadScript('yargs'); assert.isDefined( require.cache[module], 'expected module to have been loaded' @@ -857,6 +864,11 @@ registerSuite('lib/executors/Node', function() { executor.on( 'beforeRun', dfd.callback(() => { + assert.equal( + mockConsole.warn.callCount, + 1, + 'should have been a call to console.warn' + ); for (let call of mockConsole.warn.getCalls()) { assert.include( call.args[0], @@ -1085,7 +1097,10 @@ registerSuite('lib/executors/Node', function() { tests: [], parent, run() { - suiteTask = new Task(() => {}, () => {}); + suiteTask = new Task( + () => {}, + () => {} + ); return suiteTask; } }); diff --git a/tests/unit/lib/interfaces/bdd.ts b/tests/unit/core/lib/interfaces/bdd.ts similarity index 93% rename from tests/unit/lib/interfaces/bdd.ts rename to tests/unit/core/lib/interfaces/bdd.ts index 283605458..233843b20 100644 --- a/tests/unit/lib/interfaces/bdd.ts +++ b/tests/unit/core/lib/interfaces/bdd.ts @@ -1,5 +1,5 @@ -import * as bddInt from 'src/lib/interfaces/bdd'; -import * as tddInt from 'src/lib/interfaces/tdd'; +import * as bddInt from 'src/core/lib/interfaces/bdd'; +import * as tddInt from 'src/core/lib/interfaces/tdd'; registerSuite('lib/interfaces/bdd', { // Since this interface is the same as tdd, just check that it really is the diff --git a/tests/unit/lib/interfaces/benchmark.ts b/tests/unit/core/lib/interfaces/benchmark.ts similarity index 92% rename from tests/unit/lib/interfaces/benchmark.ts rename to tests/unit/core/lib/interfaces/benchmark.ts index 2bc0e0f8a..23df3c394 100644 --- a/tests/unit/lib/interfaces/benchmark.ts +++ b/tests/unit/core/lib/interfaces/benchmark.ts @@ -1,9 +1,11 @@ import { spy } from 'sinon'; -import * as _benchmarkInt from 'src/lib/interfaces/benchmark'; -import BenchmarkTest, { BenchmarkTestFunction } from 'src/lib/BenchmarkTest'; -import BenchmarkSuite from 'src/lib/BenchmarkSuite'; -import Suite from 'src/lib/Suite'; +import * as _benchmarkInt from 'src/core/lib/interfaces/benchmark'; +import BenchmarkTest, { + BenchmarkTestFunction +} from 'src/core/lib/BenchmarkTest'; +import BenchmarkSuite from 'src/core/lib/BenchmarkSuite'; +import Suite from 'src/core/lib/Suite'; const mockRequire = intern.getPlugin('mockRequire'); @@ -23,8 +25,8 @@ registerSuite('lib/interfaces/benchmark', function() { return { before() { - return mockRequire(require, 'src/lib/interfaces/benchmark', { - '@theintern/common': { global: mockGlobal } + return mockRequire(require, 'src/core/lib/interfaces/benchmark', { + 'src/common': { global: mockGlobal } }).then(handle => { removeMocks = handle.remove; benchmarkInt = handle.module; diff --git a/tests/unit/lib/interfaces/object.ts b/tests/unit/core/lib/interfaces/object.ts similarity index 96% rename from tests/unit/lib/interfaces/object.ts rename to tests/unit/core/lib/interfaces/object.ts index c5ef6e986..3e956b30e 100644 --- a/tests/unit/lib/interfaces/object.ts +++ b/tests/unit/core/lib/interfaces/object.ts @@ -1,8 +1,8 @@ import { createSandbox } from 'sinon'; -import * as _objInt from 'src/lib/interfaces/object'; -import Test from 'src/lib/Test'; -import Suite from 'src/lib/Suite'; +import * as _objInt from 'src/core/lib/interfaces/object'; +import Test from 'src/core/lib/Test'; +import Suite from 'src/core/lib/Suite'; const mockRequire = intern.getPlugin('mockRequire'); @@ -33,8 +33,8 @@ registerSuite('lib/interfaces/object', function() { return { before() { - return mockRequire(require, 'src/lib/interfaces/object', { - '@theintern/common': { global: mockGlobal } + return mockRequire(require, 'src/core/lib/interfaces/object', { + 'src/common': { global: mockGlobal } }).then(handle => { removeMocks = handle.remove; objInt = handle.module; diff --git a/tests/unit/lib/interfaces/tdd.ts b/tests/unit/core/lib/interfaces/tdd.ts similarity index 95% rename from tests/unit/lib/interfaces/tdd.ts rename to tests/unit/core/lib/interfaces/tdd.ts index 8d0c81624..ad8b16e1e 100644 --- a/tests/unit/lib/interfaces/tdd.ts +++ b/tests/unit/core/lib/interfaces/tdd.ts @@ -1,9 +1,9 @@ import { createSandbox } from 'sinon'; -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import * as _tddInt from 'src/lib/interfaces/tdd'; -import Test, { isTest } from 'src/lib/Test'; -import Suite, { isSuite } from 'src/lib/Suite'; +import * as _tddInt from 'src/core/lib/interfaces/tdd'; +import Test, { isTest } from 'src/core/lib/Test'; +import Suite, { isSuite } from 'src/core/lib/Suite'; const mockRequire = intern.getPlugin('mockRequire'); @@ -30,8 +30,8 @@ registerSuite('lib/interfaces/tdd', function() { return { before() { - return mockRequire(require, 'src/lib/interfaces/tdd', { - '@theintern/common': { global: mockGlobal } + return mockRequire(require, 'src/core/lib/interfaces/tdd', { + 'src/common': { global: mockGlobal } }).then(handle => { removeMocks = handle.remove; tddInt = handle.module; diff --git a/tests/unit/lib/middleware/filterUrl.ts b/tests/unit/core/lib/middleware/filterUrl.ts similarity index 91% rename from tests/unit/lib/middleware/filterUrl.ts rename to tests/unit/core/lib/middleware/filterUrl.ts index 5d099b4f0..771f22af2 100644 --- a/tests/unit/lib/middleware/filterUrl.ts +++ b/tests/unit/core/lib/middleware/filterUrl.ts @@ -1,7 +1,7 @@ import { spy, SinonSpy } from 'sinon'; -import filterUrl from 'src/lib/middleware/filterUrl'; -import { MockRequest, MockResponse } from '../../../support/unit/mocks'; +import filterUrl from 'src/core/lib/middleware/filterUrl'; +import { MockRequest, MockResponse } from 'tests/support/unit/mocks'; registerSuite('lib/middleware/filterUrl', function() { let handler: (request: any, response: any, next: any) => void; diff --git a/tests/unit/lib/middleware/finalError.ts b/tests/unit/core/lib/middleware/finalError.ts similarity index 85% rename from tests/unit/lib/middleware/finalError.ts rename to tests/unit/core/lib/middleware/finalError.ts index dac66703c..11b4ee018 100644 --- a/tests/unit/lib/middleware/finalError.ts +++ b/tests/unit/core/lib/middleware/finalError.ts @@ -1,8 +1,8 @@ -import * as createError from 'http-errors'; +import createError from 'http-errors'; import { spy, SinonSpy } from 'sinon'; -import finalError from 'src/lib/middleware/finalError'; -import { MockRequest, MockResponse } from '../../../support/unit/mocks'; +import finalError from 'src/core/lib/middleware/finalError'; +import { MockRequest, MockResponse } from 'tests/support/unit/mocks'; registerSuite('lib/middleware/finalError', function() { let handler: (error: any, request: any, response: any, next: any) => void; diff --git a/tests/unit/lib/middleware/instrument.ts b/tests/unit/core/lib/middleware/instrument.ts similarity index 91% rename from tests/unit/lib/middleware/instrument.ts rename to tests/unit/core/lib/middleware/instrument.ts index 282c7d42c..a608c4c96 100644 --- a/tests/unit/lib/middleware/instrument.ts +++ b/tests/unit/core/lib/middleware/instrument.ts @@ -1,15 +1,15 @@ -import * as sinon from 'sinon'; +import sinon from 'sinon'; -import _instrument from 'src/lib/middleware/instrument'; -import Server from 'src/lib/Server'; +import _instrument from 'src/core/lib/middleware/instrument'; +import Server from 'src/core/lib/Server'; import { createMockNodeExecutor, createMockServer, MockRequest, MockResponse, createMockServerContext -} from '../../../support/unit/mocks'; -import { mockFs, mockPath, MockStats } from '../../../support/unit/nodeMocks'; +} from 'tests/support/unit/mocks'; +import { mockFs, mockPath, MockStats } from 'tests/support/unit/nodeMocks'; import { normalize } from 'path'; import { Stats } from 'fs'; @@ -35,7 +35,7 @@ registerSuite('lib/middleware/instrument', function() { return { before() { - return mockRequire(require, 'src/lib/middleware/instrument', { + return mockRequire(require, 'src/core/lib/middleware/instrument', { fs, path }).then(resource => { @@ -123,13 +123,13 @@ registerSuite('lib/middleware/instrument', function() { }, 'read error'() { - sandbox.stub(fs, 'stat').callsFake((path, callback) => { + sandbox.stub(fs, 'stat').callsFake((path, _options, callback) => { const data = fs.__fileData[testPath]; fs.__fileData[testPath] = undefined; - callback(null, (new MockStats( - path, - data!.type - ) as unknown) as Stats); + callback( + null, + (new MockStats(path, data!.type) as unknown) as Stats + ); }); handler(request, response, next); diff --git a/tests/unit/lib/middleware/post.ts b/tests/unit/core/lib/middleware/post.ts similarity index 98% rename from tests/unit/lib/middleware/post.ts rename to tests/unit/core/lib/middleware/post.ts index 882229b07..b0f7c874d 100644 --- a/tests/unit/lib/middleware/post.ts +++ b/tests/unit/core/lib/middleware/post.ts @@ -1,13 +1,13 @@ import * as sinon from 'sinon'; -import post from 'src/lib/middleware/post'; +import post from 'src/core/lib/middleware/post'; import { createMockNodeExecutor, createMockServer, MockRequest, MockResponse, createMockServerContext -} from '../../../support/unit/mocks'; +} from 'tests/support/unit/mocks'; registerSuite('lib/middleware/post', function() { let handler: (request: any, response: any, next: any) => void; diff --git a/tests/unit/lib/middleware/resolveSuites.ts b/tests/unit/core/lib/middleware/resolveSuites.ts similarity index 84% rename from tests/unit/lib/middleware/resolveSuites.ts rename to tests/unit/core/lib/middleware/resolveSuites.ts index f7441177b..69bd407cf 100644 --- a/tests/unit/lib/middleware/resolveSuites.ts +++ b/tests/unit/core/lib/middleware/resolveSuites.ts @@ -1,13 +1,13 @@ import { createSandbox } from 'sinon'; import { parse } from 'url'; -import _resolveSuites from 'src/lib/middleware/resolveSuites'; -import { MockResponse } from '../../../support/unit/mocks'; +import _resolveSuites from 'src/core/lib/middleware/resolveSuites'; +import { MockResponse } from 'tests/support/unit/mocks'; import { createMockNodeExecutor, createMockServer, createMockServerContext -} from '../../../support/unit/mocks'; +} from 'tests/support/unit/mocks'; const mockRequire = intern.getPlugin('mockRequire'); @@ -28,8 +28,8 @@ registerSuite('lib/middleware/resolveSuites', () => { return { before() { - return mockRequire(require, 'src/lib/middleware/resolveSuites', { - 'src/lib/node/util': { expandFiles }, + return mockRequire(require, 'src/core/lib/middleware/resolveSuites', { + 'src/core/lib/node/util': { expandFiles }, url }).then(resource => { removeMocks = resource.remove; diff --git a/tests/unit/lib/middleware/unhandled.ts b/tests/unit/core/lib/middleware/unhandled.ts similarity index 90% rename from tests/unit/lib/middleware/unhandled.ts rename to tests/unit/core/lib/middleware/unhandled.ts index f0b0a04ba..33614364d 100644 --- a/tests/unit/lib/middleware/unhandled.ts +++ b/tests/unit/core/lib/middleware/unhandled.ts @@ -1,9 +1,9 @@ import { HttpError } from 'http-errors'; import { spy, SinonSpy } from 'sinon'; -import unhandled from 'src/lib/middleware/unhandled'; +import unhandled from 'src/core/lib/middleware/unhandled'; -import { MockRequest, MockResponse } from '../../../support/unit/mocks'; +import { MockRequest, MockResponse } from 'tests/support/unit/mocks'; registerSuite('lib/middleware/unhandled', function() { let handler: (request: any, response: any, next: any) => void; diff --git a/tests/unit/lib/node/ErrorFormatter.ts b/tests/unit/core/lib/node/ErrorFormatter.ts similarity index 95% rename from tests/unit/lib/node/ErrorFormatter.ts rename to tests/unit/core/lib/node/ErrorFormatter.ts index fc436cce3..8aaf6e36b 100644 --- a/tests/unit/lib/node/ErrorFormatter.ts +++ b/tests/unit/core/lib/node/ErrorFormatter.ts @@ -1,8 +1,8 @@ import { join } from 'path'; -import _ErrorFormatter from 'src/lib/node/ErrorFormatter'; -import { InternError } from 'src/lib/types'; -import { createMockNodeExecutor, MockNode } from '../../../support/unit/mocks'; +import _ErrorFormatter from 'src/core/lib/node/ErrorFormatter'; +import { InternError } from 'src/core/lib/types'; +import { createMockNodeExecutor, MockNode } from 'tests/support/unit/mocks'; const mockRequire = intern.getPlugin('mockRequire'); @@ -91,11 +91,11 @@ registerSuite('lib/node/ErrorFormatter', function() { return { before() { - return mockRequire(require, 'src/lib/node/ErrorFormatter', { + return mockRequire(require, 'src/core/lib/node/ErrorFormatter', { 'source-map': { SourceMapConsumer }, path: mockPath, fs: mockFs, - 'src/lib/node/util': mockUtil + 'src/core/lib/node/util': mockUtil }).then(handle => { removeMocks = handle.remove; ErrorFormatter = handle.module.default; diff --git a/tests/unit/lib/node/util.ts b/tests/unit/core/lib/node/util.ts similarity index 97% rename from tests/unit/lib/node/util.ts rename to tests/unit/core/lib/node/util.ts index 97aee5f75..d90c42ed6 100644 --- a/tests/unit/lib/node/util.ts +++ b/tests/unit/core/lib/node/util.ts @@ -1,12 +1,12 @@ import { dirname, join } from 'path'; import { rmdirSync } from 'fs'; -import { Task } from '@theintern/common'; +import { Task } from 'src/common'; -import * as _util from 'src/lib/node/util'; +import * as _util from 'src/core/lib/node/util'; const mockRequire = intern.getPlugin('mockRequire'); -registerSuite('lib/node/util', function() { +registerSuite('core/lib/node/util', function() { let util: typeof _util; const mockFs = { @@ -68,7 +68,9 @@ registerSuite('lib/node/util', function() { logCall('splitConfigPath', [path]); const parts = path.split('@'); return { configFile: parts[0], childConfig: parts[1] }; - } + }, + + defaultConfig: 'intern.json' }; const mockGlob = { @@ -128,12 +130,12 @@ registerSuite('lib/node/util', function() { return { before() { - return mockRequire(require, 'src/lib/node/util', { + return mockRequire(require, 'src/core/lib/node/util', { fs: mockFs, glob: mockGlob, path: mockPath, - 'src/lib/common/util': mockUtil, - 'src/lib/node/process': { default: mockProcess } + 'src/core/lib/common/util': mockUtil, + 'src/core/lib/node/process': mockProcess }).then(handle => { removeMocks = handle.remove; util = handle.module; diff --git a/tests/unit/lib/reporters/Benchmark.ts b/tests/unit/core/lib/reporters/Benchmark.ts similarity index 98% rename from tests/unit/lib/reporters/Benchmark.ts rename to tests/unit/core/lib/reporters/Benchmark.ts index f91184794..dd3834df2 100644 --- a/tests/unit/lib/reporters/Benchmark.ts +++ b/tests/unit/core/lib/reporters/Benchmark.ts @@ -1,9 +1,9 @@ import { createSandbox, SinonSandbox, SinonSpy } from 'sinon'; -import _Benchmark from 'src/lib/reporters/Benchmark'; +import _Benchmark from 'src/core/lib/reporters/Benchmark'; import { createMockConsole, createMockExecutor -} from '../../../support/unit/mocks'; +} from 'tests/support/unit/mocks'; const mockRequire = intern.getPlugin('mockRequire'); @@ -16,7 +16,7 @@ let fs: { }; let fileData: { [filename: string]: string }; -registerSuite('intern/lib/reporters/Benchmark', { +registerSuite('src/core/lib/reporters/Benchmark', { before() { sandbox = createSandbox(); fs = { @@ -28,7 +28,7 @@ registerSuite('intern/lib/reporters/Benchmark', { }) }; - return mockRequire(require, 'src/lib/reporters/Benchmark', { + return mockRequire(require, 'src/core/lib/reporters/Benchmark', { fs }).then(resource => { removeMocks = resource.remove; diff --git a/tests/unit/lib/reporters/Cobertura.ts b/tests/unit/core/lib/reporters/Cobertura.ts similarity index 92% rename from tests/unit/lib/reporters/Cobertura.ts rename to tests/unit/core/lib/reporters/Cobertura.ts index 8ac6b52cc..454725362 100644 --- a/tests/unit/lib/reporters/Cobertura.ts +++ b/tests/unit/core/lib/reporters/Cobertura.ts @@ -1,4 +1,4 @@ -import Cobertura from 'src/lib/reporters/Cobertura'; +import Cobertura from 'src/core/lib/reporters/Cobertura'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); diff --git a/tests/unit/lib/reporters/Console.ts b/tests/unit/core/lib/reporters/Console.ts similarity index 96% rename from tests/unit/lib/reporters/Console.ts rename to tests/unit/core/lib/reporters/Console.ts index 2f8d8406e..802c62557 100644 --- a/tests/unit/lib/reporters/Console.ts +++ b/tests/unit/core/lib/reporters/Console.ts @@ -1,7 +1,7 @@ -import Suite from 'src/lib/Suite'; -import Test from 'src/lib/Test'; -import ConsoleReporter from 'src/lib/reporters/Console'; -import { createMockConsole } from '../../../support/unit/mocks'; +import Suite from 'src/core/lib/Suite'; +import Test from 'src/core/lib/Test'; +import ConsoleReporter from 'src/core/lib/reporters/Console'; +import { createMockConsole } from 'tests/support/unit/mocks'; const mockExecutor = { on() {}, @@ -11,7 +11,7 @@ const mockExecutor = { } }; -registerSuite('intern/lib/reporters/Console', { +registerSuite('src/core/lib/reporters/Console', { tests: { error() { const mockConsole = createMockConsole(); diff --git a/tests/unit/lib/reporters/Coverage.ts b/tests/unit/core/lib/reporters/Coverage.ts similarity index 95% rename from tests/unit/lib/reporters/Coverage.ts rename to tests/unit/core/lib/reporters/Coverage.ts index 239211c3e..a2f01de53 100644 --- a/tests/unit/lib/reporters/Coverage.ts +++ b/tests/unit/core/lib/reporters/Coverage.ts @@ -1,6 +1,6 @@ import { CoverageMap } from 'istanbul-lib-coverage'; import { spy, stub } from 'sinon'; -import _Coverage, { CoverageOptions } from 'src/lib/reporters/Coverage'; +import _Coverage, { CoverageOptions } from 'src/core/lib/reporters/Coverage'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); @@ -36,8 +36,8 @@ registerSuite('lib/reporters/Coverage', function() { return { before() { - return mockRequire(require, 'src/lib/reporters/Coverage', { - '@theintern/common': { global: mockGlobal }, + return mockRequire(require, 'src/core/lib/reporters/Coverage', { + 'src/common': { global: mockGlobal }, 'istanbul-lib-coverage': { createCoverageMap: mockCreateCoverageMap }, diff --git a/tests/unit/lib/reporters/Dom.ts b/tests/unit/core/lib/reporters/Dom.ts similarity index 92% rename from tests/unit/lib/reporters/Dom.ts rename to tests/unit/core/lib/reporters/Dom.ts index 7a0d3795d..d91fc4ec4 100644 --- a/tests/unit/lib/reporters/Dom.ts +++ b/tests/unit/core/lib/reporters/Dom.ts @@ -1,7 +1,7 @@ -import Suite from 'src/lib/Suite'; -import Test from 'src/lib/Test'; -import _Dom from 'src/lib/reporters/Dom'; -import { createMockBrowserExecutor } from '../../../support/unit/mocks'; +import Suite from 'src/core/lib/Suite'; +import Test from 'src/core/lib/Test'; +import _Dom from 'src/core/lib/reporters/Dom'; +import { createMockBrowserExecutor } from 'tests/support/unit/mocks'; const mockRequire = intern.getPlugin('mockRequire'); const createDocument = intern.getPlugin('createDocument'); @@ -11,10 +11,10 @@ const mockExecutor = createMockBrowserExecutor(); let removeMocks: () => void; let Dom: typeof _Dom; -registerSuite('intern/lib/reporters/Dom', { +registerSuite('src/core/lib/reporters/Dom', { before() { - return mockRequire(require, 'src/lib/reporters/Dom', { - '@theintern/common': { global: { scrollTo() {} } } + return mockRequire(require, 'src/core/lib/reporters/Dom', { + 'src/common': { global: { scrollTo() {} } } }).then(resource => { removeMocks = resource.remove; Dom = resource.module.default; diff --git a/tests/unit/lib/reporters/Html.ts b/tests/unit/core/lib/reporters/Html.ts similarity index 95% rename from tests/unit/lib/reporters/Html.ts rename to tests/unit/core/lib/reporters/Html.ts index 6fea3a64d..09a235acc 100644 --- a/tests/unit/lib/reporters/Html.ts +++ b/tests/unit/core/lib/reporters/Html.ts @@ -1,5 +1,5 @@ -import _Html from 'src/lib/reporters/Html'; -import { createMockBrowserExecutor } from '../../../support/unit/mocks'; +import _Html from 'src/core/lib/reporters/Html'; +import { createMockBrowserExecutor } from 'tests/support/unit/mocks'; import { createLocation } from './support/mocks'; const mockRequire = intern.getPlugin('mockRequire'); @@ -13,10 +13,10 @@ let doc: Document; let location: Location; let reporter: _Html; -registerSuite('intern/lib/reporters/Html', { +registerSuite('src/core/lib/reporters/Html', { before() { - return mockRequire(require, 'src/lib/reporters/Html', { - 'src/lib/reporters/html/html.styl': {} + return mockRequire(require, 'src/core/lib/reporters/Html', { + 'src/core/lib/reporters/html/html.styl': {} }).then(resource => { removeMocks = resource.remove; Html = resource.module.default; @@ -236,9 +236,7 @@ registerSuite('intern/lib/reporters/Html', { assert.equal( summaryTable!.textContent!.replace(/\n+/g, ''), `Suites1Tests${tests.length}Duration0:00.${suite.timeElapsed}` + - `Skipped${suite.numSkippedTests}Failed${ - suite.numFailedTests - }Success Rate${rate}%` + `Skipped${suite.numSkippedTests}Failed${suite.numFailedTests}Success Rate${rate}%` ); const reportTable = doc.body.querySelector('table'); diff --git a/tests/unit/lib/reporters/HtmlCoverage.ts b/tests/unit/core/lib/reporters/HtmlCoverage.ts similarity index 91% rename from tests/unit/lib/reporters/HtmlCoverage.ts rename to tests/unit/core/lib/reporters/HtmlCoverage.ts index b0f1235a5..db394ce14 100644 --- a/tests/unit/lib/reporters/HtmlCoverage.ts +++ b/tests/unit/core/lib/reporters/HtmlCoverage.ts @@ -1,4 +1,4 @@ -import HtmlCoverage from 'src/lib/reporters/HtmlCoverage'; +import HtmlCoverage from 'src/core/lib/reporters/HtmlCoverage'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); diff --git a/tests/unit/lib/reporters/JUnit.ts b/tests/unit/core/lib/reporters/JUnit.ts similarity index 98% rename from tests/unit/lib/reporters/JUnit.ts rename to tests/unit/core/lib/reporters/JUnit.ts index 3a40f3475..6a69282f6 100644 --- a/tests/unit/lib/reporters/JUnit.ts +++ b/tests/unit/core/lib/reporters/JUnit.ts @@ -1,8 +1,8 @@ import { spy, stub } from 'sinon'; -import _JUnit from 'src/lib/reporters/JUnit'; -import Test from 'src/lib/Test'; -import Suite from 'src/lib/Suite'; +import _JUnit from 'src/core/lib/reporters/JUnit'; +import Test from 'src/core/lib/Test'; +import Suite from 'src/core/lib/Suite'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); @@ -43,7 +43,7 @@ registerSuite('lib/reporters/JUnit', function() { return { before() { - return mockRequire(require, 'src/lib/reporters/JUnit', { + return mockRequire(require, 'src/core/lib/reporters/JUnit', { fs: mockFs }).then(handle => { removeMocks = handle.remove; diff --git a/tests/unit/lib/reporters/JsonCoverage.ts b/tests/unit/core/lib/reporters/JsonCoverage.ts similarity index 81% rename from tests/unit/lib/reporters/JsonCoverage.ts rename to tests/unit/core/lib/reporters/JsonCoverage.ts index 38c8bc8be..3e3b385ac 100644 --- a/tests/unit/lib/reporters/JsonCoverage.ts +++ b/tests/unit/core/lib/reporters/JsonCoverage.ts @@ -1,4 +1,4 @@ -import JsonCoverage from 'src/lib/reporters/JsonCoverage'; +import JsonCoverage from 'src/core/lib/reporters/JsonCoverage'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); diff --git a/tests/unit/lib/reporters/Lcov.ts b/tests/unit/core/lib/reporters/Lcov.ts similarity index 83% rename from tests/unit/lib/reporters/Lcov.ts rename to tests/unit/core/lib/reporters/Lcov.ts index 5dc24630a..5429baf55 100644 --- a/tests/unit/lib/reporters/Lcov.ts +++ b/tests/unit/core/lib/reporters/Lcov.ts @@ -1,4 +1,4 @@ -import LcovCoverage from 'src/lib/reporters/Lcov'; +import LcovCoverage from 'src/core/lib/reporters/Lcov'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); diff --git a/tests/unit/lib/reporters/Pretty.ts b/tests/unit/core/lib/reporters/Pretty.ts similarity index 95% rename from tests/unit/lib/reporters/Pretty.ts rename to tests/unit/core/lib/reporters/Pretty.ts index ef703b6b7..eaf39719d 100644 --- a/tests/unit/lib/reporters/Pretty.ts +++ b/tests/unit/core/lib/reporters/Pretty.ts @@ -1,26 +1,27 @@ import { spy, SinonSpy } from 'sinon'; import * as tty from 'tty'; -import RemoteSuite from 'src/lib/RemoteSuite'; -import _Pretty, { Result } from 'src/lib/reporters/Pretty'; +import RemoteSuite from 'src/core/lib/RemoteSuite'; +import Suite from 'src/core/lib/Suite'; +import _Pretty, { Result, Report } from 'src/core/lib/reporters/Pretty'; import { createMockCharm, createMockCoverageMap, createMockNodeExecutor -} from '../../../support/unit/mocks'; +} from 'tests/support/unit/mocks'; const mockRequire = intern.getPlugin('mockRequire'); -registerSuite('intern/lib/reporters/Pretty', () => { +registerSuite('src/core/lib/reporters/Pretty', () => { return { before() { - return mockRequire(require, 'src/lib/reporters/Pretty', { + return mockRequire(require, 'src/core/lib/reporters/Pretty', { charm: createMockCharm, 'istanbul-lib-coverage': { createCoverageMap: createMockCoverageMap }, - '@theintern/common': { + 'src/common': { global: { process: { stdout: { @@ -179,19 +180,19 @@ registerSuite('intern/lib/reporters/Pretty', () => { }, coverage() { - const report = pretty['_getReport']({ sessionId: 'foo' }); + const report = pretty['_getReport']({ sessionId: 'foo' } as Suite); pretty.coverage({ sessionId: 'foo', coverage: { functions: 5 } }); assert.equal( - report.coverageMap.merge.callCount, + (report.coverageMap.merge as SinonSpy).callCount, 1, 'coverage data should have been merged into report' ); assert.deepEqual( report.coverageMap.data, - { functions: 5 }, + { functions: 5 } as any, 'expected coverage data to have been merged into sourcemap' ); }, @@ -306,14 +307,14 @@ registerSuite('intern/lib/reporters/Pretty', () => { } assert.equal( - fooReport[testType], + fooReport[testType as keyof Report], 1, 'expected suite report to include suite test count' ); const totalReport: typeof fooReport = pretty['_total']; assert.equal( - totalReport[testType], + totalReport[testType as keyof Report], 1, 'expected total report to include suite test count' ); @@ -411,7 +412,7 @@ registerSuite('intern/lib/reporters/Pretty', () => { platform: 'MAC' } } - }); + } as Suite); // Set a total value so the progress bar will draw report.numTotal = 3; diff --git a/tests/unit/lib/reporters/Reporter.ts b/tests/unit/core/lib/reporters/Reporter.ts similarity index 94% rename from tests/unit/lib/reporters/Reporter.ts rename to tests/unit/core/lib/reporters/Reporter.ts index 9d7888f7b..00071fd52 100644 --- a/tests/unit/lib/reporters/Reporter.ts +++ b/tests/unit/core/lib/reporters/Reporter.ts @@ -1,12 +1,12 @@ import { spy } from 'sinon'; -import { global } from '@theintern/common'; +import { global } from 'src/common'; import _Reporter, { createEventHandler, eventHandler -} from 'src/lib/reporters/Reporter'; -import { Events } from 'src/lib/executors/Executor'; -import Test from 'src/lib/Test'; +} from 'src/core/lib/reporters/Reporter'; +import { Events } from 'src/core/lib/executors/Executor'; +import Test from 'src/core/lib/Test'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); @@ -25,8 +25,8 @@ registerSuite('lib/reporters/Reporter', function() { return { before() { - return mockRequire(require, 'src/lib/reporters/Reporter', { - '@theintern/common': { global: mockGlobal } + return mockRequire(require, 'src/core/lib/reporters/Reporter', { + 'src/common': { global: mockGlobal } }).then(handle => { removeMocks = handle.remove; Reporter = handle.module.default; diff --git a/tests/unit/lib/reporters/Runner.ts b/tests/unit/core/lib/reporters/Runner.ts similarity index 98% rename from tests/unit/lib/reporters/Runner.ts rename to tests/unit/core/lib/reporters/Runner.ts index ab2fe30d3..19c55a6ea 100644 --- a/tests/unit/lib/reporters/Runner.ts +++ b/tests/unit/core/lib/reporters/Runner.ts @@ -1,5 +1,5 @@ import { createSandbox, spy } from 'sinon'; -import _Runner from 'src/lib/reporters/Runner'; +import _Runner from 'src/core/lib/reporters/Runner'; import { MockConsole, MockCoverageMap, @@ -7,9 +7,9 @@ import { createMockConsole, createMockCoverageMap, createMockNodeExecutor -} from '../../../support/unit/mocks'; +} from 'tests/support/unit/mocks'; -import { TunnelMessage } from '../../../../src/lib/executors/Node'; +import { TunnelMessage } from 'src/core/lib/executors/Node'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); @@ -28,7 +28,7 @@ registerSuite('lib/reporters/Runner', function() { return { before() { - return mockRequire(require, 'src/lib/reporters/Runner', { + return mockRequire(require, 'src/core/lib/reporters/Runner', { 'istanbul-lib-coverage': { createCoverageMap: createMockCoverageMap }, diff --git a/tests/unit/lib/reporters/Simple.ts b/tests/unit/core/lib/reporters/Simple.ts similarity index 93% rename from tests/unit/lib/reporters/Simple.ts rename to tests/unit/core/lib/reporters/Simple.ts index 0eca1fe81..0fa160565 100644 --- a/tests/unit/lib/reporters/Simple.ts +++ b/tests/unit/core/lib/reporters/Simple.ts @@ -1,14 +1,14 @@ -import Simple from 'src/lib/reporters/Simple'; +import Simple from 'src/core/lib/reporters/Simple'; import { createMockNodeExecutor, MockConsole, createMockConsole -} from '../../../support/unit/mocks'; +} from 'tests/support/unit/mocks'; let mockConsole: MockConsole; let reporter: Simple; -registerSuite('intern/lib/reporters/Simple', { +registerSuite('src/core/lib/reporters/Simple', { beforeEach() { mockConsole = createMockConsole(); const mockExecutor = createMockNodeExecutor(); diff --git a/tests/unit/lib/reporters/TeamCity.ts b/tests/unit/core/lib/reporters/TeamCity.ts similarity index 96% rename from tests/unit/lib/reporters/TeamCity.ts rename to tests/unit/core/lib/reporters/TeamCity.ts index ddca407d4..ccaec9e25 100644 --- a/tests/unit/lib/reporters/TeamCity.ts +++ b/tests/unit/core/lib/reporters/TeamCity.ts @@ -2,10 +2,10 @@ import { spy } from 'sinon'; import MockStream from './support/MockStream'; -import Suite from 'src/lib/Suite'; -import Test from 'src/lib/Test'; -import { Executor } from 'src/lib/executors/Executor'; -import TeamCity from 'src/lib/reporters/TeamCity'; +import Suite from 'src/core/lib/Suite'; +import Test from 'src/core/lib/Test'; +import { Executor } from 'src/core/lib/executors/Executor'; +import TeamCity from 'src/core/lib/reporters/TeamCity'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); diff --git a/tests/unit/lib/reporters/TextCoverage.ts b/tests/unit/core/lib/reporters/TextCoverage.ts similarity index 91% rename from tests/unit/lib/reporters/TextCoverage.ts rename to tests/unit/core/lib/reporters/TextCoverage.ts index 33a8d3d59..b79afc010 100644 --- a/tests/unit/lib/reporters/TextCoverage.ts +++ b/tests/unit/core/lib/reporters/TextCoverage.ts @@ -1,4 +1,4 @@ -import TextCoverage from 'src/lib/reporters/TextCoverage'; +import TextCoverage from 'src/core/lib/reporters/TextCoverage'; const { registerSuite } = intern.getPlugin('interface.object'); const { assert } = intern.getPlugin('chai'); diff --git a/tests/unit/lib/reporters/support/MockStream.ts b/tests/unit/core/lib/reporters/support/MockStream.ts similarity index 100% rename from tests/unit/lib/reporters/support/MockStream.ts rename to tests/unit/core/lib/reporters/support/MockStream.ts diff --git a/tests/unit/lib/reporters/support/dom.ts b/tests/unit/core/lib/reporters/support/dom.ts similarity index 100% rename from tests/unit/lib/reporters/support/dom.ts rename to tests/unit/core/lib/reporters/support/dom.ts diff --git a/tests/unit/lib/reporters/support/mocks.ts b/tests/unit/core/lib/reporters/support/mocks.ts similarity index 100% rename from tests/unit/lib/reporters/support/mocks.ts rename to tests/unit/core/lib/reporters/support/mocks.ts diff --git a/tests/unit/lib/resolveEnvironments.ts b/tests/unit/core/lib/resolveEnvironments.ts similarity index 98% rename from tests/unit/lib/resolveEnvironments.ts rename to tests/unit/core/lib/resolveEnvironments.ts index 2c9910e81..62d9a2144 100644 --- a/tests/unit/lib/resolveEnvironments.ts +++ b/tests/unit/core/lib/resolveEnvironments.ts @@ -1,10 +1,10 @@ -import { NormalizedEnvironment } from '@theintern/digdug/Tunnel'; +import { NormalizedEnvironment } from 'src/tunnels/Tunnel'; import { sep } from 'path'; -import Environment from 'src/lib/Environment'; +import Environment from 'src/core/lib/Environment'; import _resolveEnvironments, { EnvironmentOptions -} from 'src/lib/resolveEnvironments'; +} from 'src/core/lib/resolveEnvironments'; const mockRequire = intern.getPlugin('mockRequire'); @@ -105,8 +105,8 @@ function assertResolveEnvironments( registerSuite('lib/resolveEnvironments', { before() { - return mockRequire(require, 'src/lib/resolveEnvironments', { - 'src/lib/node/process': { + return mockRequire(require, 'src/core/lib/resolveEnvironments', { + 'src/core/lib/node/process': { default: { cwd: () => (sep === '/' ? '/foo' : 'C:\\foo') } diff --git a/tests/unit/loaders/default.ts b/tests/unit/core/loaders/default.ts similarity index 95% rename from tests/unit/loaders/default.ts rename to tests/unit/core/loaders/default.ts index 3cf1158a6..2bff3dbd6 100644 --- a/tests/unit/loaders/default.ts +++ b/tests/unit/core/loaders/default.ts @@ -1,7 +1,7 @@ import { spy, stub } from 'sinon'; -import { global } from '@theintern/common'; +import { global } from 'src/common'; -import { LoaderInit } from 'src/lib/executors/Executor'; +import { LoaderInit } from 'src/core/lib/executors/Executor'; const mockRequire = intern.getPlugin('mockRequire'); diff --git a/tests/unit/loaders/dojo.ts b/tests/unit/core/loaders/dojo.ts similarity index 96% rename from tests/unit/loaders/dojo.ts rename to tests/unit/core/loaders/dojo.ts index 28ad4c25d..442336ee4 100644 --- a/tests/unit/loaders/dojo.ts +++ b/tests/unit/core/loaders/dojo.ts @@ -1,7 +1,7 @@ import { spy } from 'sinon'; -import { global } from '@theintern/common'; +import { global } from 'src/common'; -import { LoaderInit } from 'src/lib/executors/Executor'; +import { LoaderInit } from 'src/core/lib/executors/Executor'; const mockRequire = intern.getPlugin('mockRequire'); diff --git a/tests/unit/loaders/dojo2.ts b/tests/unit/core/loaders/dojo2.ts similarity index 96% rename from tests/unit/loaders/dojo2.ts rename to tests/unit/core/loaders/dojo2.ts index 0b5e51d3a..2c1199221 100644 --- a/tests/unit/loaders/dojo2.ts +++ b/tests/unit/core/loaders/dojo2.ts @@ -1,7 +1,7 @@ import { spy } from 'sinon'; -import { global } from '@theintern/common'; +import { global } from 'src/common'; -import { LoaderInit } from 'src/lib/executors/Executor'; +import { LoaderInit } from 'src/core/lib/executors/Executor'; const mockRequire = intern.getPlugin('mockRequire'); diff --git a/tests/unit/loaders/esm.ts b/tests/unit/core/loaders/esm.ts similarity index 95% rename from tests/unit/loaders/esm.ts rename to tests/unit/core/loaders/esm.ts index 6882363e7..ad63f7855 100644 --- a/tests/unit/loaders/esm.ts +++ b/tests/unit/core/loaders/esm.ts @@ -1,7 +1,7 @@ import { createSandbox } from 'sinon'; -import { global } from '@theintern/common'; +import { global } from 'src/common'; -import { LoaderInit } from 'src/lib/executors/Executor'; +import { LoaderInit } from 'src/core/lib/executors/Executor'; const mockRequire = intern.getPlugin('mockRequire'); diff --git a/tests/unit/loaders/systemjs.ts b/tests/unit/core/loaders/systemjs.ts similarity index 96% rename from tests/unit/loaders/systemjs.ts rename to tests/unit/core/loaders/systemjs.ts index 582f3b0dd..052dc012f 100644 --- a/tests/unit/loaders/systemjs.ts +++ b/tests/unit/core/loaders/systemjs.ts @@ -1,7 +1,7 @@ import { spy, stub } from 'sinon'; -import { global } from '@theintern/common'; +import { global } from 'src/common'; -import { LoaderInit } from 'src/lib/executors/Executor'; +import { LoaderInit } from 'src/core/lib/executors/Executor'; const mockRequire = intern.getPlugin('mockRequire'); diff --git a/tests/unit/tasks/intern.ts b/tests/unit/core/tasks/intern.ts similarity index 94% rename from tests/unit/tasks/intern.ts rename to tests/unit/core/tasks/intern.ts index 0a4d1e1c5..4fd1becde 100644 --- a/tests/unit/tasks/intern.ts +++ b/tests/unit/core/tasks/intern.ts @@ -1,5 +1,5 @@ -import * as sinon from 'sinon'; -import * as _gruntTask from 'src/tasks/intern'; +import sinon from 'sinon'; +import _gruntTask from 'src/tasks/intern'; const mockRequire = intern.getPlugin('mockRequire'); @@ -41,9 +41,9 @@ registerSuite('tasks/intern', function() { return { before() { return mockRequire(require, 'src/tasks/intern', { - 'src/lib/executors/Node': { default: MockNode }, - '@theintern/common': { global: {} }, - 'src/lib/node/util': { getConfig: mockGetConfig } + 'src/core/lib/executors/Node': MockNode, + 'src/common': { global: {} }, + 'src/core/lib/node/util': { getConfig: mockGetConfig } }).then(handle => { removeMocks = handle.remove; gruntTask = handle.module; diff --git a/tests/unit/lib/reporters/support/baseline.json b/tests/unit/lib/reporters/support/baseline.json deleted file mode 100644 index f98cb9c3c..000000000 --- a/tests/unit/lib/reporters/support/baseline.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "thresholds": { - "warn": { - "rme": 1, - "hz": 1 - }, - "fail": { - "rme": 5, - "hz": 5 - } - }, - "tests": [ - "test1", "test2" - ], - "environmentTypes": { - "nodejs": { - "environmentType": { - }, - "hz": [ 99846896, 8375488 ] - }, - "IE11": { - "environmentType": { - "version": "11", - "browserName": "internet explorer" - }, - "hz": [ 99846896, 8375488 ] - } - } -} diff --git a/tests/unit/tunnels/BrowserStackTunnel.ts b/tests/unit/tunnels/BrowserStackTunnel.ts new file mode 100644 index 000000000..b1ace40db --- /dev/null +++ b/tests/unit/tunnels/BrowserStackTunnel.ts @@ -0,0 +1,74 @@ +import { join } from 'path'; +import BrowserStackTunnel from 'src/tunnels/BrowserStackTunnel'; + +registerSuite('unit/BrowserStackTunnel', () => { + let tunnel: BrowserStackTunnel; + + return { + beforeEach() { + tunnel = new BrowserStackTunnel(); + }, + + tests: { + '#auth'() { + tunnel.username = 'foo'; + tunnel.accessKey = 'bar'; + assert.equal(tunnel.auth, 'foo:bar'); + }, + + '#executable'() { + tunnel.platform = 'foo'; + let executable = join(tunnel.directory, 'BrowserStackLocal'); + assert.equal(tunnel.executable, executable); + + tunnel.platform = 'win32'; + executable = join(tunnel.directory, 'BrowserStackLocal.exe'); + assert.equal(tunnel.executable, executable); + }, + + '#extraCapabilities'() { + const capabilities: any = { 'browserstack.local': 'true' }; + assert.deepEqual(tunnel.extraCapabilities, capabilities); + capabilities['browserstack.localIdentifier'] = tunnel.tunnelId = 'foo'; + assert.deepEqual(tunnel.extraCapabilities, capabilities); + }, + + '#url'() { + tunnel.platform = 'foo'; + assert.throws(function() { + tunnel.url; + }); + + let url = + 'https://www.browserstack.com/browserstack-local/BrowserStackLocal-'; + tunnel.platform = 'darwin'; + tunnel.architecture = 'x64'; + assert.equal(tunnel.url, url + 'darwin-x64.zip'); + + tunnel.platform = 'win32'; + assert.equal(tunnel.url, url + 'win32.zip'); + + tunnel.platform = 'linux'; + tunnel.architecture = 'x64'; + assert.equal(tunnel.url, url + 'linux-x64.zip'); + + tunnel.architecture = 'ia32'; + assert.equal(tunnel.url, url + 'linux-ia32.zip'); + }, + + '#tunnelProxy'() { + tunnel.proxy = 'http://localhost:2345'; + tunnel.tunnelProxy = 'http://localhost:5678'; + tunnel.username = 'foo'; + tunnel.accessKey = 'bar'; + const args = tunnel['_makeArgs'](); + assert.includeMembers(args, [ + '-proxyHost', + 'localhost', + '-proxyPort', + '5678' + ]); + } + } + }; +}); diff --git a/tests/unit/tunnels/CrossBrowserTestingTunnel.ts b/tests/unit/tunnels/CrossBrowserTestingTunnel.ts new file mode 100644 index 000000000..8ea9011b1 --- /dev/null +++ b/tests/unit/tunnels/CrossBrowserTestingTunnel.ts @@ -0,0 +1,28 @@ +import CrossBrowserTestingTunnel from 'src/tunnels/CrossBrowserTestingTunnel'; + +registerSuite('unit/CrossBrowserTestingTunnel', () => { + let tunnel: CrossBrowserTestingTunnel; + + return { + beforeEach() { + tunnel = new CrossBrowserTestingTunnel(); + }, + + tests: { + '#auth'() { + tunnel.username = 'foo'; + tunnel.accessKey = 'bar'; + assert.equal(tunnel.auth, 'foo:bar'); + }, + + '#executable'() { + assert.equal(tunnel.executable, 'node'); + }, + + '#extraCapabilities'() { + assert.property(tunnel.extraCapabilities, 'username'); + assert.property(tunnel.extraCapabilities, 'password'); + } + } + }; +}); diff --git a/tests/unit/tunnels/SauceLabsTunnel.ts b/tests/unit/tunnels/SauceLabsTunnel.ts new file mode 100644 index 000000000..3186d404b --- /dev/null +++ b/tests/unit/tunnels/SauceLabsTunnel.ts @@ -0,0 +1,71 @@ +import SauceLabsTunnel from 'src/tunnels/SauceLabsTunnel'; + +registerSuite('unit/SauceLabsTunnel', () => { + let tunnel: SauceLabsTunnel; + + return { + beforeEach() { + tunnel = new SauceLabsTunnel(); + }, + + tests: { + '#auth'() { + tunnel.username = 'foo'; + tunnel.accessKey = 'bar'; + assert.equal(tunnel.auth, 'foo:bar'); + }, + + '#executable'() { + tunnel.platform = 'foo'; + assert.equal(tunnel.executable, 'java'); + + tunnel.platform = 'osx'; + tunnel.architecture = 'foo'; + let executable = /\/sc-\d+\.\d+(?:\.\d+)?-osx\/bin\/sc$/; + assert.match(tunnel.executable, executable); + + tunnel.platform = 'linux'; + assert.equal(tunnel.executable, 'java'); + + tunnel.architecture = 'x64'; + executable = /\/sc-\d+\.\d+(?:\.\d+)?-linux\/bin\/sc$/; + assert.match(tunnel.executable, executable); + + tunnel.platform = 'win32'; + executable = /\/sc-\d+\.\d+(?:\.\d+)?-win32\/bin\/sc\.exe$/; + assert.match(tunnel.executable, executable); + }, + + '#extraCapabilities'() { + assert.deepEqual(tunnel.extraCapabilities, {}); + tunnel.tunnelId = 'foo'; + assert.deepEqual(tunnel.extraCapabilities, { + 'tunnel-identifier': 'foo' + }); + }, + + '#isDownloaded'() { + tunnel.platform = 'foo'; + assert.isFalse(tunnel.isDownloaded); + }, + + '#url'() { + tunnel.platform = 'foo'; + tunnel.architecture = 'bar'; + assert.equal( + tunnel.url, + 'https://saucelabs.com/downloads/Sauce-Connect-3.1-r32.zip' + ); + + tunnel.platform = 'darwin'; + let url = /https:\/\/saucelabs\.com\/downloads\/sc-\d+\.\d+(?:\.\d+)?-osx\.zip/; + assert.match(tunnel.url, url); + + tunnel.platform = 'linux'; + tunnel.architecture = 'x64'; + url = /https:\/\/saucelabs\.com\/downloads\/sc-\d+\.\d+(?:\.\d+)?-linux\.tar\.gz/; + assert.match(tunnel.url, url); + } + } + }; +}); diff --git a/tests/unit/tunnels/SeleniumTunnel.ts b/tests/unit/tunnels/SeleniumTunnel.ts new file mode 100644 index 000000000..f09f819bb --- /dev/null +++ b/tests/unit/tunnels/SeleniumTunnel.ts @@ -0,0 +1,84 @@ +import SeleniumTunnel from 'src/tunnels/SeleniumTunnel'; + +registerSuite('unit/SeleniumTunnel', { + config: { + 'name only': function() { + const tunnel = new SeleniumTunnel({ drivers: ['chrome'] }); + assert.isFalse(tunnel.isDownloaded); + }, + + 'config object': function() { + const tunnel = new SeleniumTunnel({ + drivers: [{ executable: 'README.md', url: '', seleniumProperty: '' }] + }); + Object.defineProperty(tunnel, 'artifact', { value: '.' }); + Object.defineProperty(tunnel, 'directory', { value: '.' }); + assert.isTrue(tunnel.isDownloaded); + }, + + 'invalid name': function() { + assert.throws(function() { + const tunnel = new SeleniumTunnel({ drivers: ['foo'] }); + Object.defineProperty(tunnel, 'artifact', { value: '.' }); + Object.defineProperty(tunnel, 'directory', { value: '.' }); + tunnel.isDownloaded; + }, /Invalid driver/); + }, + + 'config object with invalid name': function() { + assert.throws(function() { + const tunnel = new SeleniumTunnel({ + drivers: [{ name: 'foo' }] + }); + Object.defineProperty(tunnel, 'artifact', { value: '.' }); + Object.defineProperty(tunnel, 'directory', { value: '.' }); + tunnel.isDownloaded; + }, /Invalid driver/); + }, + + 'debug args': (function() { + function createTest(version: string, hasDebugArg: boolean) { + return function() { + const tunnel = new SeleniumTunnel({ + version, + verbose: true + }); + console.log = () => {}; + const args = tunnel['_makeArgs'](); + console.log = oldLog; + const indexOfDebug = args.indexOf('-debug'); + assert.notEqual( + indexOfDebug, + -1, + 'expected -debug arg to be present' + ); + if (hasDebugArg) { + assert.equal( + args[indexOfDebug + 1], + 'true', + "-debug should have 'true' value" + ); + } else { + assert.notEqual( + args[indexOfDebug + 1], + 'true', + "-debug should not have 'true' value" + ); + } + }; + } + + let oldLog = console.log; + + return { + afterEach() { + console.log = oldLog; + }, + '3.0.0': createTest('3.0.0', false), + '3.5.0': createTest('3.5.0', false), + '3.14.0': createTest('3.14.0', false), + '3.141.59': createTest('3.141.59', false) + }; + })() + } +}); diff --git a/tests/unit/tunnels/TestingBotTunnel.ts b/tests/unit/tunnels/TestingBotTunnel.ts new file mode 100644 index 000000000..8673333c8 --- /dev/null +++ b/tests/unit/tunnels/TestingBotTunnel.ts @@ -0,0 +1,19 @@ +import TestingBotTunnel from 'src/tunnels/TestingBotTunnel'; + +registerSuite('unit/TestingBotTunnel', () => { + let tunnel: TestingBotTunnel; + + return { + beforeEach() { + tunnel = new TestingBotTunnel(); + }, + + tests: { + '#auth'() { + tunnel.username = 'foo'; + tunnel.accessKey = 'bar'; + assert.equal(tunnel.auth, 'foo:bar'); + } + } + }; +}); diff --git a/tests/unit/tunnels/Tunnel.ts b/tests/unit/tunnels/Tunnel.ts new file mode 100644 index 000000000..fd34b41f2 --- /dev/null +++ b/tests/unit/tunnels/Tunnel.ts @@ -0,0 +1,84 @@ +import { Task } from 'src/common'; +import Tunnel from 'src/tunnels/Tunnel'; + +registerSuite('unit/Tunnel', () => { + let tunnel: Tunnel; + + return { + beforeEach() { + tunnel = new Tunnel({ foo: 'bar' }); + }, + + tests: { + '#clientUrl'() { + tunnel.port = '4446'; + tunnel.hostname = 'foo.com'; + tunnel.protocol = 'https'; + tunnel.pathname = 'bar/baz/'; + assert.strictEqual(tunnel.clientUrl, 'https://foo.com:4446/bar/baz/'); + }, + + '#extraCapabilities'() { + assert.deepEqual(tunnel.extraCapabilities, {}); + }, + + '#start'() { + const task = Task.resolve(); + tunnel['_startTask'] = task; + tunnel['_state'] = 'stopping'; + assert.throws(() => { + tunnel.start(); + }); + + tunnel['_state'] = 'running'; + assert.strictEqual( + tunnel.start(), + task, + 'Running tunnel should have returned start task' + ); + }, + + '#stop': { + 'stop a stopping tunnel'() { + (tunnel)._state = 'stopping'; + return tunnel.stop(); + }, + + 'stop a starting tunnnel'() { + let timeout: NodeJS.Timer; + const startTask = new Task( + resolve => { + timeout = global.setTimeout(resolve, 500); + }, + () => { + clearTimeout(timeout); + } + ); + tunnel['_state'] = 'starting'; + tunnel['_startTask'] = startTask; + tunnel['_stop'] = () => Promise.resolve(0); + tunnel.stop(); + + const dfd = this.async(); + startTask.finally(() => { + dfd.resolve(); + }); + }, + + 'stop a tunnel that is not running; throws'() { + (tunnel)['_state'] = 'stopped'; + (tunnel)['_stop'] = () => Promise.resolve(0); + (tunnel)['_handle'] = { destroy() {} }; + return tunnel.stop(); + } + }, + + '#sendJobState'() { + const dfd = this.async(); + tunnel.sendJobState('0', { success: true }).catch(function() { + dfd.resolve(); + }); + } + } + }; +}); diff --git a/tests/unit/tunnels/lib/util.ts b/tests/unit/tunnels/lib/util.ts new file mode 100644 index 000000000..41e1a5995 --- /dev/null +++ b/tests/unit/tunnels/lib/util.ts @@ -0,0 +1,46 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { EventEmitter } from 'events'; +import * as util from 'src/tunnels/lib/util'; + +function rmFileAndDir(filename: string) { + fs.unlinkSync(filename); + while ((filename = path.dirname(filename)) && filename !== '.') { + fs.rmdirSync(filename); + } +} + +registerSuite('unit/lib/util', { + '.fileExists': function() { + assert.isTrue(util.fileExists('src/Tunnel.ts')); + assert.isFalse(util.fileExists('src/Tunnel.jsx')); + }, + + '.on': function() { + const emitter = new EventEmitter(); + + let called = false; + const handle = util.on(emitter, 'foo', function() { + called = true; + }); + emitter.emit('foo'); + assert.isTrue(called); + assert.property(handle, 'destroy'); + + handle.destroy(); + called = false; + emitter.emit('foo'); + assert.isFalse(called); + }, + + '.writeFile': function() { + const filename = path.join('_a', '_b', 'foo.txt'); + return util.writeFile('foo\n', filename).then(function() { + try { + fs.statSync(filename).isFile(); + } finally { + rmFileAndDir(filename); + } + }); + } +}); diff --git a/tests/unit/webdriver/lib/util.ts b/tests/unit/webdriver/lib/util.ts new file mode 100644 index 000000000..f103de5e2 --- /dev/null +++ b/tests/unit/webdriver/lib/util.ts @@ -0,0 +1,50 @@ +import Test from 'src/core/lib/Test'; +import * as util from 'src/webdriver/lib/util'; + +declare let __cov_abcdef: number; +declare let a: any; + +registerSuite('lib/leadfoot/util', { + '.sleep'() { + const startTime = Date.now(); + return util.sleep(250).then(function() { + assert.closeTo(Date.now() - startTime, 250, 50); + }); + }, + + '.sleep canceler'(this: Test) { + const startTime = Date.now(); + const sleep = util.sleep(10000); + const dfd = this.async(); + sleep.cancel(); + sleep.finally(function() { + assert.operator(Date.now() - startTime, '<', 500); + dfd.resolve(); + }); + }, + + '.forCommand'() { + const commandFn: any = util.forCommand(function() {}, { + createsContext: false, + usesElement: true + }); + assert.isFalse(commandFn.createsContext); + assert.isTrue(commandFn.usesElement); + }, + + '.toExecuteString string'() { + const script = util.toExecuteString('return a;'); + assert.strictEqual(script, 'return a;'); + }, + + '.toExecuteString function'() { + const script = util.toExecuteString(function() { + __cov_abcdef = __cov_abcdef + 1; + return a; + }); + assert.match( + script, + /^return \(function \(\) \{\s*return a;\s*\}\)\.apply\(this, arguments\);$/ + ); + } +}); diff --git a/tsconfig-bin.json b/tsconfig-bin.json new file mode 100644 index 000000000..20343ae90 --- /dev/null +++ b/tsconfig-bin.json @@ -0,0 +1,15 @@ +{ + "extends": "./tsconfig-lib.json", + "compilerOptions": { + "declaration": false, + "sourceMap": false + }, + "include": [ + "src/cli/*.ts", + "src/bin/*.ts" + ], + "exclude": [ + "src/core/browser/**", + "src/core/lib/browser/**" + ] +} diff --git a/tsconfig-browser.json b/tsconfig-browser.json new file mode 100644 index 000000000..89a981c6a --- /dev/null +++ b/tsconfig-browser.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "commonjs" + }, + "include": ["src/core/browser/*.ts", "src/core/lib/typings.d.ts"] +} diff --git a/tests/examples/tsconfig.json b/tsconfig-examples.json similarity index 100% rename from tests/examples/tsconfig.json rename to tsconfig-examples.json diff --git a/tsconfig-lib.json b/tsconfig-lib.json new file mode 100644 index 000000000..a0ee90410 --- /dev/null +++ b/tsconfig-lib.json @@ -0,0 +1,24 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": true, + "downlevelIteration": true, + "lib": ["dom", "es2015"], + "module": "commonjs", + "outDir": "./_build", + "preserveConstEnums": true, + "removeComments": true, + "rootDir": "./src", + "sourceMap": true, + "target": "es2015" + }, + "include": [ + "src/**/*.ts" + ], + "exclude": [ + "src/core/browser/**", + "src/core/lib/browser/**", + "src/bin/**", + "src/cli/**" + ] +} diff --git a/tsconfig-tests.json b/tsconfig-tests.json new file mode 100644 index 000000000..d26dc3f86 --- /dev/null +++ b/tsconfig-tests.json @@ -0,0 +1,13 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": false, + "outDir": "./_tests" + }, + "include": [ + "tests/**/*.ts" + ], + "exclude": [ + "tests/examples/**" + ] +} diff --git a/tsconfig.json b/tsconfig.json index 93912d23b..32635b641 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,20 +1,18 @@ { - "extends": "./node_modules/@theintern/dev/tsconfig-base.json", "compilerOptions": { - "declaration": true, + "baseUrl": ".", + "declaration": false, + "esModuleInterop": true, + "experimentalDecorators": true, + "importHelpers": true, "lib": ["dom", "es2015"], - // Build as UMD for compatibility with AMD loaders - "module": "umd", - "outDir": "./_build", - "rootDir": "." + "module": "commonjs", + "moduleResolution": "node", + "noUnusedLocals": true, + "noUnusedParameters": true, + "resolveJsonModule": true, + "strict": true, + "target": "esnext" }, - "include": [ - "src/bin/*.ts", - "src/loaders/*.ts", - "src/tasks/*.ts", - - // Build everything in lib (vs just relying on the bin entry point) so - // it'll be available for testing - "src/lib/*.ts" - ] + "include": ["src/**/*", "scripts/**/*", "tests/**/*"] } diff --git a/tslint.json b/tslint.json index bfbc075dc..108b4f3c4 100644 --- a/tslint.json +++ b/tslint.json @@ -1 +1,42 @@ -{ "extends": "@theintern/dev/tslint.json" } +{ + "extends": "tslint-config-prettier", + "rules": { + "class-name": true, + "comment-format": [true, "check-space"], + "curly": true, + "interface-name": [true, "never-prefix"], + "jsdoc-format": true, + "label-position": true, + "member-access": false, + "member-ordering": false, + "no-any": false, + "no-arg": true, + "no-bitwise": false, + "no-console": false, + "no-construct": false, + "no-debugger": true, + "no-duplicate-variable": true, + "no-empty": false, + "no-eval": true, + "no-inferrable-types": [true, "ignore-params"], + "no-parameter-properties": true, + "no-shadowed-variable": false, + "no-string-literal": false, + "no-switch-case-fall-through": false, + "no-unused-expression": false, + "no-use-before-declare": false, + "no-var-keyword": true, + "no-var-requires": false, + "object-literal-sort-keys": false, + "radix": true, + "triple-equals": [true, "allow-null-check"], + "typedef": false, + "variable-name": [ + true, + "check-format", + "allow-leading-underscore", + "ban-keywords", + "allow-pascal-case" + ] + } +} diff --git a/webpack.config.ts b/webpack.config.ts index 9459f792d..928632b17 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -11,10 +11,6 @@ const common: Configuration = { mode, module: { rules: [ - { - test: /@theintern\/common/, - use: 'umd-compat-loader' - }, { test: /\.styl$/, use: ['style-loader', 'css-loader', 'stylus-loader'] @@ -25,7 +21,7 @@ const common: Configuration = { loader: 'ts-loader', options: { silent: true, - configFile: 'src/browser/tsconfig.json' + configFile: 'tsconfig-browser.json' } } } @@ -56,7 +52,7 @@ module.exports = [ entry: getEntries(), output: { filename: '[name].js', - path: join(__dirname, '_build/src/browser') + path: join(__dirname, '_build/browser') } }, { @@ -64,15 +60,15 @@ module.exports = [ entry: getEntries(), output: { filename: '[name].js', - path: join(__dirname, '_tests/src/browser') + path: join(__dirname, '_tests/browser') } } ]; function getEntries() { return { - intern: './src/browser/intern.ts', - remote: './src/browser/remote.ts', - config: './src/browser/config.ts' + intern: './src/core/browser/intern.ts', + remote: './src/core/browser/remote.ts', + config: './src/core/browser/config.ts' }; }