Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<html>
<head>
<title>Test for IME state on readonly state change</title>
<script src="file_ime_state_test_helper.js"></script>
<script src="file_test_ime_state_on_readonly_change.js"></script>
<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>