Commit 8746411d authored by Alexander Surkov's avatar Alexander Surkov
Browse files

Bug 746868 - Some subtests in test_doc.html fail with Bug 695480, r=marcoz

parent 45ec8d03
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -64,8 +64,7 @@
      this.preinvoke = function rootContentRemoved_preinvoke()
      {
        // Set up target for hide event before we invoke.
        var text =
          getAccessible(getAccessible(getDocNode(aID)).firstChild).DOMNode;
        var text = getAccessible(getAccessible(getDocNode(aID)).firstChild);
        this.eventSeq[0].target = text;
      }

@@ -304,16 +303,21 @@

    function insertElmUnderDocElmWhileBodyMissed(aID)
    {
      this.docNode = getDocNode(aID);
      this.inputNode = getDocNode(aID).createElement("input");
      this.docNode = null;
      this.inputNode = null;

      function getInputNode()
        { return this.inputNode; }

      this.eventSeq = [
        new invokerChecker(EVENT_SHOW, this.inputNode),
        new invokerChecker(EVENT_REORDER, this.docNode)
        new invokerChecker(EVENT_SHOW, getInputNode.bind(this)),
        new invokerChecker(EVENT_REORDER, getDocNode, aID)
      ];

      this.invoke = function invoke()
      {
        this.docNode = getDocNode(aID);
        this.inputNode = this.docNode.createElement("input");
        this.docNode.documentElement.appendChild(this.inputNode);
      }

@@ -389,6 +393,7 @@
    // Test

    //gA11yEventDumpID = "eventdump"; // debug stuff
    //gA11yEventDumpToConsole = true;

    var gQueue = null;