[collapse-15.html]
  type: testharness
  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 0, document.documentElement, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.documentElement, 1, document.documentElement, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.head, 1, document.head, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.head, 1, document.head, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [document.body, 0, document.body, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [document.body, 0, document.body, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.head, 1, foreignDoc.head, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignDoc.body, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\], 0, paras[0\], 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\], 0, paras[0\], 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [detachedPara1, 0, detachedPara1, 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 0, paras[1\].firstChild, 8\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[0\].firstChild, 3, paras[3\], 1\] to [xmlDoctype, 0\]]
    expected: FAIL

