зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1269209 - Port test_async_UpdateCurrentDictionary.html from chrome to plain; r=masayuki
MozReview-Commit-ID: 3dneNqKrYCe
This commit is contained in:
Родитель
2e0b779c1c
Коммит
6dc53c6bec
|
@ -1,7 +1,6 @@
|
|||
[DEFAULT]
|
||||
skip-if = buildapp == 'b2g' || os == 'android'
|
||||
|
||||
[test_async_UpdateCurrentDictionary.html]
|
||||
[test_bug338427.html]
|
||||
[test_bug434998.xul]
|
||||
[test_bug678842.html]
|
||||
|
|
|
@ -13,6 +13,8 @@ support-files =
|
|||
de-DE/de_DE.dic
|
||||
de-DE/de_DE.aff
|
||||
|
||||
[test_async_UpdateCurrentDictionary.html]
|
||||
skip-if = os == 'android'
|
||||
[test_bug348497.html]
|
||||
[test_bug384147.html]
|
||||
[test_bug389350.html]
|
||||
|
|
|
@ -5,8 +5,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=856270
|
|||
-->
|
||||
<head>
|
||||
<title>Test for Bug 856270 - Async UpdateCurrentDictionary</title>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
||||
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=856270">Mozilla Bug 856270</a>
|
||||
|
@ -21,12 +21,12 @@ SimpleTest.waitForExplicitFinish();
|
|||
addLoadEvent(start);
|
||||
|
||||
function start() {
|
||||
Components.utils.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm");
|
||||
var textarea = document.getElementById("editor");
|
||||
textarea.focus();
|
||||
|
||||
onSpellCheck(textarea, function () {
|
||||
var isc = textarea.editor.getInlineSpellChecker(false);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck(textarea, function () {
|
||||
var isc = SpecialPowers.wrap(textarea).editor.getInlineSpellChecker(false);
|
||||
ok(isc, "Inline spell checker should exist after focus and spell check");
|
||||
var sc = isc.spellChecker;
|
||||
isnot(sc.GetCurrentDictionary(), lang,
|
||||
|
|
Загрузка…
Ссылка в новой задаче