Backed out changeset c7d8d25e09b6 (bug 1269209)

MozReview-Commit-ID: KivGNRxiRDu
This commit is contained in:
Sebastian Hengst 2016-10-28 00:38:50 +02:00
parent 1a5704fe4d
commit 8873da9713
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,7 @@
[DEFAULT]
skip-if = buildapp == 'b2g' || os == 'android'
[test_async_UpdateCurrentDictionary.html]
[test_bug338427.html]
[test_bug434998.xul]
[test_bug678842.html]

View File

@ -13,7 +13,6 @@ support-files =
de-DE/de_DE.dic
de-DE/de_DE.aff
[test_async_UpdateCurrentDictionary.html]
[test_bug348497.html]
[test_bug384147.html]
[test_bug389350.html]

View File

@ -5,8 +5,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=856270
-->
<head>
<title>Test for Bug 856270 - Async UpdateCurrentDictionary</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
<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" />
</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();
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
.onSpellCheck(textarea, function () {
var isc = SpecialPowers.wrap(textarea).editor.getInlineSpellChecker(false);
onSpellCheck(textarea, function () {
var isc = textarea.editor.getInlineSpellChecker(false);
ok(isc, "Inline spell checker should exist after focus and spell check");
var sc = isc.spellChecker;
isnot(sc.GetCurrentDictionary(), lang,