Add tests for <area ping>
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Apr 2016 18:03:38 +0000 (18:03 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Apr 2016 18:03:38 +0000 (18:03 +0000)
commit89020b5c6250c81906994c8747087a93b8750c53
tree0d9d26c08e6a75b64857b159e2a9597feefe6ee1
parent7c0fbe3af1eb21806c257115436f468297e80b66
Add tests for <area ping>
https://bugs.webkit.org/show_bug.cgi?id=79438
<rdar://problem/22586699>

Reviewed by Alexey Proskuryakov.

* http/tests/navigation/ping-attribute/anchor-cookie.html: Extracted out code into functions setCookie(),
clearLastPingResultAndRunTest() and clickElement() (defined in utilities.js) so that they can be
used by this test and others. Also added HTML5 doctype declaration since it is unnecessary to run
this test in quirks mode.
* http/tests/navigation/ping-attribute/area-cookie-expected.txt: Added.
* http/tests/navigation/ping-attribute/area-cookie.html: Added.
* http/tests/navigation/ping-attribute/area-cross-origin-expected.txt: Added.
* http/tests/navigation/ping-attribute/area-cross-origin-from-https-expected.txt: Added.
* http/tests/navigation/ping-attribute/area-cross-origin-from-https.html: Added.
* http/tests/navigation/ping-attribute/area-cross-origin.html: Added.
* http/tests/navigation/ping-attribute/area-same-origin-expected.txt: Added.
* http/tests/navigation/ping-attribute/area-same-origin.html: Added.
* http/tests/navigation/ping-attribute/resources/utilities.js: Added.
(setCookie):
(clearLastPingResultAndRunTest.done):
(clearLastPingResultAndRunTest):
(clickElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie.html
LayoutTests/http/tests/navigation/ping-attribute/area-cookie-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/area-cookie.html [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/area-cross-origin-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/area-cross-origin-from-https-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/area-cross-origin-from-https.html [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/area-cross-origin.html [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/area-same-origin-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/area-same-origin.html [new file with mode: 0644]
LayoutTests/http/tests/navigation/ping-attribute/resources/utilities.js [new file with mode: 0644]