зеркало из https://github.com/mozilla/gecko-dev.git
Backed out 3 changesets (bug 1351074) for reftest harness and browser_all_files_referenced.js bustage
CLOSED TREE Backed out changeset 941e0f9ff9a7 (bug 1351074) Backed out changeset 4fdf3b87a70b (bug 1351074) Backed out changeset 586428f69838 (bug 1351074)
This commit is contained in:
Родитель
54547a4abe
Коммит
7ac3bd5b7e
|
@ -17,9 +17,7 @@ function openContextMenuFor(element, shiftkey, waitForSpellCheck) {
|
|||
}
|
||||
|
||||
if (waitForSpellCheck) {
|
||||
var { onSpellCheck } =
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", {});
|
||||
var { onSpellCheck } = SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", {});
|
||||
onSpellCheck(element, actuallyOpenContextMenuFor);
|
||||
} else {
|
||||
actuallyOpenContextMenuFor();
|
||||
|
@ -280,9 +278,7 @@ function* test_contextmenu(selector, menuItems, options = {}) {
|
|||
if (options.waitForSpellCheck) {
|
||||
info("Waiting for spell check");
|
||||
yield ContentTask.spawn(gBrowser.selectedBrowser, selector, function*(contentSelector) {
|
||||
let {onSpellCheck} =
|
||||
Cu.import("resource://testing-common/AsyncSpellCheckTestHelper.jsm",
|
||||
{});
|
||||
let {onSpellCheck} = Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", {});
|
||||
let element = content.document.querySelector(contentSelector);
|
||||
yield new Promise(resolve => onSpellCheck(element, resolve));
|
||||
info("Spell check running");
|
||||
|
|
|
@ -24,8 +24,7 @@ function start() {
|
|||
var textarea = document.getElementById("editor");
|
||||
textarea.focus();
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
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");
|
||||
|
|
|
@ -101,8 +101,7 @@ function continueTest(evt) {
|
|||
editor.setSpellcheckUserOverride(true);
|
||||
var inlineSpellChecker = editor.getInlineSpellChecker(true);
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck(elem, function () {
|
||||
var spellchecker = inlineSpellChecker.spellChecker;
|
||||
try {
|
||||
|
|
|
@ -67,8 +67,7 @@ var loadListener = function(evt) {
|
|||
editor.setSpellcheckUserOverride(true);
|
||||
var inlineSpellChecker = editor.getInlineSpellChecker(true);
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck(elem, function () {
|
||||
var spellchecker = inlineSpellChecker.spellChecker;
|
||||
try {
|
||||
|
|
|
@ -29,8 +29,8 @@ var selcon_de;
|
|||
var script;
|
||||
|
||||
var onSpellCheck =
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm").onSpellCheck;
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck;
|
||||
|
||||
/** Test for Bug 1205983 **/
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
|
|
@ -37,8 +37,8 @@ var script;
|
|||
*/
|
||||
|
||||
var onSpellCheck =
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm").onSpellCheck;
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck;
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SimpleTest.waitForFocus(function() {
|
||||
|
|
|
@ -29,8 +29,8 @@ var spellchecker;
|
|||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SimpleTest.waitForFocus(function() {
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm",
|
||||
window);
|
||||
|
||||
var elem = document.getElementById('en-US');
|
||||
elem.focus();
|
||||
|
|
|
@ -21,8 +21,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=338427
|
|||
/** Test for Bug 338427 **/
|
||||
function init() {
|
||||
var onSpellCheck =
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck;
|
||||
var textarea = document.getElementById("editor");
|
||||
var editor = SpecialPowers.wrap(textarea).editor;
|
||||
|
|
|
@ -60,8 +60,7 @@ var loadListener = function(evt) {
|
|||
editor.setSpellcheckUserOverride(true);
|
||||
var inlineSpellChecker = editor.getInlineSpellChecker(true);
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck(elem, function () {
|
||||
var spellchecker = inlineSpellChecker.spellChecker;
|
||||
try {
|
||||
|
|
|
@ -28,8 +28,7 @@ var editor_de;
|
|||
var script;
|
||||
|
||||
var onSpellCheck =
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck;
|
||||
|
||||
/** Test for Bug 697981 **/
|
||||
|
|
|
@ -62,8 +62,7 @@ var loadListener = function(evt) {
|
|||
editor.setSpellcheckUserOverride(true);
|
||||
var inlineSpellChecker = editor.getInlineSpellChecker(true);
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck(elem, function () {
|
||||
var spellchecker = inlineSpellChecker.spellChecker;
|
||||
try {
|
||||
|
|
|
@ -49,8 +49,7 @@ function runTest() {
|
|||
gMisspeltWords = ["errror", "errror"];
|
||||
editDoc().designMode = "on";
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm")
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm")
|
||||
.onSpellCheck(editDoc().documentElement, evalTest);
|
||||
}
|
||||
|
||||
|
|
|
@ -53,8 +53,7 @@ function runTest() {
|
|||
var edit = document.getElementById("edit");
|
||||
edit.focus();
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
onSpellCheck(edit, function () {
|
||||
ok(isSpellingCheckOk(getEditor(), gMisspeltWords),
|
||||
"All misspellings before editing are accounted for.");
|
||||
|
|
|
@ -112,8 +112,7 @@ function runTest()
|
|||
var edit = document.getElementById("edit");
|
||||
edit.focus();
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
onSpellCheck(edit, runOnFocus);
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
function runTest() {
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm",
|
||||
window);
|
||||
var x = document.getElementById("x");
|
||||
x.focus();
|
||||
onSpellCheck(x, function () {
|
||||
|
|
|
@ -38,7 +38,7 @@ EXPORTS += [
|
|||
'nsEditorCID.h',
|
||||
]
|
||||
|
||||
TESTING_JS_MODULES += [
|
||||
EXTRA_JS_MODULES += [
|
||||
'AsyncSpellCheckTestHelper.jsm',
|
||||
]
|
||||
|
||||
|
|
|
@ -67,8 +67,7 @@ function RunTest() {
|
|||
ok(map.exists());
|
||||
hunspell.addDirectory(map);
|
||||
|
||||
Components.utils.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm");
|
||||
Components.utils.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm");
|
||||
onSpellCheck(textbox, function () {
|
||||
|
||||
// test that base and map dictionaries are available
|
||||
|
|
|
@ -13,8 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1170484
|
|||
|
||||
/** Test for Bug 1170484 **/
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
|
||||
SimpleTest.waitForFocus(doTest, window);
|
||||
function doTest() {
|
||||
|
|
|
@ -54,8 +54,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1272623
|
|||
}
|
||||
|
||||
add_task(function* () {
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
|
||||
// Wait for the page to be ready
|
||||
yield new Promise(resolve => SimpleTest.waitForFocus(() => SimpleTest.executeSoon(resolve), window));
|
||||
|
|
|
@ -12,8 +12,7 @@ x
|
|||
var p = document.getElementById('p');
|
||||
var div = p.parentNode;
|
||||
div.focus();
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
onSpellCheck(div, function () {
|
||||
var sel = window.getSelection();
|
||||
sel.removeAllRanges();
|
||||
|
|
|
@ -19,8 +19,7 @@ x
|
|||
sel.addRange(range);
|
||||
p.parentNode.focus();
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
onSpellCheck(p.parentNode, function () {
|
||||
sendKey('DOWN'); // now after "1"
|
||||
sendKey('DOWN'); // now make sure we get to the end
|
||||
|
|
|
@ -12,8 +12,7 @@ x
|
|||
var p = document.getElementById('p');
|
||||
var div = p.parentNode;
|
||||
div.focus();
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
onSpellCheck(div, function () {
|
||||
var sel = window.getSelection();
|
||||
sel.removeAllRanges();
|
||||
|
|
|
@ -19,8 +19,7 @@ x
|
|||
sel.addRange(range);
|
||||
p.parentNode.focus();
|
||||
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
|
||||
onSpellCheck(p.parentNode, function () {
|
||||
sendKey('DOWN'); // now after "1"
|
||||
sendKey('DOWN'); // now below the P element
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
document.body.firstChild.focus();
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm",
|
||||
window);
|
||||
onSpellCheck(document.body.firstChild, function() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
});
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
<script>
|
||||
var div = document.body.firstChild;
|
||||
div.focus();
|
||||
SpecialPowers.Cu.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm", window);
|
||||
SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm",
|
||||
window);
|
||||
onSpellCheck(div, function() {
|
||||
div.innerHTML = 'something missspelled<br>something elsed#';
|
||||
onSpellCheck(div, function() {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
reftest.jar:
|
||||
% content reftest %content/
|
||||
content/reftest-content.js (reftest-content.js)
|
||||
content/AsyncSpellCheckTestHelper.jsm (../../../editor/AsyncSpellCheckTestHelper.jsm)
|
||||
content/httpd.jsm (../../../netwerk/test/httpserver/httpd.js)
|
||||
content/StructuredLog.jsm (../../../testing/modules/StructuredLog.jsm)
|
||||
* content/reftest.jsm (reftest.jsm)
|
||||
|
|
|
@ -21,7 +21,7 @@ const NS_GFXINFO_CONTRACTID = "@mozilla.org/gfx/info;1";
|
|||
const BLANK_URL_FOR_CLEARING = "data:text/html;charset=UTF-8,%3C%21%2D%2DCLEAR%2D%2D%3E";
|
||||
|
||||
CU.import("resource://gre/modules/Timer.jsm");
|
||||
CU.import("resource://reftest/content/AsyncSpellCheckTestHelper.jsm");
|
||||
CU.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm");
|
||||
|
||||
var gBrowserIsRemote;
|
||||
var gIsWebRenderEnabled;
|
||||
|
|
|
@ -40,8 +40,7 @@ function startTests()
|
|||
textbox.focus();
|
||||
testNum = 0;
|
||||
|
||||
Components.utils.import(
|
||||
"resource://testing-common/AsyncSpellCheckTestHelper.jsm");
|
||||
Components.utils.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm");
|
||||
onSpellCheck(textbox, function () {
|
||||
bringUpContextMenu(textbox);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче