touchlist dom api #8225

This commit is contained in:
k-cross 2015-12-19 03:12:14 -08:00
parent f9141ef2db
commit ae8d3f67c8
3 changed files with 7 additions and 13 deletions

View file

@ -1993,6 +1993,11 @@ impl DocumentMethods for Document {
pageY)
}
// https://w3c.github.io/touch-events/#idl-def-document-createtouchlist(touch...)
fn CreateTouchList(&self, touches: &[&Touch]) -> Root<TouchList> {
TouchList::new(&self.window, &touches)
}
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
fn CreateTreeWalker(&self,
root: &Node,

View file

@ -176,6 +176,6 @@ partial interface Document {
double pageY,
double screenX,
double screenY);
// FIXME (#8159):
// TouchList createTouchList(Touch... touches);
TouchList createTouchList(Touch... touches);
};

View file

@ -1,11 +0,0 @@
[create-touch-touchlist.html]
type: testharness
[document.createTouchList exists and correctly creates a TouchList from zero Touch objects]
expected: FAIL
[document.createTouchList exists and correctly creates a TouchList from a single Touch]
expected: FAIL
[document.createTouchList exists and correctly creates a TouchList from two Touch objects]
expected: FAIL