From c084436da7868db4ec43e8228f254abde16c5818 Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Sun, 28 Apr 2019 21:53:47 -0400 Subject: Update web-platform-tests to revision 3b0853b41cdb88c713f2ac3636f5b69c14b31d49 --- .../css/CSS2/lists/counter-reset-increment-002.xht | 1 - .../counter-reset-increment-display-contents.html | 19 ---------- .../counter-reset-increment-display-none.html | 19 ---------- ...unter-reset-increment-set-display-contents.html | 21 ++++++++++++ .../counter-reset-increment-set-display-none.html | 21 ++++++++++++ .../css/css-lists/counter-set-001-ref.html | 37 ++++++++++++++++++++ .../css/css-lists/counter-set-001.html | 40 ++++++++++++++++++++++ .../css/css-lists/li-list-item-counter-ref.html | 26 ++++++++++++++ .../css/css-lists/li-list-item-counter.html | 32 +++++++++++++++++ .../css-lists/li-value-counter-reset-001-ref.html | 27 +++++++++++++++ .../css/css-lists/li-value-counter-reset-001.html | 30 ++++++++++++++++ .../multicol-span-all-button-001-ref.html | 29 ++++++++++++++++ .../css-multicol/multicol-span-all-button-001.html | 28 +++++++++++++++ .../multicol-span-all-button-002-ref.html | 38 ++++++++++++++++++++ .../css-multicol/multicol-span-all-button-002.html | 37 ++++++++++++++++++++ .../multicol-span-all-button-003-ref.html | 38 ++++++++++++++++++++ .../css-multicol/multicol-span-all-button-003.html | 37 ++++++++++++++++++++ .../css-scroll-snap/overflowing-snap-areas.html | 15 ++++++++ .../fetch/api/request/request-keepalive.html | 2 +- .../interfaces/mediacapture-streams.idl | 11 ------ .../web-platform-tests/interfaces/user-timing.idl | 6 ++-- 21 files changed, 460 insertions(+), 54 deletions(-) delete mode 100644 tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-contents.html delete mode 100644 tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-none.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-contents.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-none.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/counter-set-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/counter-set-001.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003.html (limited to 'tests/wpt/web-platform-tests') diff --git a/tests/wpt/web-platform-tests/css/CSS2/lists/counter-reset-increment-002.xht b/tests/wpt/web-platform-tests/css/CSS2/lists/counter-reset-increment-002.xht index bf422ba1eb8..8dc50ca60b2 100644 --- a/tests/wpt/web-platform-tests/css/CSS2/lists/counter-reset-increment-002.xht +++ b/tests/wpt/web-platform-tests/css/CSS2/lists/counter-reset-increment-002.xht @@ -29,7 +29,6 @@ li:before { content: counter(list-item) ". "; - counter-increment: list-item; } ]]> diff --git a/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-contents.html b/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-contents.html deleted file mode 100644 index a59576b2534..00000000000 --- a/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-contents.html +++ /dev/null @@ -1,19 +0,0 @@ - - -CSS Lists: counter-reset and counter-increment on display:contents - - - - -

You should see the number 7 below.

-
- - - -
diff --git a/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-none.html b/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-none.html deleted file mode 100644 index 3b344a751c1..00000000000 --- a/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-display-none.html +++ /dev/null @@ -1,19 +0,0 @@ - - -CSS Lists: counter-reset and counter-increment on display:none - - - - -

You should see the number 7 below.

-
- - - -
diff --git a/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-contents.html b/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-contents.html new file mode 100644 index 00000000000..6508df0da15 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-contents.html @@ -0,0 +1,21 @@ + + +CSS Lists: counter-reset, counter-set and counter-increment on display:contents + + + + +

You should see the number 7 below.

+
+ + + + +
diff --git a/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-none.html b/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-none.html new file mode 100644 index 00000000000..510fd8b6482 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/counter-reset-increment-set-display-none.html @@ -0,0 +1,21 @@ + + +CSS Lists: counter-reset, counter-set and counter-increment on display:none + + + + +

You should see the number 7 below.

+
+ + + + +
diff --git a/tests/wpt/web-platform-tests/css/css-lists/counter-set-001-ref.html b/tests/wpt/web-platform-tests/css/css-lists/counter-set-001-ref.html new file mode 100644 index 00000000000..be06ea1dc94 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/counter-set-001-ref.html @@ -0,0 +1,37 @@ + + + + + CSS Lists: basic tests for 'counter-set' + + + + + +7 +0 +7 +8 +2 + + 2 + +3 + + 0 + 2 + + 2.5 + + +3 + + + diff --git a/tests/wpt/web-platform-tests/css/css-lists/counter-set-001.html b/tests/wpt/web-platform-tests/css/css-lists/counter-set-001.html new file mode 100644 index 00000000000..3be4c737c2b --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/counter-set-001.html @@ -0,0 +1,40 @@ + + + + + CSS Lists: basic tests for 'counter-set' + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter-ref.html b/tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter-ref.html new file mode 100644 index 00000000000..8340d6d7f65 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter-ref.html @@ -0,0 +1,26 @@ + + + + + Reference:_CSS Lists: 'counter-increment:list-item' on LI + + + + + +
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter.html b/tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter.html new file mode 100644 index 00000000000..b9a1196cabc --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/li-list-item-counter.html @@ -0,0 +1,32 @@ + + + + + CSS Lists: 'counter-increment:list-item' on LI + + + + + + + +
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+
  1. a
  2. b
  3. c
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001-ref.html b/tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001-ref.html new file mode 100644 index 00000000000..9afb1ecfa05 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001-ref.html @@ -0,0 +1,27 @@ + + + + + Reference:_CSS Lists: 'counter-set:list-item' trumps LI @value + + + + + +
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001.html b/tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001.html new file mode 100644 index 00000000000..0e91c3a03d6 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-lists/li-value-counter-reset-001.html @@ -0,0 +1,30 @@ + + + + + CSS Lists: 'counter-set:list-item' trumps LI @value + + + + + + + +
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+
  1. a
  2. b
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001-ref.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001-ref.html new file mode 100644 index 00000000000..d25ecd08c85 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001-ref.html @@ -0,0 +1,29 @@ + + + + CSS Multi-column Layout Test: Test a multi-column container on button works with a column-span:all child + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001.html new file mode 100644 index 00000000000..14833091c8f --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-001.html @@ -0,0 +1,28 @@ + + + + CSS Multi-column Layout Test: Test a multi-column container on button works with a column-span:all child + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002-ref.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002-ref.html new file mode 100644 index 00000000000..c9ec677335e --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002-ref.html @@ -0,0 +1,38 @@ + + + + CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:absolute boxes + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002.html new file mode 100644 index 00000000000..874cb130dee --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-002.html @@ -0,0 +1,37 @@ + + + + CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:absolute boxes + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003-ref.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003-ref.html new file mode 100644 index 00000000000..337f9c763aa --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003-ref.html @@ -0,0 +1,38 @@ + + + + CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:fixed boxes + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003.html new file mode 100644 index 00000000000..fc15c94a306 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-button-003.html @@ -0,0 +1,37 @@ + + + + CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:fixed boxes + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/overflowing-snap-areas.html b/tests/wpt/web-platform-tests/css/css-scroll-snap/overflowing-snap-areas.html index 8f6698d0206..ee31847fddd 100644 --- a/tests/wpt/web-platform-tests/css/css-scroll-snap/overflowing-snap-areas.html +++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/overflowing-snap-areas.html @@ -63,6 +63,7 @@ div {
+
@@ -143,6 +144,20 @@ test(() => { }, "Snap to current scroll position which is a valid snap position, as the " + "snap area covers snapport on y and there is no subsequent snap positions."); +test(() => { + const maxScrollTop = scroller_y.scrollHeight - scroller_y.clientHeight; + + // Scroll to the bottom edge which is a valid snap position that a large + // target element covers the snapport. + scroller_y.scrollTo(0, maxScrollTop); + assert_equals(scroller_y.scrollTop, maxScrollTop); + + // Scroll to `the bottom edge + 1`. + scroller_y.scrollTo(0, maxScrollTop + 1); + assert_equals(scroller_y.scrollTop, maxScrollTop); +}, "Don't snap back even if scrollTo tries to scroll to positions which are " + + "outside of the scroll range and if a snap target element covers the snaport"); + test(() => { two_axes_scroller.scrollTo(10, 100); assert_equals(two_axes_scroller.scrollLeft, 10); diff --git a/tests/wpt/web-platform-tests/fetch/api/request/request-keepalive.html b/tests/wpt/web-platform-tests/fetch/api/request/request-keepalive.html index c9e1a6acdd3..602fabc4db3 100644 --- a/tests/wpt/web-platform-tests/fetch/api/request/request-keepalive.html +++ b/tests/wpt/web-platform-tests/fetch/api/request/request-keepalive.html @@ -21,7 +21,7 @@ test(() => { test(() => { const init = {method: 'POST', keepalive: true, body: new ReadableStream()}; - assert_throws('TypeError', () => {new Request('/', init)}); + assert_throws(new TypeError(), () => {new Request('/', init)}); }, 'keepalive flag with stream body'); diff --git a/tests/wpt/web-platform-tests/interfaces/mediacapture-streams.idl b/tests/wpt/web-platform-tests/interfaces/mediacapture-streams.idl index 0feea37802d..427aa92dd1f 100644 --- a/tests/wpt/web-platform-tests/interfaces/mediacapture-streams.idl +++ b/tests/wpt/web-platform-tests/interfaces/mediacapture-streams.idl @@ -38,7 +38,6 @@ interface MediaStreamTrack : EventTarget { MediaTrackConstraints getConstraints(); MediaTrackSettings getSettings(); Promise applyConstraints(optional MediaTrackConstraints constraints); - attribute EventHandler onoverconstrained; }; enum MediaStreamTrackState { @@ -149,16 +148,6 @@ dictionary MediaStreamTrackEventInit : EventInit { required MediaStreamTrack track; }; -[Exposed=Window, - Constructor(DOMString type, OverconstrainedErrorEventInit eventInitDict)] -interface OverconstrainedErrorEvent : Event { - readonly attribute OverconstrainedError? error; -}; - -dictionary OverconstrainedErrorEventInit : EventInit { - OverconstrainedError? error = null; -}; - partial interface Navigator { [SameObject, SecureContext] readonly attribute MediaDevices mediaDevices; diff --git a/tests/wpt/web-platform-tests/interfaces/user-timing.idl b/tests/wpt/web-platform-tests/interfaces/user-timing.idl index cd2e1446b89..13ad7f8730d 100644 --- a/tests/wpt/web-platform-tests/interfaces/user-timing.idl +++ b/tests/wpt/web-platform-tests/interfaces/user-timing.idl @@ -4,12 +4,12 @@ // Source: User Timing Level 3 (https://w3c.github.io/user-timing/) dictionary PerformanceMarkOptions { - any detail = null; + any detail; DOMHighResTimeStamp startTime; }; dictionary PerformanceMeasureOptions { - any detail = null; + any detail; (DOMString or DOMHighResTimeStamp) start; DOMHighResTimeStamp duration; (DOMString or DOMHighResTimeStamp) end; @@ -18,7 +18,7 @@ dictionary PerformanceMeasureOptions { partial interface Performance { PerformanceMark mark(DOMString markName, optional PerformanceMarkOptions markOptions); void clearMarks(optional DOMString markName); - PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions)? startOrMeasureOptions, optional DOMString endMark); + PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions) startOrMeasureOptions, optional DOMString endMark); void clearMeasures(optional DOMString measureName); }; -- cgit v1.2.3