New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conformance tests for IntersectionObserver. #4384
Conformance tests for IntersectionObserver. #4384
Conversation
The lint tool found some problems that need to be fixed— https://travis-ci.org/w3c/web-platform-tests/jobs/186189394
|
szager-chromium@ if there's someone who's familiar with the details of the Intersection Observer spec that can review this (or has already reviewed this upstream in blink), then I can push it for you. |
@smaug---- points out we should have tests for moving elements to other documents. Shouldn't block upstreaming these, but would be good to have. |
w3c-test:mirror |
Can we rebase this branch on master so we stability checker results? |
These tests are now available on w3c-test.org |
These tests were reviewed in the chromium repository by foolip@: |
Firefox (nightly channel)Testing web-platform-tests at revision e04b52b All results22 tests ran/intersection-observer/client-rect.html
/intersection-observer/containing-block.html
/intersection-observer/cross-origin-iframe.html
/intersection-observer/disconnect.html
/intersection-observer/display-none.html
/intersection-observer/edge-inclusive-intersection.html
/intersection-observer/iframe-no-root.html
/intersection-observer/multiple-targets.html
/intersection-observer/multiple-thresholds.html
/intersection-observer/observer-attributes.html
/intersection-observer/observer-exceptions.html
/intersection-observer/observer-without-js-reference.html
/intersection-observer/remove-element.html
/intersection-observer/root-margin.html
/intersection-observer/same-document-no-root.html
/intersection-observer/same-document-root.html
/intersection-observer/same-document-zero-size-target.html
/intersection-observer/shadow-content.html
/intersection-observer/timestamp.html
/intersection-observer/unclipped-root.html
/intersection-observer/zero-area-element-hidden.html
/intersection-observer/zero-area-element-visible.html
|
Chrome (unstable channel)Testing web-platform-tests at revision e04b52b Unstable results
All results22 tests ran/intersection-observer/client-rect.html
/intersection-observer/containing-block.html
/intersection-observer/cross-origin-iframe.html
/intersection-observer/disconnect.html
/intersection-observer/display-none.html
/intersection-observer/edge-inclusive-intersection.html
/intersection-observer/iframe-no-root.html
/intersection-observer/multiple-targets.html
/intersection-observer/multiple-thresholds.html
/intersection-observer/observer-attributes.html
/intersection-observer/observer-exceptions.html
/intersection-observer/observer-without-js-reference.html
/intersection-observer/remove-element.html
/intersection-observer/root-margin.html
/intersection-observer/same-document-no-root.html
/intersection-observer/same-document-root.html
/intersection-observer/same-document-zero-size-target.html
/intersection-observer/shadow-content.html
/intersection-observer/timestamp.html
/intersection-observer/unclipped-root.html
/intersection-observer/zero-area-element-hidden.html
/intersection-observer/zero-area-element-visible.html
|
@tobytailor could you take a look at the Firefox results. I assume some of the tests are buggy and Firefox implementation has some bugs too. |
@smaug---- It seems like most or all of the failures stem from the fact that the tests require an 800x600 viewport. That's always the case when running chromium tests, so that assumption is hard-coded into the tests. Is there a way to force that requirement when running them against firefox? |
No, or even if there was that is a bug in the tests and should be fixed there. |
But @jgraham could say more about the setup in Firefox. |
Be aware that the API is still disabled by default in Firefox. It needs to be enabled via dom.IntersectionObserver.enabled flag in about:config. That would explain all the IntersectionObserver not being defined errors. |
I removed requirements of a 800x600 viewport and got all tests to work in Chrome(Canary) and Firefox Nightly (with additional patches tracked in https://bugzilla.mozilla.org/show_bug.cgi?id=1358666). See szager-chromium#1 |
Can this PR be closed because apparently the tests have already made it into master? #6216 (comment) |
Spec: http://wicg.github.io/IntersectionObserver/