Auto merge of #10769 - saneyuki:keyevents, r=frewsxcv

Drop support for keyevents in Document::createEvent

Fix #10735

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10769)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-22 15:56:49 -07:00
commit e12fc2a6f7
2 changed files with 1 additions and 6 deletions

View file

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

View file

@ -456,8 +456,3 @@
[createEvent('WHEELEVENT') should be initialized correctly.] [createEvent('WHEELEVENT') should be initialized correctly.]
expected: FAIL expected: FAIL
[Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface "KeyEvents"]
expected: FAIL
bug: https://github.com/servo/servo/issues/10735