mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement the errorevent argument to Document::createEvent
This commit is contained in:
parent
ce54234262
commit
7d24426172
3 changed files with 3 additions and 29 deletions
|
@ -38,6 +38,7 @@ use dom::documentfragment::DocumentFragment;
|
||||||
use dom::documenttype::DocumentType;
|
use dom::documenttype::DocumentType;
|
||||||
use dom::domimplementation::DOMImplementation;
|
use dom::domimplementation::DOMImplementation;
|
||||||
use dom::element::{Element, ElementCreator};
|
use dom::element::{Element, ElementCreator};
|
||||||
|
use dom::errorevent::ErrorEvent;
|
||||||
use dom::event::{Event, EventBubbles, EventCancelable};
|
use dom::event::{Event, EventBubbles, EventCancelable};
|
||||||
use dom::eventtarget::EventTarget;
|
use dom::eventtarget::EventTarget;
|
||||||
use dom::focusevent::FocusEvent;
|
use dom::focusevent::FocusEvent;
|
||||||
|
@ -2188,6 +2189,8 @@ impl DocumentMethods for Document {
|
||||||
Ok(Root::upcast(ProgressEvent::new_uninitialized(&self.window))),
|
Ok(Root::upcast(ProgressEvent::new_uninitialized(&self.window))),
|
||||||
"focusevent" =>
|
"focusevent" =>
|
||||||
Ok(Root::upcast(FocusEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
Ok(Root::upcast(FocusEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
||||||
|
"errorevent" =>
|
||||||
|
Ok(Root::upcast(ErrorEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
||||||
_ =>
|
_ =>
|
||||||
Err(Error::NotSupported),
|
Err(Error::NotSupported),
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,30 +133,6 @@
|
||||||
[createEvent('DRAGEVENT') should be initialized correctly.]
|
[createEvent('DRAGEVENT') should be initialized correctly.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[ErrorEvent should be an alias for ErrorEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10738
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('ErrorEvent') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10738
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[errorevent should be an alias for ErrorEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10738
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('errorevent') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10738
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[ERROREVENT should be an alias for ErrorEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10738
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('ERROREVENT') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10738
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HashChangeEvent should be an alias for HashChangeEvent.]
|
[HashChangeEvent should be an alias for HashChangeEvent.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[Worker_dispatchEvent_ErrorEvent.htm]
|
|
||||||
type: testharness
|
|
||||||
[document.createEvent('ErrorEvent')]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue