Commit 7ac3bd5b authored by Phil Ringnalda's avatar Phil Ringnalda
Browse files

Backed out 3 changesets (bug 1351074) for reftest harness and...

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)
parent 54547a4a
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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");
+1 −2
Original line number Diff line number Diff line
@@ -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");
+1 −2
Original line number Diff line number Diff line
@@ -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 {
+1 −2
Original line number Diff line number Diff line
@@ -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 {
+2 −2
Original line number Diff line number Diff line
@@ -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();
Loading