diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /widget/tests/test_ime_state_on_readonly_change_in_parent.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-upstream.tar.xz firefox-esr-upstream.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'widget/tests/test_ime_state_on_readonly_change_in_parent.html')
-rw-r--r-- | widget/tests/test_ime_state_on_readonly_change_in_parent.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/widget/tests/test_ime_state_on_readonly_change_in_parent.html b/widget/tests/test_ime_state_on_readonly_change_in_parent.html new file mode 100644 index 0000000000..0557856542 --- /dev/null +++ b/widget/tests/test_ime_state_on_readonly_change_in_parent.html @@ -0,0 +1,31 @@ +<html> +<head> + <title>Test for IME state on readonly state change</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> + <script src="file_ime_state_test_helper.js"></script> + <script src="file_test_ime_state_on_readonly_change.js"></script> + <link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"> +<script> +"use strict"; + +/* import-globals-from file_ime_state_test_helper.js */ +/* import-globals-from file_test_ime_state_on_readonly_change.js */ + +SimpleTest.waitForExplicitFinish(); +SimpleTest.waitForFocus(async () => { + const tipWrapper = new TIPWrapper(window); + const tester = new IMEStateOnReadonlyChangeTester(); + for (let i = 0; i < IMEStateOnReadonlyChangeTester.numberOfTextControlTypes; i++) { + tester.checkBeforeRun(await tester.prepareToRun(i, window, document.body), tipWrapper); + tester.checkResultOfMakingTextControlReadonly(await tester.runToMakeTextControlReadonly()); + tester.checkResultOfMakingTextControlEditable(await tester.runToMakeTextControlEditable()); + tipWrapper.clearFocusBlurNotifications(); + tester.clear(); + } + SimpleTest.finish(); +}); +</script> +</head> +<body> +</body> +</html> |