Implement Range.detach().

Incidentally, this allows dom/interfaces.html to actually run.
This commit is contained in:
Ms2ger 2014-08-09 12:00:05 +02:00
parent de36dd03a1
commit 017e59b546
3 changed files with 48 additions and 2 deletions

View file

@ -37,6 +37,10 @@ impl Range {
}
impl<'a> RangeMethods for JSRef<'a, Range> {
/// http://dom.spec.whatwg.org/#dom-range-detach
fn Detach(&self) {
// This method intentionally left blank.
}
}
impl Reflectable for Range {

View file

@ -59,7 +59,7 @@ interface Range {
// void surroundContents(Node newParent);
// Range cloneRange();
// void detach();
void detach();
// [Throws]
// boolean isPointInRange(Node node, unsigned long offset);

View file

@ -1,3 +1,45 @@
[interfaces.html]
type: testharness
expected: ERROR
expected: TIMEOUT
[DOMException exception: existence and properties of exception interface prototype object]
expected: FAIL
[DOMException exception: existence and properties of exception interface prototype object\'s "name" property]
expected: FAIL
[DOMError interface: existence and properties of interface object]
expected: FAIL
[DOMError interface object length]
expected: FAIL
[DOMError interface: existence and properties of interface prototype object]
expected: FAIL
[DOMError interface: existence and properties of interface prototype object\'s "constructor" property]
expected: FAIL
[DOMError interface: attribute name]
expected: FAIL
[DOMError interface: attribute message]
expected: FAIL
[Event interface object length]
expected: FAIL
[Event interface: document.createEvent("Event") must have own property "isTrusted"]
expected: FAIL
[Event interface: new Event("foo") must have own property "isTrusted"]
expected: FAIL
[CustomEvent interface object length]
expected: FAIL
[Event interface: new CustomEvent("foo") must have own property "isTrusted"]
expected: FAIL
[EventTarget interface: existence and properties of interface object]
expected: TIMEOUT