Skip to content
Permalink
Browse files

Drop support for keyevents in Document::createEvent

  • Loading branch information
tetsuharuohzeki committed Apr 21, 2016
1 parent 75d99ee commit b4cf3b802e0d3c9b9602ddd76e7de0507075cbac
@@ -2156,7 +2156,7 @@ impl DocumentMethods for Document {
Ok(Root::upcast(CustomEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
"htmlevents" | "events" | "event" =>
Ok(Event::new_uninitialized(GlobalRef::Window(&self.window))),
"keyboardevent" | "keyevents" =>
"keyboardevent" =>
Ok(Root::upcast(KeyboardEvent::new_uninitialized(&self.window))),
"messageevent" =>
Ok(Root::upcast(MessageEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
@@ -456,8 +456,3 @@

[createEvent('WHEELEVENT') should be initialized correctly.]
expected: FAIL

[Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface "KeyEvents"]
expected: FAIL
bug: https://github.com/servo/servo/issues/10735

0 comments on commit b4cf3b8

Please sign in to comment.
You can’t perform that action at this time.