mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1272409 - Part 5: Update test meta. r=dholbert
In idlharness.window.js, ResizeObservation is not an public interface in the current spec, so the test should be updated. In eventloop.html, unfortunately, there are two issues: 1. The test framework will be timeout if there is any `assert_equals()` failed. We should rewrite it. 2. Actually, we only have one failure in this test file: `assert_equals(helper.rafCount, 1, "new loop");` in test0. We fire this event in the next Tick(), but we call the callback of `requestAnimationFrame()` after several Tick()s, so `helper.rafCount` is still 0 in this case. This may be a bug of the test because using `requestAnimationFrame()` cannot reflect the next event loop, or our scheduling of ResizeObserver is not correct. Note: this assert_equal() was added by Google, not by Fariskhi. Differential Revision: https://phabricator.services.mozilla.com/D27619 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
55597e55fc
commit
45ff9ed8a6
1
testing/web-platform/meta/resize-observer/__dir__.ini
Normal file
1
testing/web-platform/meta/resize-observer/__dir__.ini
Normal file
@ -0,0 +1 @@
|
||||
prefs: [layout.css.resizeobserver.enabled:true]
|
@ -1,4 +1,7 @@
|
||||
[eventloop.html]
|
||||
[ResizeObserver implemented]
|
||||
disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1545309
|
||||
[guard]
|
||||
expected: NOTRUN
|
||||
[test0: multiple notifications inside same event loop]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1,127 +1,51 @@
|
||||
[idlharness.window.html]
|
||||
[ResizeObserver interface: operation unobserve(Element)]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: observer must inherit property "observe(Element)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObservation interface object length]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: observer must inherit property "disconnect()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry must be primary interface of entry]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: operation observe(Element)]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of entry]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: operation isActive()]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface object length]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: attribute target]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: attribute target]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: entry must inherit property "target" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: entry must inherit property "contentRect" with the proper type]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: operation disconnect()]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of observer]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: attribute broadcastWidth]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: calling unobserve(Element) on observer with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[Test IDL implementation of ResizeObserver]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver must be primary interface of observer]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: attribute broadcastHeight]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: observer must inherit property "unobserve(Element)" with the proper type]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObserver interface: calling observe(Element) on observer with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: attribute contentRect]
|
||||
expected: FAIL
|
||||
|
||||
[idl_test setup]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: calling observe(Element, ResizeObserverOptions) on observer with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverEntry interface: attribute borderBoxSize]
|
||||
expected: FAIL
|
||||
|
||||
@ -131,21 +55,17 @@
|
||||
[ResizeObserverSize interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: observer must inherit property "observe(Element, ResizeObserverOptions)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObservation interface: attribute lastReportedSize]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObservation interface: attribute observedBox]
|
||||
expected: FAIL
|
||||
bug: https://github.com/w3c/csswg-drafts/issues/3839
|
||||
|
||||
[ResizeObserverSize interface: attribute inlineSize]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserver interface: operation observe(Element, ResizeObserverOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[ResizeObserverSize interface object name]
|
||||
expected: FAIL
|
||||
|
||||
@ -169,4 +89,3 @@
|
||||
|
||||
[ResizeObserverSize interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
[notify.html]
|
||||
expected: ERROR
|
||||
[ResizeObserver implemented]
|
||||
expected: FAIL
|
||||
|
@ -1,4 +0,0 @@
|
||||
[observe.html]
|
||||
[ResizeObserver implemented]
|
||||
expected: FAIL
|
||||
|
@ -1,4 +0,0 @@
|
||||
[svg.html]
|
||||
[ResizeObserver implemented]
|
||||
expected: FAIL
|
||||
|
@ -1,4 +1,4 @@
|
||||
spec: https://wicg.github.io/ResizeObserver/
|
||||
spec: https://drafts.csswg.org/resize-observer/
|
||||
suggested_reviewers:
|
||||
- atotic
|
||||
- dholbert
|
||||
|
Loading…
Reference in New Issue
Block a user