Files
palemoon27/widget/tests/test_bug1151186.html
roytam1 7fc7f2d2a8 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1176954 part.5 IMENotification::TextChangeDataBase should have a state which indicates that it's not initialized r=smaug (5b79eff32)
- Bug 1176954 part.6 IMEContentObserver should use IMENotification::TextChangeData r=smaug (f5ba0bc3e)
- Bug 1176954 part.7 IMENotification::TextChangeData should have a method to merge with another instance and IMENotification::MergeWith() should use it r=smaug (6978581c7)
- Bug 1151186 part.1 Don't reset IME enabled state after focus is changed by JS during setting focus r=enndeakin (37d70fa0b)
- Bug 1151186 part.2 nsHTMLEditor should accept composition events even while there is no active editing host but it has composition r=ehsan (9edcefa44)
- Bug 1053053 part.1 Active TabParent should be managed by IMEStateManager r=smaug (65e2222dd)
- Bug 1053053 part.2 Notify child process's IMEStateManager of that it should stop manageing IME state r=smaug (acab307e3)
- Bug 1053053 part.3 Notify child process's IMEStateManager of menu key event listener being installed r=smaug (8c3dd208f)
- Bug 1053053 part.4 Make IMEStateManager::sContent StaticRefPtr r=smaug (481701599)
- Bug 1053053 part.5 Make IMEStateManager::sActiveIMEContentObserver StaticRefPtr r=smaug (880a49eb4)
- Bug 1153518, allow drops on editors when the source is a remote browser, r=ehsan (1cc64b832)
- Bug 1179122 TextComposition should manage a composition which is even in a child process r=smaug (b2166e8f6)
- Bug 1176955 part.1 TextComposition should guarantee that WidgetSelectionEvent should be handled by same content as the target of composition events when there is a composition r=smaug (d4c6847c8)
- Bug 1176955 part.2 NOTIFY_IME_OF_SELECTION should have a flag which indicates if it's caused by a selection event r=smaug (902137ddd)
- Bug 1176955 part.3 nsTextStore shouldn't notify TSF of selection change which is caused by selection set event r=m_kato (398229e93)
- Bug 1184004 part.1 Give a name to each struct in IMENotification r=smaug (851e43638)
- Bug 1184004 part.2 Make all structs in IMENotification IPC-aware r=smaug (158e073a3)
- Bug 1176954 part.8 ContentCacheInParent::OnEventNeedingAckReceived() should log the event message r=smaug (94a53ba41)
- Bug 1184004 part.3 IPC methods to notify IME should use IMENotification for its argument r=smaug (71c8907c3)
2021-03-02 09:50:04 +08:00

44 lines
1.3 KiB
HTML

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1151186
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 1151186</title>
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="chrome://global/skin"/>
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1151186 **/
SimpleTest.waitForExplicitFinish();
document.addEventListener("focus", () => {
document.getElementById("editor").focus();
SimpleTest.executeSoon(runTests);
});
function runTests()
{
is(document.activeElement, document.getElementById("editor"),
"The div element should be focused");
var utils = SpecialPowers.getDOMWindowUtils(window);
is(utils.IMEStatus, utils.IME_STATUS_ENABLED,
"IME should be enabled");
SimpleTest.finish();
}
</script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1151186">Mozilla Bug 1151186</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<div id="editor" contenteditable="true"></div>
<pre id="test">
</pre>
</body>
</html>