Auto merge of #5839 - nox:range, r=Manishearth

The actual boundary points are behind a Rc<_> value to let nodes be able to store weak references to them in the future.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5839)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-04-30 05:59:55 -05:00
commit 15c4372a8b
28 changed files with 13387 additions and 451 deletions

View file

@ -384,84 +384,9 @@
[CharacterData interface: calling after([object Object\],[object Object\]) on document.createComment("abc") with too few arguments must throw TypeError]
expected: FAIL
[CharacterData interface: calling replaceWith([object Object\],[object Object\]) on document.createComment("abc") with too few arguments must throw TypeError]
expected: FAIL
[Range interface object length]
expected: FAIL
[Range interface: attribute startContainer]
expected: FAIL
[Range interface: attribute startOffset]
expected: FAIL
[Range interface: attribute endContainer]
expected: FAIL
[Range interface: attribute endOffset]
expected: FAIL
[Range interface: attribute collapsed]
expected: FAIL
[Range interface: attribute commonAncestorContainer]
expected: FAIL
[Range interface: operation setStart(Node,unsigned long)]
expected: FAIL
[Range interface: operation setEnd(Node,unsigned long)]
expected: FAIL
[Range interface: operation setStartBefore(Node)]
expected: FAIL
[Range interface: operation setStartAfter(Node)]
expected: FAIL
[Range interface: operation setEndBefore(Node)]
expected: FAIL
[Range interface: operation setEndAfter(Node)]
expected: FAIL
[Range interface: operation collapse(boolean)]
expected: FAIL
[Range interface: operation selectNode(Node)]
expected: FAIL
[Range interface: operation selectNodeContents(Node)]
expected: FAIL
[Range interface: constant START_TO_START on interface object]
expected: FAIL
[Range interface: constant START_TO_START on interface prototype object]
expected: FAIL
[Range interface: constant START_TO_END on interface object]
expected: FAIL
[Range interface: constant START_TO_END on interface prototype object]
expected: FAIL
[Range interface: constant END_TO_END on interface object]
expected: FAIL
[Range interface: constant END_TO_END on interface prototype object]
expected: FAIL
[Range interface: constant END_TO_START on interface object]
expected: FAIL
[Range interface: constant END_TO_START on interface prototype object]
expected: FAIL
[Range interface: operation compareBoundaryPoints(unsigned short,Range)]
expected: FAIL
[Range interface: operation deleteContents()]
expected: FAIL
@ -477,111 +402,9 @@
[Range interface: operation surroundContents(Node)]
expected: FAIL
[Range interface: operation cloneRange()]
expected: FAIL
[Range interface: operation isPointInRange(Node,unsigned long)]
expected: FAIL
[Range interface: operation comparePoint(Node,unsigned long)]
expected: FAIL
[Range interface: operation intersectsNode(Node)]
expected: FAIL
[Range interface: stringifier]
expected: FAIL
[Range interface: document.createRange() must inherit property "startContainer" with the proper type (0)]
expected: FAIL
[Range interface: document.createRange() must inherit property "startOffset" with the proper type (1)]
expected: FAIL
[Range interface: document.createRange() must inherit property "endContainer" with the proper type (2)]
expected: FAIL
[Range interface: document.createRange() must inherit property "endOffset" with the proper type (3)]
expected: FAIL
[Range interface: document.createRange() must inherit property "collapsed" with the proper type (4)]
expected: FAIL
[Range interface: document.createRange() must inherit property "commonAncestorContainer" with the proper type (5)]
expected: FAIL
[Range interface: document.createRange() must inherit property "setStart" with the proper type (6)]
expected: FAIL
[Range interface: calling setStart(Node,unsigned long) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "setEnd" with the proper type (7)]
expected: FAIL
[Range interface: calling setEnd(Node,unsigned long) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "setStartBefore" with the proper type (8)]
expected: FAIL
[Range interface: calling setStartBefore(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "setStartAfter" with the proper type (9)]
expected: FAIL
[Range interface: calling setStartAfter(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "setEndBefore" with the proper type (10)]
expected: FAIL
[Range interface: calling setEndBefore(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "setEndAfter" with the proper type (11)]
expected: FAIL
[Range interface: calling setEndAfter(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "collapse" with the proper type (12)]
expected: FAIL
[Range interface: calling collapse(boolean) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "selectNode" with the proper type (13)]
expected: FAIL
[Range interface: calling selectNode(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "selectNodeContents" with the proper type (14)]
expected: FAIL
[Range interface: calling selectNodeContents(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "START_TO_START" with the proper type (15)]
expected: FAIL
[Range interface: document.createRange() must inherit property "START_TO_END" with the proper type (16)]
expected: FAIL
[Range interface: document.createRange() must inherit property "END_TO_END" with the proper type (17)]
expected: FAIL
[Range interface: document.createRange() must inherit property "END_TO_START" with the proper type (18)]
expected: FAIL
[Range interface: document.createRange() must inherit property "compareBoundaryPoints" with the proper type (19)]
expected: FAIL
[Range interface: calling compareBoundaryPoints(unsigned short,Range) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "deleteContents" with the proper type (20)]
expected: FAIL
@ -603,117 +426,6 @@
[Range interface: calling surroundContents(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "cloneRange" with the proper type (25)]
expected: FAIL
[Range interface: document.createRange() must inherit property "isPointInRange" with the proper type (27)]
expected: FAIL
[Range interface: calling isPointInRange(Node,unsigned long) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "comparePoint" with the proper type (28)]
expected: FAIL
[Range interface: calling comparePoint(Node,unsigned long) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: document.createRange() must inherit property "intersectsNode" with the proper type (29)]
expected: FAIL
[Range interface: calling intersectsNode(Node) on document.createRange() with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "startContainer" with the proper type (0)]
expected: FAIL
[Range interface: detachedRange must inherit property "startOffset" with the proper type (1)]
expected: FAIL
[Range interface: detachedRange must inherit property "endContainer" with the proper type (2)]
expected: FAIL
[Range interface: detachedRange must inherit property "endOffset" with the proper type (3)]
expected: FAIL
[Range interface: detachedRange must inherit property "collapsed" with the proper type (4)]
expected: FAIL
[Range interface: detachedRange must inherit property "commonAncestorContainer" with the proper type (5)]
expected: FAIL
[Range interface: detachedRange must inherit property "setStart" with the proper type (6)]
expected: FAIL
[Range interface: calling setStart(Node,unsigned long) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "setEnd" with the proper type (7)]
expected: FAIL
[Range interface: calling setEnd(Node,unsigned long) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "setStartBefore" with the proper type (8)]
expected: FAIL
[Range interface: calling setStartBefore(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "setStartAfter" with the proper type (9)]
expected: FAIL
[Range interface: calling setStartAfter(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "setEndBefore" with the proper type (10)]
expected: FAIL
[Range interface: calling setEndBefore(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "setEndAfter" with the proper type (11)]
expected: FAIL
[Range interface: calling setEndAfter(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "collapse" with the proper type (12)]
expected: FAIL
[Range interface: calling collapse(boolean) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "selectNode" with the proper type (13)]
expected: FAIL
[Range interface: calling selectNode(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "selectNodeContents" with the proper type (14)]
expected: FAIL
[Range interface: calling selectNodeContents(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "START_TO_START" with the proper type (15)]
expected: FAIL
[Range interface: detachedRange must inherit property "START_TO_END" with the proper type (16)]
expected: FAIL
[Range interface: detachedRange must inherit property "END_TO_END" with the proper type (17)]
expected: FAIL
[Range interface: detachedRange must inherit property "END_TO_START" with the proper type (18)]
expected: FAIL
[Range interface: detachedRange must inherit property "compareBoundaryPoints" with the proper type (19)]
expected: FAIL
[Range interface: calling compareBoundaryPoints(unsigned short,Range) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "deleteContents" with the proper type (20)]
expected: FAIL
@ -735,30 +447,6 @@
[Range interface: calling surroundContents(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "cloneRange" with the proper type (25)]
expected: FAIL
[Range interface: detachedRange must inherit property "isPointInRange" with the proper type (27)]
expected: FAIL
[Range interface: calling isPointInRange(Node,unsigned long) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "comparePoint" with the proper type (28)]
expected: FAIL
[Range interface: calling comparePoint(Node,unsigned long) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[Range interface: detachedRange must inherit property "intersectsNode" with the proper type (29)]
expected: FAIL
[Range interface: calling intersectsNode(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[NodeIterator interface object length]
expected: FAIL
[NodeIterator interface: attribute root]
expected: FAIL
@ -846,3 +534,12 @@
[DOMSettableTokenList interface: attribute value]
expected: FAIL
[CharacterData interface: calling replaceWith([object Object\],[object Object\]) on document.createComment("abc") with too few arguments must throw TypeError]
expected: FAIL
[Range interface object length]
expected: FAIL
[NodeIterator interface object length]
expected: FAIL

View file

@ -42,27 +42,15 @@
[characterData Comment: data mutations]
expected: FAIL
[Range (r70) is created]
expected: FAIL
[characterData Range.deleteContents: child and data removal mutation]
expected: FAIL
[Range (r71) is created]
expected: FAIL
[characterData Range.deleteContents: child and data removal mutation (2)]
expected: FAIL
[Range (r80) is created]
expected: FAIL
[characterData Range.extractContents: child and data removal mutation]
expected: FAIL
[Range (r81) is created]
expected: FAIL
[characterData Range.extractContents: child and data removal mutation (2)]
expected: FAIL

View file

@ -69,45 +69,24 @@
[childList Node.removeChild: removal mutation]
expected: FAIL
[Range (r70) is created]
expected: FAIL
[childList Range.deleteContents: child removal mutation]
expected: FAIL
[Range (r71) is created]
expected: FAIL
[childList Range.deleteContents: child and data removal mutation]
expected: FAIL
[Range (r80) is created]
expected: FAIL
[childList Range.extractContents: child removal mutation]
expected: FAIL
[Range (r81) is created]
expected: FAIL
[childList Range.extractContents: child and data removal mutation]
expected: FAIL
[Range (r90) is created]
expected: FAIL
[childList Range.insertNode: child insertion mutation]
expected: FAIL
[Range (r91) is created]
expected: FAIL
[childList Range.insertNode: children insertion mutation]
expected: FAIL
[Range (r100) is created]
expected: FAIL
[childList Range.surroundContents: children removal and addition mutation]
expected: FAIL

View file

@ -1,3 +0,0 @@
[Range-attributes.html]
type: testharness
disabled: Range support

View file

@ -1,3 +1,3 @@
[Range-cloneContents.html]
type: testharness
disabled: Range support
expected: TIMEOUT

View file

@ -1,3 +0,0 @@
[Range-cloneRange.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-collapse.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-commonAncestorContainer-2.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-commonAncestorContainer.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-compareBoundaryPoints.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-comparePoint-2.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-comparePoint.html]
type: testharness
disabled: Range support

View file

@ -1,3 +1,3 @@
[Range-deleteContents.html]
type: testharness
disabled: Range support
expected: TIMEOUT

View file

@ -1,3 +0,0 @@
[Range-detach.html]
type: testharness
disabled: Range support

View file

@ -1,3 +1,3 @@
[Range-extractContents.html]
type: testharness
disabled: Range support
expected: TIMEOUT

View file

@ -1,3 +1,3 @@
[Range-insertNode.html]
type: testharness
disabled: Range support
expected: TIMEOUT

View file

@ -1,3 +0,0 @@
[Range-intersectsNode-binding.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-intersectsNode.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-isPointInRange.html]
type: testharness
disabled: Range support

File diff suppressed because it is too large Load diff

View file

@ -1,3 +0,0 @@
[Range-selectNode.html]
type: testharness
disabled: Range support

View file

@ -1,3 +0,0 @@
[Range-set.html]
type: testharness
disabled: Range support

View file

@ -1,3 +1,3 @@
[Range-surroundContents.html]
type: testharness
disabled: Range support
expected: TIMEOUT