diff options
author | SunyDays <sunnyddayss@gmail.com> | 2016-04-24 20:51:06 +0300 |
---|---|---|
committer | SunyDays <sunnyddayss@gmail.com> | 2016-04-24 20:51:06 +0300 |
commit | bb19e7d3ac695e198500dff0157d67a00ee7ba55 (patch) | |
tree | 0dfc873346fb2759dd2404c782c4e2c4710a7f4d | |
parent | f1defb446e8cd4e36231acae77f11c72c74964b0 (diff) | |
download | servo-bb19e7d3ac695e198500dff0157d67a00ee7ba55.tar.gz servo-bb19e7d3ac695e198500dff0157d67a00ee7ba55.zip |
Implement the svgevents argument to Document::createEvent
-rw-r--r-- | components/script/dom/document.rs | 2 | ||||
-rw-r--r-- | tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini | 24 |
2 files changed, 1 insertions, 25 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 12eab0cf4e2..c2ae9675f4d 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -2154,7 +2154,7 @@ impl DocumentMethods for Document { Ok(Root::upcast(MouseEvent::new_uninitialized(&self.window))), "customevent" => Ok(Root::upcast(CustomEvent::new_uninitialized(GlobalRef::Window(&self.window)))), - "htmlevents" | "events" | "event" => + "htmlevents" | "events" | "event" | "svgevents" => Ok(Event::new_uninitialized(GlobalRef::Window(&self.window))), "keyboardevent" | "keyevents" => Ok(Root::upcast(KeyboardEvent::new_uninitialized(&self.window))), diff --git a/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini b/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini index a81231ac8d9..6ea0d3c0cc6 100644 --- a/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini +++ b/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini @@ -301,30 +301,6 @@ bug: https://github.com/servo/servo/issues/10736 expected: FAIL - [SVGEvents should be an alias for Event.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [createEvent('SVGEvents') should be initialized correctly.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [svgevents should be an alias for Event.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [createEvent('svgevents') should be initialized correctly.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [SVGEVENTS should be an alias for Event.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [createEvent('SVGEVENTS') should be initialized correctly.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - [SVGZoomEvent should be an alias for SVGZoomEvent.] expected: FAIL |