Import WPTs for IntersectionObserver
authorajuma@chromium.org <ajuma@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Aug 2018 13:36:51 +0000 (13:36 +0000)
committerajuma@chromium.org <ajuma@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Aug 2018 13:36:51 +0000 (13:36 +0000)
commit4ef85423620143f43276a1a9f482d0c02ebfe162
tree17d9ba47b862b7dc300cff771aa3d52949aedd5c
parentfba2374037558e04374ccd02616820a2ad83f373
Import WPTs for IntersectionObserver
https://bugs.webkit.org/show_bug.cgi?id=188416

Reviewed by Simon Fraser.

LayoutTests/imported/w3c:

* resources/import-expectations.json:
* web-platform-tests/intersection-observer/META.yml: Added.
* web-platform-tests/intersection-observer/bounding-box-expected.txt: Added.
* web-platform-tests/intersection-observer/bounding-box.html: Added.
* web-platform-tests/intersection-observer/client-rect-expected.txt: Added.
* web-platform-tests/intersection-observer/client-rect.html: Added.
* web-platform-tests/intersection-observer/containing-block-expected.txt: Added.
* web-platform-tests/intersection-observer/containing-block.html: Added.
* web-platform-tests/intersection-observer/cross-origin-iframe-expected.txt: Added.
* web-platform-tests/intersection-observer/cross-origin-iframe.html: Added.
* web-platform-tests/intersection-observer/disconnect-expected.txt: Added.
* web-platform-tests/intersection-observer/disconnect.html: Added.
* web-platform-tests/intersection-observer/display-none-expected.txt: Added.
* web-platform-tests/intersection-observer/display-none.html: Added.
* web-platform-tests/intersection-observer/edge-inclusive-intersection-expected.txt: Added.
* web-platform-tests/intersection-observer/edge-inclusive-intersection.html: Added.
* web-platform-tests/intersection-observer/idlharness.window-expected.txt: Added.
* web-platform-tests/intersection-observer/idlharness.window.html: Added.
* web-platform-tests/intersection-observer/idlharness.window.js: Added.
(idl_array.self.observer.new.IntersectionObserver):
* web-platform-tests/intersection-observer/iframe-no-root-expected.txt: Added.
* web-platform-tests/intersection-observer/iframe-no-root.html: Added.
* web-platform-tests/intersection-observer/inline-client-rect-expected.txt: Added.
* web-platform-tests/intersection-observer/inline-client-rect.html: Added.
* web-platform-tests/intersection-observer/isIntersecting-change-events-expected.txt: Added.
* web-platform-tests/intersection-observer/isIntersecting-change-events.html: Added.
* web-platform-tests/intersection-observer/multiple-targets-expected.txt: Added.
* web-platform-tests/intersection-observer/multiple-targets.html: Added.
* web-platform-tests/intersection-observer/multiple-thresholds-expected.txt: Added.
* web-platform-tests/intersection-observer/multiple-thresholds.html: Added.
* web-platform-tests/intersection-observer/observer-attributes-expected.txt: Added.
* web-platform-tests/intersection-observer/observer-attributes.html: Added.
* web-platform-tests/intersection-observer/observer-exceptions-expected.txt: Added.
* web-platform-tests/intersection-observer/observer-exceptions.html: Added.
* web-platform-tests/intersection-observer/observer-in-iframe.html: Added.
* web-platform-tests/intersection-observer/observer-without-js-reference-expected.txt: Added.
* web-platform-tests/intersection-observer/observer-without-js-reference.html: Added.
* web-platform-tests/intersection-observer/remove-element-expected.txt: Added.
* web-platform-tests/intersection-observer/remove-element.html: Added.
* web-platform-tests/intersection-observer/resources/cross-origin-subframe.html: Added.
* web-platform-tests/intersection-observer/resources/iframe-no-root-subframe.html: Added.
* web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js: Added.
(waitForNotification):
(runTestCycle):
(contentBounds):
(borderBoxBounds):
(clientBounds):
(rectArea):
(checkRect):
(checkLastEntry):
(checkJsonEntry):
(checkJsonEntries):
* web-platform-tests/intersection-observer/resources/observer-in-iframe-subframe.html: Added.
* web-platform-tests/intersection-observer/resources/timestamp-subframe.html: Added.
* web-platform-tests/intersection-observer/resources/w3c-import.log: Added.
* web-platform-tests/intersection-observer/root-margin-expected.txt: Added.
* web-platform-tests/intersection-observer/root-margin.html: Added.
* web-platform-tests/intersection-observer/same-document-no-root-expected.txt: Added.
* web-platform-tests/intersection-observer/same-document-no-root.html: Added.
* web-platform-tests/intersection-observer/same-document-root-expected.txt: Added.
* web-platform-tests/intersection-observer/same-document-root.html: Added.
* web-platform-tests/intersection-observer/same-document-zero-size-target-expected.txt: Added.
* web-platform-tests/intersection-observer/same-document-zero-size-target.html: Added.
* web-platform-tests/intersection-observer/shadow-content-expected.txt: Added.
* web-platform-tests/intersection-observer/shadow-content.html: Added.
* web-platform-tests/intersection-observer/text-target-expected.txt: Added.
* web-platform-tests/intersection-observer/text-target.html: Added.
* web-platform-tests/intersection-observer/timestamp-expected.txt: Added.
* web-platform-tests/intersection-observer/timestamp.html: Added.
* web-platform-tests/intersection-observer/unclipped-root-expected.txt: Added.
* web-platform-tests/intersection-observer/unclipped-root.html: Added.
* web-platform-tests/intersection-observer/w3c-import.log: Added.
* web-platform-tests/intersection-observer/zero-area-element-hidden-expected.txt: Added.
* web-platform-tests/intersection-observer/zero-area-element-hidden.html: Added.
* web-platform-tests/intersection-observer/zero-area-element-visible-expected.txt: Added.
* web-platform-tests/intersection-observer/zero-area-element-visible.html: Added.

