mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Implement Range.detach().
Incidentally, this allows dom/interfaces.html to actually run.
This commit is contained in:
parent
de36dd03a1
commit
017e59b546
3 changed files with 48 additions and 2 deletions
|
@ -37,6 +37,10 @@ impl Range {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> RangeMethods for JSRef<'a, 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 {
|
impl Reflectable for Range {
|
||||||
|
|
|
@ -59,7 +59,7 @@ interface Range {
|
||||||
// void surroundContents(Node newParent);
|
// void surroundContents(Node newParent);
|
||||||
|
|
||||||
// Range cloneRange();
|
// Range cloneRange();
|
||||||
// void detach();
|
void detach();
|
||||||
|
|
||||||
// [Throws]
|
// [Throws]
|
||||||
// boolean isPointInRange(Node node, unsigned long offset);
|
// boolean isPointInRange(Node node, unsigned long offset);
|
||||||
|
|
|
@ -1,3 +1,45 @@
|
||||||
[interfaces.html]
|
[interfaces.html]
|
||||||
type: testharness
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue