Implement Document#elementFromPoint

This commit is contained in:
Rizky Luthfianto 2016-03-01 02:23:07 +07:00
parent 3701edbf2b
commit 76678bbdae
9 changed files with 60 additions and 88 deletions

View file

@ -1,5 +1,4 @@
[CaretPosition-001.htm]
type: testharness
[getBox]
expected: FAIL
disabled: https://github.com/servo/servo/issues/9805

View file

@ -1,3 +1,5 @@
[elementFromPoint-001.htm]
type: testharness
expected: TIMEOUT
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

View file

@ -1,11 +1,5 @@
[elementFromPosition.htm]
type: testharness
[document.elementFromPoint]
expected: FAIL
[document.elementFromPoint is a Function]
expected: FAIL
[test some point of the element: top left corner]
expected: FAIL
@ -33,18 +27,3 @@
[test some point of the element: botom right corner]
expected: FAIL
[Point (0, 0), return root element(HTML)]
expected: FAIL
[ test negative x ]
expected: FAIL
[ test nagetive y ]
expected: FAIL
[test outside of viewport]
expected: FAIL
[test the top of layer]
expected: FAIL

View file

@ -0,0 +1,20 @@
[elementFromPoint.html]
type: testharness
[co-ordinates larger than the viewport from in iframe]
expected: FAIL
[SVG element at x,y]
expected: FAIL
[transformed element at x,y]
expected: FAIL
[no hit target at x,y]
expected: FAIL
[No viewport available]
expected: FAIL
[Image Maps]
expected: FAIL

View file

@ -21,15 +21,6 @@
[CARRIGAGE RETURN: "2\\r2\\r10\\r10" (rect)]
expected: FAIL
[LINE TABULATION: "2\\v2\\v10\\v10" (rect)]
expected: FAIL
[LINE NEXT: "2…2…10…10" (rect)]
expected: FAIL
[EN QUAD: "2 2 10 10" (rect)]
expected: FAIL
[abc between numbers: "2a2b20c20,2,10,10" (rect)]
expected: FAIL
@ -48,15 +39,6 @@
[leading SEMICOLON: ";2,2,10,10" (rect)]
expected: FAIL
[trailing COMMA: "2,2,10," (rect)]
expected: FAIL
[trailing SPACE: "2,2,10 " (rect)]
expected: FAIL
[trailing SEMICOLON: "2,2,10;" (rect)]
expected: FAIL
[PERCENT: "2%,2%,10%,10%" (rect)]
expected: FAIL
@ -78,18 +60,6 @@
[non-ascii garbage: "“2,2,10,10\\"" (rect)]
expected: FAIL
[URL garbage with number: "2,2,10ls/spain/holidays/regions/10/Canary+Islands/Canary+Islands.html" (rect)]
expected: FAIL
[consecutive COMMAs: "2,,10,10" (rect)]
expected: FAIL
[consecutive SPACEs: "2 10,10" (rect)]
expected: FAIL
[consecutive SEMICOLONs: "2;;10,10" (rect)]
expected: FAIL
[several consecutive separators: ",,2;,;2,;,10 \\t\\r\\n10;;" (rect)]
expected: FAIL

View file

@ -1,17 +1,8 @@
[area-processing.html]
type: testharness
[too few numbers: "2,2,10" (rect)]
expected: FAIL
[negative: "-10,-10,10,10" (rect)]
expected: FAIL
[empty string: "" (rect)]
expected: FAIL
[omitted coords: null (rect)]
expected: FAIL
[first > third: "10,2,2,10" (rect)]
expected: FAIL
@ -24,18 +15,6 @@
[negative: "-10,-10,-10,-10" (default)]
expected: FAIL
[too few numbers: "20,40" (circle)]
expected: FAIL
[negative radius: "20,40,-10" (circle)]
expected: FAIL
[zero radius: "20,40,0" (circle)]
expected: FAIL
[too few numbers: "100,100,120,100,100" (poly)]
expected: FAIL
[one too many numbers: "100,100,120,100,100,120,300" (poly)]
expected: FAIL

View file

@ -3,12 +3,6 @@
[missing value default: "2,2,10,10" (null)]
expected: FAIL
[missing value default: "20,40,10" (null)]
expected: FAIL
[missing value default: null (null)]
expected: FAIL
[invalid value default: "2,2,10,10" (foobar invalid)]
expected: FAIL
@ -33,12 +27,6 @@
[simple: "20,40,10" (CIRC)]
expected: FAIL
[LATIN CAPITAL LETTER I WITH DOT ABOVE: "20,40,10" (CİRCLE)]
expected: FAIL
[LATIN SMALL LETTER DOTLESS I: "20,40,10" (cırcle)]
expected: FAIL
[simple: "100,100,120,100,100,120" (poly)]
expected: FAIL