mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Auto merge of #8169 - ax3lst:master, r=eefriedman
Implement document.createEvent(TouchEvent) This solves #8160 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8169) <!-- Reviewable:end -->
This commit is contained in:
commit
7c9f4644f3
3 changed files with 8 additions and 25 deletions
|
@ -1564,6 +1564,14 @@ impl DocumentMethods for Document {
|
||||||
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)))),
|
||||||
|
"touchevent" =>
|
||||||
|
Ok(Root::upcast(
|
||||||
|
TouchEvent::new_uninitialized(&self.window,
|
||||||
|
&TouchList::new(&self.window, &[]),
|
||||||
|
&TouchList::new(&self.window, &[]),
|
||||||
|
&TouchList::new(&self.window, &[]),
|
||||||
|
)
|
||||||
|
)),
|
||||||
_ =>
|
_ =>
|
||||||
Err(Error::NotSupported),
|
Err(Error::NotSupported),
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[EventTarget-dispatchEvent.html]
|
|
||||||
type: testharness
|
|
||||||
[If the event's initialized flag is not set, an InvalidStateError must be thrown (TouchEvent).]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
[Document-createEvent.html]
|
|
||||||
type: testharness
|
|
||||||
[TouchEvent should be an alias for TouchEvent.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('TouchEvent') should be initialized correctly.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[touchevent should be an alias for TouchEvent.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('touchevent') should be initialized correctly.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[TOUCHEVENT should be an alias for TouchEvent.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('TOUCHEVENT') should be initialized correctly.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue