Skip to content

Commit

Permalink
Tests/LibWeb: Import some CSSOM WPT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenikaliaksandr committed Nov 12, 2024
1 parent b6a5b7e commit 8f7dc47
Show file tree
Hide file tree
Showing 52 changed files with 2,005 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Summary

Harness status: OK

Rerun

Found 2 tests

2 Pass
Details
Result Test Name MessagePass Element getClientRects()
Pass Range getClientRects()
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass getBoundingClientRect
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Summary

Harness status: OK

Rerun

Found 6 tests

3 Pass
3 Fail
Details
Result Test Name MessageFail calls handleEvent method of event listener
Pass looks up handleEvent method on every event dispatch
Pass doesn't look up handleEvent method on callable event listeners
Pass rethrows errors when getting handleEvent
Fail throws if handleEvent is falsy and not callable
Fail throws if handleEvent is thruthy and not callable
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Summary

Harness status: OK

Rerun

Found 8 tests

7 Pass
1 Fail
Details
Result Test Name MessagePass EventListener parameter is optional
Fail listeners are called when <iframe> is resized
Pass listeners are called correct number of times
Pass listeners are called in order they were added
Pass listener that was added twice is called only once
Pass listeners are called in order their MQLs were created
Pass removing listener from one MQL doesn't remove it from all MQLs
Pass MediaQueryList::removeListener removes added listener
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Fail
Details
Result Test Name MessageFail MediaQueryList.changed is correct for all lists in the document even during a change event handler
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Summary

Harness status: OK

Rerun

Found 8 tests

8 Pass
Details
Result Test Name MessagePass dispatchEvent triggers listener added with addListener
Pass listener added with addListener and addEventListener is called once
Pass listener added with addListener and addEventListener (capture) is called twice
Pass removeEventListener removes listener added with addListener
Pass removeEventListener (capture) doesn't remove listener added with addListener
Pass removeListener removes listener added with addEventListener
Pass removeListener doesn't remove listener added with addEventListener (capture)
Pass capturing event listener fires before non-capturing listener at target
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Summary

Harness status: OK

Rerun

Found 7 tests

6 Pass
1 Fail
Details
Result Test Name MessageFail onchange adds listener
Pass onchange removes listener
Pass listeners for "change" type are called
Pass listeners with different type are not called
Pass addEventListener "once" option is respected
Pass removeEventListener removes listener
Pass dispatchEvent works as expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Summary

Harness status: OK

Rerun

Found 6 tests

3 Pass
3 Fail
Details
Result Test Name MessagePass type can be different from "change"
Pass init dictionary default values
Pass init dictionary overrides
Fail argument of addListener
Fail argument of onchange
Fail constructor of "change" event
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Summary

Harness status: OK

Rerun

Found 2 tests

2 Pass
Details
Result Test Name MessagePass getBoundingClientRect() should return a DOMRect where height=bottom-top
Pass getBoundingClientRect() should return a DOMRect where width=right-left
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass getBoundingClientRect on a newly-created Element not yet inserted into the DOM should return an all-zeroes DOMRect
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Summary

Harness status: OK

Rerun

Found 2 tests

2 Fail
Details
Result Test Name MessageFail {Element,Range}.prototype.getBoundingClientRect on SVG <tspan>, Element
Fail {Element,Range}.prototype.getBoundingClientRect on SVG <tspan>, Range
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass CSSOM View - GetClientRects().length is the same regardless source new lines
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass getClientRects on a newly-created Element not yet inserted into the DOM should return an empty DOMRectList
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Fail
Details
Result Test Name MessageFail CSSOM View - 5 - extensions to the Document interface
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass Checking whether dynamic changes to visibility interact correctly with table anonymous boxes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass Checking whether dynamic changes to visibility interact correctly with table anonymous boxes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Summary

Harness status: OK

Rerun

Found 4 tests

4 Pass
Details
Result Test Name MessagePass simple scroll with style: 'margin' and 'overflow: scroll'
Pass simple scroll with style: 'margin' and 'overflow: hidden'
Pass simple scroll with style: 'padding' and 'overflow: scroll'
Pass simple scroll with style: 'padding' and 'overflow: hidden'
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Summary

Harness status: OK

Rerun

Found 8 tests

8 Pass
Details
Result Test Name MessagePass Element scrollTop/Left getter/setter test
Pass Element scroll test (two arguments)
Pass Element scroll test (one argument)
Pass Element scrollTo test (two arguments)
Pass Element scrollTo test (one argument)
Pass Element scrollBy test (two arguments)
Pass Element scrollBy test (one argument)
Pass Element scroll maximum test
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Summary

Harness status: OK

Rerun

Found 6 tests

2 Pass
4 Fail
Details
Result Test Name MessageFail elementsFromPoint for each corner of a simple div
Fail elementsFromPoint for each corner of a div that has a pseudo-element
Fail elementsFromPoint for each corner of a div that is between another div and its pseudo-element
Fail elementsFromPoint for each corner of a div that has a margin
Pass elementsFromPoint for each corner of a div with pointer-events:none
Pass elementsFromPoint for each corner of a div with a 3d transform
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Summary

Harness status: OK

Rerun

Found 28 tests

25 Pass
3 Fail
Details
Result Test Name MessagePass container: 0
Fail container: 1
Pass container: 2
Pass container: 3
Pass container: 4
Fail container: 5
Pass container: 6
Pass container: 7
Pass container: 8
Pass container: 9
Pass container: 10
Pass container: 11
Pass container: 12
Pass container: 13
Pass container: 14
Pass container: 15
Pass container: 16
Pass container: 17
Pass container: 18
Pass container: 19
Pass container: 20
Pass container: 21
Pass container: 22
Pass container: 23
Pass container: 24
Fail container: 25
Pass container: 26
Pass container: 27
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass resize events are not fired on the initial layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass resize events are not fired on the initial layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass scrolling an element with no CSS layout box should have no effect
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Summary

Harness status: OK

Rerun

Found 1 tests

1 Pass
Details
Result Test Name MessagePass CSSOM scrollingElement reflects the propagated scroll to viewport correctly
Loading

0 comments on commit 8f7dc47

Please sign in to comment.