haikuwebkit/LayoutTests/resources
Sam Weinig 9cc977ee4d Allow testing of the final UIView tree on iOS platforms
https://bugs.webkit.org/show_bug.cgi?id=229016

Reviewed by Tim Horton.

Source/WebKit:

Test: remote-layer-tree/ios/uiview-tree-basic.html

* UIProcess/API/ios/WKWebViewPrivateForTestingIOS.h:
* UIProcess/API/ios/WKWebViewTestingIOS.mm:
(allowListedClassToString):
(dumpUIView):
(-[WKWebView _uiViewTreeAsText]):
Add partner SPI called _uiViewTreeAsText that dumps the WKWebView's
UIView tree as constructed via remote layer creation. It currently
dumps some basic properties of each view and uses an allow list of
class names so changes to implementation details in frameworks below
us, like UIKit, don't cause tests to fail.

Tools:

* TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
* TestRunnerShared/UIScriptContext/UIScriptController.h:
(WTR::UIScriptController::uiViewTreeAsText const):
* WebKitTestRunner/ios/UIScriptControllerIOS.h:
* WebKitTestRunner/ios/UIScriptControllerIOS.mm:
(WTR::UIScriptControllerIOS::uiViewTreeAsText const):
Pipe new _uiViewTreeAsText SPI through to UIScriptController, matching the pattern
established by scrollingTreeAsText.

LayoutTests:

* remote-layer-tree: Added.
* remote-layer-tree/ios: Added.
* remote-layer-tree/ios/uiview-tree-basic-expected.txt: Added.
* remote-layer-tree/ios/uiview-tree-basic.html: Added.
Add basic test case excercising UIView tree dumping to ensure
it is working properly.

* resources/ui-helper.js:
(window.UIHelper.getUIViewTree):
Add helper to use get the UIView tree as text.

* TestExpectations:
* platform/ios/TestExpectations:
Ensure these tests are only run on iOS.


Canonical link: https://commits.webkit.org/240481@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-12 20:16:51 +00:00
..
Ahem.otf
Ahem.ttf
Ahem.woff
Ahem_CJK.ttf
SpaceOnly.otf
WebIDLParser.js
accessibility-helper.js
basic-gestures.js
check-layout-th.js
check-layout.js
dump-as-markup.js
gc.js
idlharness.js
image-preload-helper.js
js-test-post-async.js
js-test-post.js
js-test-pre.js (r278618) media/modern-media-controls/overflow-support/chapters.html is timing out since introduction 2021-06-09 22:42:51 +00:00
js-test.js (r278618) media/modern-media-controls/overflow-support/chapters.html is timing out since introduction 2021-06-09 22:42:51 +00:00
magnitude-perf.js
platform-helper.js [GTK] media/muted-video-is-playing-audio.html is timing out 2021-06-24 09:31:16 +00:00
plugin.js
regress-post.js
regress-pre.js
srcset-helper.js
standalone-post.js
standalone-pre.js
test.swf
testharness.css
testharness.js
testharnessreport.js
ui-debugging.js
ui-helper.js Allow testing of the final UIView tree on iOS platforms 2021-08-12 20:16:51 +00:00
wasm-builder.js
window-postmessage-open-close.html