diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /widget/tests/test_ime_state_on_input_type_change_in_parent.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'widget/tests/test_ime_state_on_input_type_change_in_parent.html')
-rw-r--r-- | widget/tests/test_ime_state_on_input_type_change_in_parent.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/widget/tests/test_ime_state_on_input_type_change_in_parent.html b/widget/tests/test_ime_state_on_input_type_change_in_parent.html new file mode 100644 index 0000000000..2644c31e3f --- /dev/null +++ b/widget/tests/test_ime_state_on_input_type_change_in_parent.html @@ -0,0 +1,39 @@ +<html> +<head> + <title>Test for IME state on input type 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_input_type_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_input_type_change.js */ + +SimpleTest.waitForExplicitFinish(); +SimpleTest.expectAssertions(6); // Hit in IMEStateManager::UpdateIMEState +SimpleTest.waitForFocus(async () => { + const tipWrapper = new TIPWrapper(window); + for (let srcIndex = 0; srcIndex < IMEStateOnInputTypeChangeTester.numberOfTests; srcIndex++) { + const tester = new IMEStateOnInputTypeChangeTester(srcIndex); + for (let destIndex = 0; destIndex < IMEStateOnInputTypeChangeTester.numberOfTests; destIndex++) { + const expectedResultBefore = await tester.prepareToRun(destIndex, window, document.body); + if (expectedResultBefore === false) { + continue; + } + tester.checkBeforeRun(expectedResultBefore, tipWrapper); + const expectedResult = await tester.run(); + tester.checkResult(expectedResultBefore, expectedResult); + tipWrapper.clearFocusBlurNotifications(); + tester.clear(); + } + } + + SimpleTest.finish(); +}); +</script> +</head> +<body> +</body> +</html> |