Source/WebKit:

Make IntersectionObserver an experimental feature, so that it is enabled in
WebKitTestRunner.

* Shared/WebPreferences.yaml:

Source/WebKitLegacy/mac:

* WebView/WebPreferencesPrivate.h:

Tools:

Enable IntersectionObserver in DumpRenderTree.

* DumpRenderTree/mac/DumpRenderTree.mm:
(enableExperimentalFeatures):
(setWebPreferencesForTestOptions):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetPreferencesToConsistentValues):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
73 files changed:
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/resources/import-expectations.json
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/META.yml [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/bounding-box-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/bounding-box.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/client-rect-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/client-rect.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/containing-block-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/containing-block.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-iframe.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/disconnect-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/disconnect.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/display-none-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/display-none.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/edge-inclusive-intersection-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/edge-inclusive-intersection.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/idlharness.window-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/idlharness.window.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/idlharness.window.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/iframe-no-root.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/inline-client-rect-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/inline-client-rect.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/isIntersecting-change-events-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/isIntersecting-change-events.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-targets-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-targets.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-thresholds-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/multiple-thresholds.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-attributes-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-attributes.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-exceptions-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-exceptions.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-in-iframe.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-without-js-reference-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/observer-without-js-reference.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/remove-element-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/remove-element.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/cross-origin-subframe.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/iframe-no-root-subframe.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/observer-in-iframe-subframe.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/timestamp-subframe.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/root-margin-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/root-margin.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-no-root-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-no-root.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-root-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-root.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-zero-size-target-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/same-document-zero-size-target.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/shadow-content-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/shadow-content.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/text-target-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/text-target.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/timestamp-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/timestamp.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/unclipped-root-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/unclipped-root.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/zero-area-element-hidden-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/zero-area-element-hidden.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/zero-area-element-visible-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/zero-area-element-visible.html [new file with mode: 0644]
Source/WebKit/ChangeLog
Source/WebKit/Shared/WebPreferences.yaml
Source/WebKitLegacy/mac/ChangeLog
Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h
Tools/ChangeLog
Tools/DumpRenderTree/mac/DumpRenderTree.mm
Tools/WebKitTestRunner/TestController.cpp