diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2020-10-13 22:31:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 15:31:59 +0200 |
commit | 0dcaea72aeec52a566764b41b10d8fd1854d6fa4 (patch) | |
tree | 1c1bfe56b3ac846e83fae48ed5546116d3aea05d /cli/tests/integration_tests.rs | |
parent | 0bd3cea0ff6d2d4840c0df2938b5ae5c5d7cc4bd (diff) |
feat: add alert, confirm, and prompt (#7507)
This commit adds "alert", "confirm" and "prompt" functions from web standards.
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 1a5e48ada..90dc5a4a8 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1917,6 +1917,17 @@ itest!(_065_import_map_info { output: "065_import_map_info.out", }); +#[cfg(unix)] +#[test] +fn _066_prompt() { + let args = "run --unstable 066_prompt.ts"; + let output = "066_prompt.ts.out"; + // These are answers to prompt, confirm, and alert calls. + let input = b"John Doe\n\nfoo\nY\nN\nyes\n\n\n\n"; + + util::test_pty(args, output, input); +} + itest!(js_import_detect { args: "run --quiet --reload js_import_detect.ts", output: "js_import_detect.ts.out", |