Implement the svgevents argument to Document::createEvent

This commit is contained in:
SunyDays 2016-04-24 20:51:06 +03:00
parent f1defb446e
commit bb19e7d3ac
2 changed files with 1 additions and 25 deletions

View file

@ -2154,7 +2154,7 @@ impl DocumentMethods for Document {
Ok(Root::upcast(MouseEvent::new_uninitialized(&self.window))), Ok(Root::upcast(MouseEvent::new_uninitialized(&self.window))),
"customevent" => "customevent" =>
Ok(Root::upcast(CustomEvent::new_uninitialized(GlobalRef::Window(&self.window)))), 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))), Ok(Event::new_uninitialized(GlobalRef::Window(&self.window))),
"keyboardevent" | "keyevents" => "keyboardevent" | "keyevents" =>
Ok(Root::upcast(KeyboardEvent::new_uninitialized(&self.window))), Ok(Root::upcast(KeyboardEvent::new_uninitialized(&self.window))),

View file

@ -301,30 +301,6 @@
bug: https://github.com/servo/servo/issues/10736 bug: https://github.com/servo/servo/issues/10736
expected: FAIL 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.] [SVGZoomEvent should be an alias for SVGZoomEvent.]
expected: FAIL expected: FAIL