Backed out changeset d9eb3294e6d5 (bug 955965) for mochitest-3 test bustage

This commit is contained in:
Carsten "Tomcat" Book 2014-04-29 10:29:00 +02:00
Родитель 8f6c4e2824
Коммит 746517d73f
2 изменённых файлов: 0 добавлений и 61 удалений

Просмотреть файл

@ -15,4 +15,3 @@ support-files =
[test_bug978918.html]
[test_delete_focused_element.html]
[test_sendkey_cancel.html]
[test_inputMethodManager.html]

Просмотреть файл

@ -1,60 +0,0 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=955965
-->
<head>
<title>Test for InputMethodManager</title>
<script type="application/javascript;version=1.7" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript;version=1.7" src="inputmethod_common.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=955965">Mozilla Bug 955965</a>
<p id="display"></p>
<pre id="test">
<script class="testbody" type="application/javascript;version=1.7">
let gIm;
inputmethod_setup(function() {
runTest();
});
function runTest() {
gIm = navigator.mozInputMethod;
gIm.oninputcontextchange = function() {
ok(true, 'inputcontextchange event was fired.');
gIm.oninputcontextchange = null;
if (!gIm.inputcontext) {
ok(false, 'Should have a non-null inputcontext.');
inputmethod_cleanup();
return;
}
test_hide();
};
// Set current page as an input method.
SpecialPowers.wrap(gIm).setActive(true);
let iframe = document.createElement('iframe');
iframe.src = 'file_test_app.html';
iframe.setAttribute('mozbrowser', true);
document.body.appendChild(iframe);
}
function test_hide() {
gIm.oninputcontextchange = function() {
is(gIm.inputcontext, null, 'Should have a null inputcontext.');
inputmethod_cleanup();
}
gIm.mgmt.hide();
}
</script>
</pre>
</body>
</html>