[collapse-45.html]
  type: testharness
  [collapse() on [paras[0\], 0, paras[0\].firstChild, 7\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedPara1, 1\]]
    expected: FAIL

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

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

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignTextNode, 36\]]
    expected: FAIL

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

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

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

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

  [collapse() on [testDiv, 2, paras[4\], 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [xmlDoc, 5\]]
    expected: FAIL

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

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

  [collapse() on [testDiv, 2, paras[4\], 1\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedComment, 5\]]
    expected: FAIL

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

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

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 2, paras[4\], 1\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 2, paras[4\], 1\] to [xmlDoctype, 0\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

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

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

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc.body, 1\]]
    expected: FAIL

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

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

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

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

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 1, paras[2\].firstChild, 5\] to [xmlDoctype, 0\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  [collapse() on [testDiv, 0, comment, 5\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [foreignTextNode, 36\]]
    expected: FAIL

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

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

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

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

  [collapse() on [testDiv, 0, comment, 5\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [xmlDoc, 1\]]
    expected: FAIL

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

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

  [collapse() on [testDiv, 0, comment, 5\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [xmlComment, 4\]]
    expected: FAIL

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

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

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

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

  [collapse() on [testDiv, 0, comment, 5\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedComment, 3\]]
    expected: FAIL

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

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

  [collapse() on [testDiv, 0, comment, 5\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [testDiv, 0, comment, 5\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [testDiv, 0, comment, 5\] to [xmlDoctype, 0\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

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

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

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc.body, 1\]]
    expected: FAIL

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

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

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

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

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoc, 5\]]
    expected: FAIL

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

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

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedComment, 5\]]
    expected: FAIL

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

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

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[2\].firstChild, 4, comment, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

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

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

  [collapse() on [paras[3\], 1, comment, 8\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedPara1, 1\]]
    expected: FAIL

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

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

  [collapse() on [paras[3\], 1, comment, 8\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [foreignTextNode, 36\]]
    expected: FAIL

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

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

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

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

  [collapse() on [paras[3\], 1, comment, 8\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [processingInstruction, 9\]]
    expected: FAIL

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

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

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedTextNode, 8\]]
    expected: FAIL

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

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

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

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

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

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [paras[3\], 1, comment, 8\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [paras[3\], 1, comment, 8\] to [xmlDoctype, 0\]]
    expected: FAIL

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc, 1, foreignComment, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc, 1, foreignComment, 2\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [foreignDoc.body, 0, foreignTextNode, 36\] to [xmlDoctype, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 8\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignPara1.firstChild, 9\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.documentElement, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.documentElement, 1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.head, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc.body, 1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedPara1, 1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoc, 1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignComment, 2\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignTextNode, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignTextNode, 36\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, -1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, 1\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoc, 5\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlComment, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlComment, 4\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [processingInstruction, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [processingInstruction, 5\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [processingInstruction, 9\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedTextNode, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedTextNode, 8\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignTextNode, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignTextNode, 8\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedXmlTextNode, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedXmlTextNode, 8\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedProcessingInstruction, 12\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedComment, 3\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedComment, 5\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignComment, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedForeignComment, 4\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [detachedXmlComment, 2\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [docfrag, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [docfrag, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDocfrag, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDocfrag, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [foreignDoctype, 0\]]
    expected: FAIL

  [collapse() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

  [setPosition() on [xmlDoc, 0, xmlDoc, 0\] to [xmlDoctype, 0\]]
    expected: FAIL

