mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Implement 'do nothing' methods on Window and Document
This commit is contained in:
parent
1384ff5e9f
commit
bf50145fbd
6 changed files with 35 additions and 39 deletions
|
@ -1911,12 +1911,27 @@ impl<'a> DocumentMethods for &'a Document {
|
||||||
collection.r().reflector().get_jsobject().get()
|
collection.r().reflector().get_jsobject().get()
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/#document
|
// https://html.spec.whatwg.org/multipage/#document
|
||||||
fn SupportedPropertyNames(self) -> Vec<DOMString> {
|
fn SupportedPropertyNames(self) -> Vec<DOMString> {
|
||||||
// FIXME: unimplemented (https://github.com/servo/servo/issues/7273)
|
// FIXME: unimplemented (https://github.com/servo/servo/issues/7273)
|
||||||
vec![]
|
vec![]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#dom-document-clear
|
||||||
|
fn Clear(self) {
|
||||||
|
// This method intentionally does nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#dom-document-captureevents
|
||||||
|
fn CaptureEvents(self) {
|
||||||
|
// This method intentionally does nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/#dom-document-releaseevents
|
||||||
|
fn ReleaseEvents(self) {
|
||||||
|
// This method intentionally does nothing
|
||||||
|
}
|
||||||
|
|
||||||
global_event_handlers!();
|
global_event_handlers!();
|
||||||
event_handler!(readystatechange, GetOnreadystatechange, SetOnreadystatechange);
|
event_handler!(readystatechange, GetOnreadystatechange, SetOnreadystatechange);
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,9 +146,9 @@ partial interface Document {
|
||||||
[SameObject]
|
[SameObject]
|
||||||
readonly attribute HTMLCollection applets;
|
readonly attribute HTMLCollection applets;
|
||||||
|
|
||||||
// void clear();
|
void clear();
|
||||||
// void captureEvents();
|
void captureEvents();
|
||||||
// void releaseEvents();
|
void releaseEvents();
|
||||||
|
|
||||||
// Tracking issue for document.all: https://github.com/servo/servo/issues/7396
|
// Tracking issue for document.all: https://github.com/servo/servo/issues/7396
|
||||||
// readonly attribute HTMLAllCollection all;
|
// readonly attribute HTMLAllCollection all;
|
||||||
|
|
|
@ -93,6 +93,12 @@ partial interface Window {
|
||||||
/*[Replaceable]*/ readonly attribute Performance performance;
|
/*[Replaceable]*/ readonly attribute Performance performance;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#Window-partial
|
||||||
|
partial interface Window {
|
||||||
|
void captureEvents();
|
||||||
|
void releaseEvents();
|
||||||
|
};
|
||||||
|
|
||||||
// https://drafts.csswg.org/cssom/#extensions-to-the-window-interface
|
// https://drafts.csswg.org/cssom/#extensions-to-the-window-interface
|
||||||
partial interface Window {
|
partial interface Window {
|
||||||
[NewObject]
|
[NewObject]
|
||||||
|
|
|
@ -542,6 +542,16 @@ impl<'a> WindowMethods for &'a Window {
|
||||||
doc.r().cancel_animation_frame(ident);
|
doc.r().cancel_animation_frame(ident);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#dom-window-captureevents
|
||||||
|
fn CaptureEvents(self) {
|
||||||
|
// This method intentionally does nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#dom-window-releaseevents
|
||||||
|
fn ReleaseEvents(self) {
|
||||||
|
// This method intentionally does nothing
|
||||||
|
}
|
||||||
|
|
||||||
// check-tidy: no specs after this line
|
// check-tidy: no specs after this line
|
||||||
fn Debug(self, message: DOMString) {
|
fn Debug(self, message: DOMString) {
|
||||||
debug!("{}", message);
|
debug!("{}", message);
|
||||||
|
|
|
@ -66,15 +66,6 @@
|
||||||
[Document interface: attribute alinkColor]
|
[Document interface: attribute alinkColor]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: operation clear()]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation captureEvents()]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation releaseEvents()]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute all]
|
[Document interface: attribute all]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1140,15 +1131,6 @@
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "alinkColor" with the proper type (74)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "alinkColor" with the proper type (74)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "clear" with the proper type (78)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "captureEvents" with the proper type (79)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "releaseEvents" with the proper type (80)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "all" with the proper type (81)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "all" with the proper type (81)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
[nothing.html]
|
|
||||||
type: testharness
|
|
||||||
[document.clear]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[document.captureEvents]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[document.releaseEvents]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[window.captureEvents]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[window.releaseEvents]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue