[QuickLook] Make HTTP QuickLook tests work in Apple Internal DumpRenderTree
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Jan 2017 18:14:25 +0000 (18:14 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Jan 2017 18:14:25 +0000 (18:14 +0000)
commit9880d8363cb10cae322490f1a56532144562ed60
tree037518d0732e79ad4d65a75d5af24d173b9389a9
parentfb2141a40b8f0d272cd1c2cbdb0f8965de71d205
[QuickLook] Make HTTP QuickLook tests work in Apple Internal DumpRenderTree
https://bugs.webkit.org/show_bug.cgi?id=167483

Reviewed by Andy Estes.

Write QuickLook tests that tap a hyperlink in terms of UIHelper (in LayoutTests/resources/ui-helper.js)
so that we can run these tests in an Apple Internal build of DumpRenderTree.

* http/tests/quicklook/at-import-stylesheet-blocked.html: Write in terms of UIHelper.
* http/tests/quicklook/base-url-blocked.html: Ditto.
* http/tests/quicklook/cross-origin-iframe-blocked.html: Ditto.
* http/tests/quicklook/document-domain-is-empty-string.html: Ditto.
* http/tests/quicklook/external-stylesheet-blocked.html: Ditto.
* http/tests/quicklook/hide-referer-on-navigation.html: Ditto.
* http/tests/quicklook/resources/tap-at-point-and-notify-done.js: Removed.
* http/tests/quicklook/resources/tap-run-test-hyperlink.js: Added.
(runTest):
* http/tests/quicklook/submit-form-blocked.html: Ditto.
* http/tests/quicklook/top-navigation-blocked.html: Ditto.
* platform/ios-simulator-wk1/TestExpectations: Unskip QuickLook tests as we can now run
them in an Apple Internal build of DumpRenderTree. Note that these test are listed in
file LayoutTests/platform/ios-simulator/TestExpectations so that they are skipped in
WebKit for iOS Simulator built with the public iOS SDK as we need to fix <https://bugs.webkit.org/show_bug.cgi?id=141906>.
* platform/ios-simulator-wk1/http/tests/quicklook/top-navigation-blocked-expected.txt: Added.
For some reason the console message "Unsafe JavaScript attempt to initiate navigation" includes
a line number in DumpRenderTree (why?). This line number is not emitted when the test is run
in WebKitTestRunner. Add platform-specific result for now.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@211373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/quicklook/at-import-stylesheet-blocked.html
LayoutTests/http/tests/quicklook/base-url-blocked.html
LayoutTests/http/tests/quicklook/cross-origin-iframe-blocked.html
LayoutTests/http/tests/quicklook/document-domain-is-empty-string.html
LayoutTests/http/tests/quicklook/external-stylesheet-blocked.html
LayoutTests/http/tests/quicklook/hide-referer-on-navigation.html
LayoutTests/http/tests/quicklook/resources/tap-at-point-and-notify-done.js [deleted file]
LayoutTests/http/tests/quicklook/resources/tap-run-test-hyperlink.js [new file with mode: 0644]
LayoutTests/http/tests/quicklook/rtf-document-domain-is-empty-string.html
LayoutTests/http/tests/quicklook/submit-form-blocked.html
LayoutTests/http/tests/quicklook/top-navigation-blocked.html
LayoutTests/platform/ios-simulator-wk1/TestExpectations
LayoutTests/platform/ios-simulator-wk1/http/tests/quicklook/top-navigation-blocked-expected.txt [new file with mode: 0644]