Bug 1269209 - Port test_bug338427.html from chrome to plain; r=masayuki

MozReview-Commit-ID: HiDXAKaZlQA

--HG--
extra : rebase_source : 69b4d87f6c31de8208d3e400f6bf0a2c38616d78
This commit is contained in:
Aryeh Gregor 2016-08-22 21:02:11 +03:00
parent 84e7b9c6b9
commit 9f27fa1dd2
3 changed files with 7 additions and 6 deletions

View File

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

View File

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

View File

@ -5,8 +5,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=338427
-->
<head>
<title>Test for Bug 338427</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=338427">Mozilla Bug 338427</a>
@ -20,10 +20,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=338427
/** Test for Bug 338427 **/
function init() {
Components.utils.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm");
var onSpellCheck =
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
.onSpellCheck;
var textarea = document.getElementById("editor");
var editor = textarea.editor;
var editor = SpecialPowers.wrap(textarea).editor;
var spellchecker = editor.getInlineSpellChecker(true);
spellchecker.enableRealTimeSpell = true;
textarea.focus();