From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tests/XMLHttpRequest/FormData-append.html | 99 +++++++ testing/web-platform/tests/XMLHttpRequest/OWNERS | 12 + .../XMLHttpRequest-withCredentials.any.js | 40 +++ .../tests/XMLHttpRequest/abort-after-receive.htm | 42 +++ .../tests/XMLHttpRequest/abort-after-send.htm | 46 +++ .../tests/XMLHttpRequest/abort-after-stop.htm | 32 ++ .../tests/XMLHttpRequest/abort-after-timeout.htm | 58 ++++ .../tests/XMLHttpRequest/abort-during-done.htm | 32 ++ .../tests/XMLHttpRequest/abort-during-open.htm | 14 + .../tests/XMLHttpRequest/abort-during-open.js | 14 + .../XMLHttpRequest/abort-during-open.worker.js | 3 + .../tests/XMLHttpRequest/abort-during-unsent.htm | 26 ++ .../tests/XMLHttpRequest/abort-during-upload.htm | 30 ++ .../tests/XMLHttpRequest/abort-event-abort.htm | 45 +++ .../tests/XMLHttpRequest/abort-event-listeners.htm | 25 ++ .../tests/XMLHttpRequest/abort-event-loadend.htm | 44 +++ .../tests/XMLHttpRequest/abort-event-order.htm | 52 ++++ .../XMLHttpRequest/abort-upload-event-abort.htm | 47 +++ .../XMLHttpRequest/abort-upload-event-loadend.htm | 47 +++ .../XMLHttpRequest/anonymous-mode-unsupported.htm | 40 +++ .../web-platform/tests/XMLHttpRequest/data-uri.htm | 53 ++++ .../tests/XMLHttpRequest/event-abort.htm | 29 ++ .../XMLHttpRequest/event-error-order.sub.html | 35 +++ .../tests/XMLHttpRequest/event-error.sub.html | 25 ++ .../tests/XMLHttpRequest/event-load.htm | 32 ++ .../tests/XMLHttpRequest/event-loadend.htm | 35 +++ .../tests/XMLHttpRequest/event-loadstart.htm | 31 ++ .../tests/XMLHttpRequest/event-progress.htm | 29 ++ .../XMLHttpRequest/event-readystate-sync-open.htm | 33 +++ .../event-readystatechange-loaded.htm | 38 +++ .../tests/XMLHttpRequest/event-timeout-order.htm | 37 +++ .../tests/XMLHttpRequest/event-timeout.htm | 34 +++ .../event-upload-progress-crossorigin.sub.htm | 27 ++ .../tests/XMLHttpRequest/event-upload-progress.htm | 26 ++ .../web-platform/tests/XMLHttpRequest/folder.txt | 1 + .../tests/XMLHttpRequest/formdata-blob.htm | 46 +++ .../tests/XMLHttpRequest/formdata-delete.htm | 65 +++++ .../tests/XMLHttpRequest/formdata-foreach.html | 59 ++++ .../tests/XMLHttpRequest/formdata-get.htm | 60 ++++ .../tests/XMLHttpRequest/formdata-has.htm | 42 +++ .../tests/XMLHttpRequest/formdata-set.htm | 98 +++++++ .../web-platform/tests/XMLHttpRequest/formdata.htm | 43 +++ .../getallresponseheaders-cookies.htm | 38 +++ .../getallresponseheaders-status.htm | 38 +++ .../getresponseheader-case-insensitive.htm | 34 +++ .../getresponseheader-chunked-trailer.htm | 32 ++ .../getresponseheader-cookies-and-more.htm | 36 +++ .../getresponseheader-error-state.htm | 36 +++ .../getresponseheader-server-date.htm | 29 ++ .../getresponseheader-special-characters.htm | 34 +++ .../getresponseheader-unsent-opened-state.htm | 32 ++ .../XMLHttpRequest/headers-normalize-response.htm | 42 +++ .../tests/XMLHttpRequest/interfaces.html | 171 +++++++++++ .../tests/XMLHttpRequest/open-after-abort.htm | 35 +++ .../XMLHttpRequest/open-after-setrequestheader.htm | 33 +++ .../tests/XMLHttpRequest/open-during-abort.htm | 32 ++ .../tests/XMLHttpRequest/open-method-bogus.htm | 28 ++ .../open-method-case-insensitive.htm | 29 ++ .../XMLHttpRequest/open-method-case-sensitive.htm | 31 ++ .../tests/XMLHttpRequest/open-method-insecure.htm | 29 ++ .../open-method-responsetype-set-sync.htm | 32 ++ .../tests/XMLHttpRequest/open-open-send.htm | 33 +++ .../tests/XMLHttpRequest/open-open-sync-send.htm | 31 ++ .../tests/XMLHttpRequest/open-referer.htm | 20 ++ .../tests/XMLHttpRequest/open-send-open.htm | 33 +++ .../tests/XMLHttpRequest/open-sync-open-send.htm | 41 +++ .../XMLHttpRequest/open-url-about-blank-window.htm | 23 ++ .../open-url-base-inserted-after-open.htm | 24 ++ .../XMLHttpRequest/open-url-base-inserted.htm | 24 ++ .../tests/XMLHttpRequest/open-url-base.htm | 22 ++ .../tests/XMLHttpRequest/open-url-bogus.htm | 25 ++ .../tests/XMLHttpRequest/open-url-encoding.htm | 27 ++ .../tests/XMLHttpRequest/open-url-fragment.htm | 38 +++ .../open-url-javascript-window-2.htm | 19 ++ .../XMLHttpRequest/open-url-javascript-window.htm | 28 ++ .../XMLHttpRequest/open-url-multi-window-2.htm | 24 ++ .../XMLHttpRequest/open-url-multi-window-3.htm | 24 ++ .../XMLHttpRequest/open-url-multi-window-4.htm | 50 ++++ .../XMLHttpRequest/open-url-multi-window-5.htm | 30 ++ .../XMLHttpRequest/open-url-multi-window-6.htm | 41 +++ .../tests/XMLHttpRequest/open-url-multi-window.htm | 31 ++ .../XMLHttpRequest/open-url-worker-origin.htm | 43 +++ .../XMLHttpRequest/open-url-worker-simple.htm | 25 ++ .../open-user-password-non-same-origin.htm | 25 ++ .../XMLHttpRequest/overridemimetype-done-state.htm | 26 ++ ...etype-headers-received-state-force-shiftjis.htm | 34 +++ .../overridemimetype-invalid-mime-type.htm | 25 ++ .../overridemimetype-loading-state.htm | 32 ++ .../overridemimetype-open-state-force-utf-8.htm | 27 ++ .../overridemimetype-open-state-force-xml.htm | 34 +++ ...verridemimetype-unsent-state-force-shiftjis.htm | 27 ++ .../preserve-ua-header-on-redirect.htm | 43 +++ .../progress-events-response-data-gzip.htm | 83 ++++++ .../web-platform/tests/XMLHttpRequest/readme.txt | 31 ++ .../XMLHttpRequest/resources/accept-language.py | 4 + .../tests/XMLHttpRequest/resources/accept.py | 3 + .../tests/XMLHttpRequest/resources/auth1/auth.py | 10 + .../tests/XMLHttpRequest/resources/auth2/auth.py | 10 + .../XMLHttpRequest/resources/auth2/corsenabled.py | 20 ++ .../tests/XMLHttpRequest/resources/auth3/auth.py | 10 + .../tests/XMLHttpRequest/resources/auth4/auth.py | 10 + .../tests/XMLHttpRequest/resources/auth5/auth.py | 13 + .../tests/XMLHttpRequest/resources/auth6/auth.py | 13 + .../XMLHttpRequest/resources/auth7/corsenabled.py | 20 ++ .../resources/auth8/corsenabled-no-authorize.py | 20 ++ .../tests/XMLHttpRequest/resources/auth9/auth.py | 10 + .../XMLHttpRequest/resources/authentication.py | 32 ++ .../tests/XMLHttpRequest/resources/chunked.py | 18 ++ .../tests/XMLHttpRequest/resources/conditional.py | 17 ++ .../tests/XMLHttpRequest/resources/content.py | 18 ++ .../tests/XMLHttpRequest/resources/corsenabled.py | 20 ++ .../tests/XMLHttpRequest/resources/delay.py | 6 + .../tests/XMLHttpRequest/resources/echo-method.py | 6 + .../resources/empty-div-utf8-html.py | 5 + .../tests/XMLHttpRequest/resources/folder.txt | 1 + .../tests/XMLHttpRequest/resources/form.py | 2 + .../tests/XMLHttpRequest/resources/gzip.py | 23 ++ .../tests/XMLHttpRequest/resources/headers.py | 12 + .../tests/XMLHttpRequest/resources/image.gif | Bin 0 -> 167145 bytes .../XMLHttpRequest/resources/img-utf8-html.py | 5 + .../tests/XMLHttpRequest/resources/img.jpg | Bin 0 -> 108761 bytes .../XMLHttpRequest/resources/infinite-redirects.py | 24 ++ .../tests/XMLHttpRequest/resources/init.htm | 20 ++ .../XMLHttpRequest/resources/inspect-headers.py | 22 ++ .../XMLHttpRequest/resources/invalid-utf8-html.py | 5 + .../XMLHttpRequest/resources/last-modified.py | 7 + .../XMLHttpRequest/resources/nocors/folder.txt | 1 + .../XMLHttpRequest/resources/parse-headers.py | 10 + .../tests/XMLHttpRequest/resources/redirect.py | 8 + .../tests/XMLHttpRequest/resources/requri.py | 6 + ...send-after-setting-document-domain-window-1.htm | 23 ++ ...send-after-setting-document-domain-window-2.htm | 20 ++ ...-after-setting-document-domain-window-helper.js | 29 ++ .../XMLHttpRequest/resources/shift-jis-html.py | 6 + .../tests/XMLHttpRequest/resources/status.py | 9 + .../tests/XMLHttpRequest/resources/trickle.py | 15 + .../tests/XMLHttpRequest/resources/upload.py | 15 + .../tests/XMLHttpRequest/resources/utf16.txt | Bin 0 -> 18 bytes .../tests/XMLHttpRequest/resources/well-formed.xml | 4 + .../tests/XMLHttpRequest/resources/win-1252-xml.py | 5 + .../resources/workerxhr-origin-referrer.js | 34 +++ .../XMLHttpRequest/resources/workerxhr-simple.js | 10 + .../resources/xmlhttprequest-event-order.js | 83 ++++++ .../resources/xmlhttprequest-timeout-aborted.js | 15 + .../xmlhttprequest-timeout-abortedonmain.js | 8 + .../resources/xmlhttprequest-timeout-overrides.js | 11 + .../xmlhttprequest-timeout-overridesexpires.js | 12 + .../resources/xmlhttprequest-timeout-runner.js | 21 ++ .../resources/xmlhttprequest-timeout-simple.js | 6 + .../resources/xmlhttprequest-timeout-synconmain.js | 2 + .../xmlhttprequest-timeout-synconworker.js | 11 + .../resources/xmlhttprequest-timeout-twice.js | 6 + .../resources/xmlhttprequest-timeout.js | 325 +++++++++++++++++++++ .../tests/XMLHttpRequest/resources/zlib.py | 19 ++ .../XMLHttpRequest/response-data-arraybuffer.htm | 54 ++++ .../tests/XMLHttpRequest/response-data-blob.htm | 55 ++++ .../tests/XMLHttpRequest/response-data-deflate.htm | 42 +++ .../tests/XMLHttpRequest/response-data-gzip.htm | 42 +++ .../XMLHttpRequest/response-data-progress.htm | 51 ++++ .../response-invalid-responsetype.htm | 38 +++ .../tests/XMLHttpRequest/response-json.htm | 61 ++++ .../tests/XMLHttpRequest/response-method.htm | 21 ++ .../tests/XMLHttpRequest/responseText-status.html | 33 +++ .../tests/XMLHttpRequest/responsetext-decoding.htm | 52 ++++ .../tests/XMLHttpRequest/responsetype.html | 96 ++++++ .../tests/XMLHttpRequest/responseurl.html | 37 +++ .../tests/XMLHttpRequest/responsexml-basic.htm | 33 +++ .../responsexml-document-properties.htm | 74 +++++ .../tests/XMLHttpRequest/responsexml-get-twice.htm | 66 +++++ .../XMLHttpRequest/responsexml-media-type.htm | 41 +++ .../responsexml-non-document-types.htm | 45 +++ .../XMLHttpRequest/responsexml-non-well-formed.htm | 30 ++ .../XMLHttpRequest/security-consideration.sub.html | 36 +++ .../tests/XMLHttpRequest/send-accept-language.htm | 27 ++ .../tests/XMLHttpRequest/send-accept.htm | 24 ++ .../send-after-setting-document-domain.htm | 39 +++ .../send-authentication-basic-cors-not-enabled.htm | 28 ++ .../send-authentication-basic-cors.htm | 35 +++ .../send-authentication-basic-repeat-no-args.htm | 33 +++ ...cation-basic-setrequestheader-and-arguments.htm | 36 +++ ...ion-basic-setrequestheader-existing-session.htm | 53 ++++ .../send-authentication-basic-setrequestheader.htm | 36 +++ .../XMLHttpRequest/send-authentication-basic.htm | 27 ++ ...nd-authentication-competing-names-passwords.htm | 54 ++++ ...-authentication-cors-basic-setrequestheader.htm | 38 +++ ...uthentication-cors-setrequestheader-no-cred.htm | 61 ++++ ...send-authentication-existing-session-manual.htm | 33 +++ .../send-authentication-prompt-2-manual.htm | 25 ++ .../send-authentication-prompt-manual.htm | 25 ++ .../send-blob-with-no-mime-type.html | 51 ++++ .../tests/XMLHttpRequest/send-conditional.htm | 34 +++ .../XMLHttpRequest/send-content-type-charset.htm | 83 ++++++ .../XMLHttpRequest/send-content-type-string.htm | 26 ++ .../tests/XMLHttpRequest/send-data-arraybuffer.htm | 48 +++ .../tests/XMLHttpRequest/send-data-blob.htm | 62 ++++ .../tests/XMLHttpRequest/send-data-es-object.htm | 61 ++++ .../tests/XMLHttpRequest/send-data-formdata.htm | 43 +++ .../send-data-unexpected-tostring.htm | 57 ++++ .../XMLHttpRequest/send-entity-body-basic.htm | 28 ++ .../send-entity-body-document-bogus.htm | 26 ++ .../XMLHttpRequest/send-entity-body-document.htm | 61 ++++ .../XMLHttpRequest/send-entity-body-empty.htm | 26 ++ .../send-entity-body-get-head-async.htm | 39 +++ .../XMLHttpRequest/send-entity-body-get-head.htm | 36 +++ .../tests/XMLHttpRequest/send-entity-body-none.htm | 40 +++ .../send-network-error-async-events.sub.htm | 58 ++++ .../send-network-error-sync-events.sub.htm | 39 +++ .../send-no-response-event-loadend.htm | 48 +++ .../send-no-response-event-loadstart.htm | 48 +++ .../send-no-response-event-order.htm | 45 +++ .../XMLHttpRequest/send-non-same-origin.sub.htm | 33 +++ .../tests/XMLHttpRequest/send-receive-utf16.htm | 37 +++ .../XMLHttpRequest/send-redirect-bogus-sync.htm | 26 ++ .../tests/XMLHttpRequest/send-redirect-bogus.htm | 36 +++ .../XMLHttpRequest/send-redirect-infinite-sync.htm | 24 ++ .../XMLHttpRequest/send-redirect-infinite.htm | 35 +++ .../XMLHttpRequest/send-redirect-no-location.htm | 40 +++ .../XMLHttpRequest/send-redirect-post-upload.htm | 124 ++++++++ .../tests/XMLHttpRequest/send-redirect-to-cors.htm | 68 +++++ .../XMLHttpRequest/send-redirect-to-non-cors.htm | 37 +++ .../tests/XMLHttpRequest/send-redirect.htm | 36 +++ .../XMLHttpRequest/send-response-event-order.htm | 40 +++ .../send-response-upload-event-loadend.htm | 40 +++ .../send-response-upload-event-loadstart.htm | 39 +++ .../send-response-upload-event-progress.htm | 39 +++ .../tests/XMLHttpRequest/send-send.htm | 13 + .../web-platform/tests/XMLHttpRequest/send-send.js | 7 + .../tests/XMLHttpRequest/send-send.worker.js | 3 + .../XMLHttpRequest/send-sync-blocks-async.htm | 66 +++++ .../send-sync-no-response-event-load.htm | 38 +++ .../send-sync-no-response-event-loadend.htm | 38 +++ .../send-sync-no-response-event-order.htm | 51 ++++ .../send-sync-response-event-order.htm | 35 +++ .../tests/XMLHttpRequest/send-sync-timeout.htm | 30 ++ .../tests/XMLHttpRequest/send-timeout-events.htm | 76 +++++ .../tests/XMLHttpRequest/send-usp.html | 10 + .../web-platform/tests/XMLHttpRequest/send-usp.js | 48 +++ .../tests/XMLHttpRequest/send-usp.worker.js | 4 + .../XMLHttpRequest/setrequestheader-after-send.htm | 27 ++ .../setrequestheader-allow-empty-value.htm | 26 ++ .../setrequestheader-allow-whitespace-in-value.htm | 27 ++ .../setrequestheader-before-open.htm | 18 ++ .../XMLHttpRequest/setrequestheader-bogus-name.htm | 59 ++++ .../setrequestheader-bogus-value.htm | 37 +++ .../setrequestheader-case-insensitive.htm | 23 ++ .../setrequestheader-content-type.htm | 237 +++++++++++++++ .../setrequestheader-header-allowed.htm | 33 +++ .../setrequestheader-header-forbidden.htm | 42 +++ .../setrequestheader-open-setrequestheader.htm | 60 ++++ .../tests/XMLHttpRequest/status-async.htm | 62 ++++ .../tests/XMLHttpRequest/status-basic.htm | 51 ++++ .../tests/XMLHttpRequest/status-error.htm | 60 ++++ .../tests/XMLHttpRequest/timeout-cors-async.htm | 43 +++ .../tests/XMLHttpRequest/timeout-sync.htm | 25 ++ .../tests/XMLHttpRequest/xmlhttprequest-basic.htm | 45 +++ .../XMLHttpRequest/xmlhttprequest-eventtarget.htm | 48 +++ .../xmlhttprequest-network-error-sync.htm | 34 +++ .../xmlhttprequest-network-error.htm | 39 +++ ...prequest-sync-block-defer-scripts-subframe.html | 17 ++ .../xmlhttprequest-sync-block-defer-scripts.html | 15 + .../xmlhttprequest-sync-block-scripts.html | 22 ++ ...equest-sync-not-hang-scriptloader-subframe.html | 17 ++ .../xmlhttprequest-sync-not-hang-scriptloader.html | 16 + .../xmlhttprequest-timeout-aborted.html | 26 ++ .../xmlhttprequest-timeout-abortedonmain.html | 23 ++ .../xmlhttprequest-timeout-overrides.html | 23 ++ .../xmlhttprequest-timeout-overridesexpires.html | 23 ++ .../xmlhttprequest-timeout-simple.html | 24 ++ .../xmlhttprequest-timeout-synconmain.html | 21 ++ .../xmlhttprequest-timeout-twice.html | 25 ++ .../xmlhttprequest-timeout-worker-aborted.html | 28 ++ .../xmlhttprequest-timeout-worker-overrides.html | 24 ++ ...ttprequest-timeout-worker-overridesexpires.html | 25 ++ .../xmlhttprequest-timeout-worker-simple.html | 26 ++ ...xmlhttprequest-timeout-worker-synconworker.html | 25 ++ .../xmlhttprequest-timeout-worker-twice.html | 26 ++ .../tests/XMLHttpRequest/xmlhttprequest-unsent.htm | 36 +++ 277 files changed, 9491 insertions(+) create mode 100644 testing/web-platform/tests/XMLHttpRequest/FormData-append.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/OWNERS create mode 100644 testing/web-platform/tests/XMLHttpRequest/XMLHttpRequest-withCredentials.any.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-after-receive.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-after-send.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-after-stop.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-after-timeout.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-during-done.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-during-open.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-during-open.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-during-open.worker.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-during-unsent.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-during-upload.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-event-abort.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-event-listeners.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-event-loadend.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-event-order.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-upload-event-abort.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/abort-upload-event-loadend.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/anonymous-mode-unsupported.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/data-uri.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-abort.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-error-order.sub.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-error.sub.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-load.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-loadend.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-loadstart.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-progress.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-readystate-sync-open.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-readystatechange-loaded.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-timeout-order.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-timeout.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-upload-progress-crossorigin.sub.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/event-upload-progress.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/folder.txt create mode 100644 testing/web-platform/tests/XMLHttpRequest/formdata-blob.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/formdata-foreach.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/formdata-get.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/formdata-has.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/formdata-set.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/formdata.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-cookies.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-status.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getresponseheader-case-insensitive.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getresponseheader-chunked-trailer.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getresponseheader-cookies-and-more.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getresponseheader-error-state.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getresponseheader-server-date.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getresponseheader-special-characters.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/getresponseheader-unsent-opened-state.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/headers-normalize-response.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/interfaces.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-after-abort.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-after-setrequestheader.htm create mode 100755 testing/web-platform/tests/XMLHttpRequest/open-during-abort.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-method-bogus.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-method-case-insensitive.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-method-case-sensitive.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-method-insecure.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-method-responsetype-set-sync.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-open-send.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-open-sync-send.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-referer.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-send-open.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-sync-open-send.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-about-blank-window.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted-after-open.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-base.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-bogus.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-encoding.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-fragment.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window-2.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-2.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-3.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-4.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-5.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-6.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-multi-window.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-worker-origin.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-url-worker-simple.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/open-user-password-non-same-origin.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/overridemimetype-done-state.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/overridemimetype-headers-received-state-force-shiftjis.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/overridemimetype-invalid-mime-type.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/overridemimetype-loading-state.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-utf-8.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/overridemimetype-unsent-state-force-shiftjis.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/preserve-ua-header-on-redirect.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/progress-events-response-data-gzip.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/readme.txt create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/accept-language.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/accept.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth1/auth.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth2/auth.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth2/corsenabled.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth3/auth.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth4/auth.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth5/auth.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth6/auth.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth7/corsenabled.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth8/corsenabled-no-authorize.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/auth9/auth.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/authentication.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/chunked.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/conditional.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/content.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/corsenabled.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/delay.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/echo-method.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/empty-div-utf8-html.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/folder.txt create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/form.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/gzip.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/headers.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/image.gif create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/img-utf8-html.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/img.jpg create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/infinite-redirects.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/init.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/inspect-headers.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/invalid-utf8-html.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/last-modified.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/nocors/folder.txt create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/parse-headers.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/redirect.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/requri.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/send-after-setting-document-domain-window-1.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/send-after-setting-document-domain-window-2.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/send-after-setting-document-domain-window-helper.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/shift-jis-html.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/status.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/trickle.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/upload.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/utf16.txt create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/well-formed.xml create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/win-1252-xml.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/workerxhr-origin-referrer.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/workerxhr-simple.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-event-order.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-aborted.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-abortedonmain.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-overrides.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-overridesexpires.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-runner.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/xmlhttprequest-timeout.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/resources/zlib.py create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-data-arraybuffer.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-data-blob.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-data-deflate.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-data-gzip.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-data-progress.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-invalid-responsetype.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-json.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/response-method.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/responseText-status.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsetext-decoding.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsetype.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/responseurl.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsexml-basic.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsexml-get-twice.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsexml-media-type.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsexml-non-document-types.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/responsexml-non-well-formed.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/security-consideration.sub.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-accept-language.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-accept.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-after-setting-document-domain.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-basic-cors-not-enabled.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-basic-cors.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-basic-setrequestheader-and-arguments.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-basic.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-cors-basic-setrequestheader.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-cors-setrequestheader-no-cred.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-existing-session-manual.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-prompt-2-manual.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-authentication-prompt-manual.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-blob-with-no-mime-type.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-conditional.htm create mode 100755 testing/web-platform/tests/XMLHttpRequest/send-content-type-charset.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-content-type-string.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-data-arraybuffer.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-data-blob.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-data-es-object.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-data-formdata.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-data-unexpected-tostring.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-entity-body-basic.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-entity-body-document-bogus.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-entity-body-document.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-entity-body-empty.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head-async.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-entity-body-none.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-network-error-async-events.sub.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-network-error-sync-events.sub.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadend.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadstart.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-no-response-event-order.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-non-same-origin.sub.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-receive-utf16.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus-sync.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite-sync.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-no-location.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-post-upload.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-to-cors.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect-to-non-cors.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-redirect.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-response-event-order.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadend.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadstart.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-progress.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-send.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-send.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-send.worker.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-sync-blocks-async.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-load.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-loadend.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-order.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-sync-response-event-order.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-sync-timeout.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-timeout-events.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-usp.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-usp.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/send-usp.worker.js create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-after-send.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-empty-value.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-whitespace-in-value.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-before-open.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-name.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-value.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-case-insensitive.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-content-type.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-allowed.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-forbidden.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/setrequestheader-open-setrequestheader.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/status-async.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/status-basic.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/status-error.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/timeout-cors-async.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/timeout-sync.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-basic.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-eventtarget.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error-sync.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error.htm create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts-subframe.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-scripts.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader-subframe.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html create mode 100644 testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-unsent.htm (limited to 'testing/web-platform/tests/XMLHttpRequest') diff --git a/testing/web-platform/tests/XMLHttpRequest/FormData-append.html b/testing/web-platform/tests/XMLHttpRequest/FormData-append.html new file mode 100644 index 000000000..bf6c66d0f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/FormData-append.html @@ -0,0 +1,99 @@ + + +FormData.append + + + +
+
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/OWNERS b/testing/web-platform/tests/XMLHttpRequest/OWNERS new file mode 100644 index 000000000..5962543a2 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/OWNERS @@ -0,0 +1,12 @@ +@emilio +@hallvors +@kangxu +@caitp +@Manishearth +@plehegar +@jungkees +@ibelem +@mathiasbynens +@ronkorving +@jdm +@Ms2ger diff --git a/testing/web-platform/tests/XMLHttpRequest/XMLHttpRequest-withCredentials.any.js b/testing/web-platform/tests/XMLHttpRequest/XMLHttpRequest-withCredentials.any.js new file mode 100644 index 000000000..96e95c90f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/XMLHttpRequest-withCredentials.any.js @@ -0,0 +1,40 @@ +test(function() { + var client = new XMLHttpRequest() + assert_false(client.withCredentials, "withCredentials defaults to false") + client.withCredentials = true + assert_true(client.withCredentials, "is true after setting") +}, "default value is false, set value is true") + +test(function() { + var client = new XMLHttpRequest() + client.open("GET", "resources/delay.py?ms=1000", true) + client.withCredentials = true + assert_true(client.withCredentials, "set in OPEN state") +}, "can also be set in OPEN state") + +test(function() { + var client = new XMLHttpRequest() + client.open("GET", "resources/delay.py?ms=1000", false) + client.withCredentials = true + assert_true(client.withCredentials, "set in OPEN state") +}, "setting on synchronous XHR") + +async_test(function() { + var client = new XMLHttpRequest() + client.open("GET", "resources/delay.py?ms=1000") + client.send() + assert_throws("InvalidStateError", function() { client.withCredentials = true }) + client.onreadystatechange = this.step_func(function() { + assert_throws("InvalidStateError", function() { client.withCredentials = true }) + if (client.readyState === 4) { + this.done() + } + }) +}, "setting withCredentials when not in UNSENT, OPENED state (asynchronous)") + +test(function() { + var client = new XMLHttpRequest() + client.open("GET", "resources/delay.py?ms=1000", false) + client.send(); + assert_throws("InvalidStateError", function() { client.withCredentials = true }) +}, "setting withCredentials when in DONE state (synchronous)") diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-after-receive.htm b/testing/web-platform/tests/XMLHttpRequest/abort-after-receive.htm new file mode 100644 index 000000000..bd97b6835 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-after-receive.htm @@ -0,0 +1,42 @@ + + + + XMLHttpRequest: abort() after successful receive should not fire "abort" event + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-after-send.htm b/testing/web-platform/tests/XMLHttpRequest/abort-after-send.htm new file mode 100644 index 000000000..523a0d616 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-after-send.htm @@ -0,0 +1,46 @@ + + + + XMLHttpRequest: abort() after send() + + + + + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-after-stop.htm b/testing/web-platform/tests/XMLHttpRequest/abort-after-stop.htm new file mode 100644 index 000000000..87e9ebcd8 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-after-stop.htm @@ -0,0 +1,32 @@ + + + + XMLHttpRequest: abort event should fire when stop() method is used + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-after-timeout.htm b/testing/web-platform/tests/XMLHttpRequest/abort-after-timeout.htm new file mode 100644 index 000000000..e8e84b1a3 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-after-timeout.htm @@ -0,0 +1,58 @@ + + + + XMLHttpRequest: abort() after a timeout should not fire "abort" event + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-during-done.htm b/testing/web-platform/tests/XMLHttpRequest/abort-during-done.htm new file mode 100644 index 000000000..a8b604fe3 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-during-done.htm @@ -0,0 +1,32 @@ + + + + XMLHttpRequest: abort() during DONE + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-during-open.htm b/testing/web-platform/tests/XMLHttpRequest/abort-during-open.htm new file mode 100644 index 000000000..dde94f239 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-during-open.htm @@ -0,0 +1,14 @@ + + + + XMLHttpRequest: abort() during OPEN + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-during-open.js b/testing/web-platform/tests/XMLHttpRequest/abort-during-open.js new file mode 100644 index 000000000..4ddb84fe8 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-during-open.js @@ -0,0 +1,14 @@ +var test = async_test() +test.step(function() { + var client = new XMLHttpRequest() + client.open("GET", "...") + client.onreadystatechange = function() { + test.step(function() { + assert_unreached() + }) + } + client.abort() + assert_equals(client.readyState, 0) + assert_throws("InvalidStateError", function() { client.send("test") }, "calling send() after abort()") +}) +test.done() diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-during-open.worker.js b/testing/web-platform/tests/XMLHttpRequest/abort-during-open.worker.js new file mode 100644 index 000000000..ffb687d0c --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-during-open.worker.js @@ -0,0 +1,3 @@ +importScripts("/resources/testharness.js"); +importScripts("abort-during-open.js"); +done(); diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-during-unsent.htm b/testing/web-platform/tests/XMLHttpRequest/abort-during-unsent.htm new file mode 100644 index 000000000..bc2f5cab5 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-during-unsent.htm @@ -0,0 +1,26 @@ + + + + XMLHttpRequest: abort() during UNSENT + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-during-upload.htm b/testing/web-platform/tests/XMLHttpRequest/abort-during-upload.htm new file mode 100644 index 000000000..9fbc8b9bb --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-during-upload.htm @@ -0,0 +1,30 @@ + + + + XMLHttpRequest: abort() while sending data + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-event-abort.htm b/testing/web-platform/tests/XMLHttpRequest/abort-event-abort.htm new file mode 100644 index 000000000..2382241ca --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-event-abort.htm @@ -0,0 +1,45 @@ + + + + + + + XMLHttpRequest: The abort() method: do not fire abort event in OPENED state when send() flag is unset. send() throws after abort(). + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-event-listeners.htm b/testing/web-platform/tests/XMLHttpRequest/abort-event-listeners.htm new file mode 100644 index 000000000..1c50ed394 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-event-listeners.htm @@ -0,0 +1,25 @@ + + + + XMLHttpRequest: abort() should not reset event listeners + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-event-loadend.htm b/testing/web-platform/tests/XMLHttpRequest/abort-event-loadend.htm new file mode 100644 index 000000000..8b8dfdaa4 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-event-loadend.htm @@ -0,0 +1,44 @@ + + + + + + + XMLHttpRequest: The abort() method: Fire a progress event named loadend + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-event-order.htm b/testing/web-platform/tests/XMLHttpRequest/abort-event-order.htm new file mode 100644 index 000000000..f05c20628 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-event-order.htm @@ -0,0 +1,52 @@ + + + + + + + + XMLHttpRequest: The abort() method: abort and loadend events + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-upload-event-abort.htm b/testing/web-platform/tests/XMLHttpRequest/abort-upload-event-abort.htm new file mode 100644 index 000000000..1d045448b --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-upload-event-abort.htm @@ -0,0 +1,47 @@ + + + + + + + XMLHttpRequest: The abort() method: Fire a progress event named abort on the XMLHttpRequestUpload object + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/abort-upload-event-loadend.htm b/testing/web-platform/tests/XMLHttpRequest/abort-upload-event-loadend.htm new file mode 100644 index 000000000..5b10b6530 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/abort-upload-event-loadend.htm @@ -0,0 +1,47 @@ + + + + + + + XMLHttpRequest: The abort() method: Fire a progress event named loadend on the XMLHttpRequestUpload object + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/anonymous-mode-unsupported.htm b/testing/web-platform/tests/XMLHttpRequest/anonymous-mode-unsupported.htm new file mode 100644 index 000000000..9cacf61b7 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/anonymous-mode-unsupported.htm @@ -0,0 +1,40 @@ + + + + XMLHttpRequest: anonymous mode unsupported + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/data-uri.htm b/testing/web-platform/tests/XMLHttpRequest/data-uri.htm new file mode 100644 index 000000000..8c2970583 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/data-uri.htm @@ -0,0 +1,53 @@ + + +XMLHttpRequest: data uri + + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-abort.htm b/testing/web-platform/tests/XMLHttpRequest/event-abort.htm new file mode 100644 index 000000000..ce8d937d7 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-abort.htm @@ -0,0 +1,29 @@ + + + + XMLHttpRequest: abort event + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-error-order.sub.html b/testing/web-platform/tests/XMLHttpRequest/event-error-order.sub.html new file mode 100644 index 000000000..9be8b4a1b --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-error-order.sub.html @@ -0,0 +1,35 @@ + + + + + + + + XMLHttpRequest: event - error (order of events) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-error.sub.html b/testing/web-platform/tests/XMLHttpRequest/event-error.sub.html new file mode 100644 index 000000000..3171c49d7 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-error.sub.html @@ -0,0 +1,25 @@ + + +XMLHttpRequest Test: event - error + + + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-load.htm b/testing/web-platform/tests/XMLHttpRequest/event-load.htm new file mode 100644 index 000000000..9098eebc7 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-load.htm @@ -0,0 +1,32 @@ + + +XMLHttpRequest: The send() method: Fire an event named load (synchronous flag is unset) + + + + + + +
+ + \ No newline at end of file diff --git a/testing/web-platform/tests/XMLHttpRequest/event-loadend.htm b/testing/web-platform/tests/XMLHttpRequest/event-loadend.htm new file mode 100644 index 000000000..b0c621317 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-loadend.htm @@ -0,0 +1,35 @@ + + + + XMLHttpRequest: loadend event + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-loadstart.htm b/testing/web-platform/tests/XMLHttpRequest/event-loadstart.htm new file mode 100644 index 000000000..514900303 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-loadstart.htm @@ -0,0 +1,31 @@ + + + + XMLHttpRequest: loadstart event + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-progress.htm b/testing/web-platform/tests/XMLHttpRequest/event-progress.htm new file mode 100644 index 000000000..f2f40b85b --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-progress.htm @@ -0,0 +1,29 @@ + + + +XMLHttpRequest: The send() method: Fire a progress event named progress (synchronous flag is unset) + + + + + + + +
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/event-readystate-sync-open.htm b/testing/web-platform/tests/XMLHttpRequest/event-readystate-sync-open.htm new file mode 100644 index 000000000..ae9697ea1 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-readystate-sync-open.htm @@ -0,0 +1,33 @@ + + + + XMLHttpRequest: open() call fires sync readystate event + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-readystatechange-loaded.htm b/testing/web-platform/tests/XMLHttpRequest/event-readystatechange-loaded.htm new file mode 100644 index 000000000..4368f8c9a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-readystatechange-loaded.htm @@ -0,0 +1,38 @@ + + + + + XMLHttpRequest: the LOADING state change should only happen once + + + + + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-timeout-order.htm b/testing/web-platform/tests/XMLHttpRequest/event-timeout-order.htm new file mode 100644 index 000000000..7376ca2f8 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-timeout-order.htm @@ -0,0 +1,37 @@ + + + + + + + + XMLHttpRequest: event - timeout (order of events) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-timeout.htm b/testing/web-platform/tests/XMLHttpRequest/event-timeout.htm new file mode 100644 index 000000000..3368efc4b --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-timeout.htm @@ -0,0 +1,34 @@ + + + + XMLHttpRequest: timeout event + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-upload-progress-crossorigin.sub.htm b/testing/web-platform/tests/XMLHttpRequest/event-upload-progress-crossorigin.sub.htm new file mode 100644 index 000000000..66461689c --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-upload-progress-crossorigin.sub.htm @@ -0,0 +1,27 @@ + + + +XMLHttpRequest: upload progress event for cross-origin requests + + + + + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/event-upload-progress.htm b/testing/web-platform/tests/XMLHttpRequest/event-upload-progress.htm new file mode 100644 index 000000000..98c76cc3f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/event-upload-progress.htm @@ -0,0 +1,26 @@ + + + +XMLHttpRequest: upload progress event + + + + + + + +
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/folder.txt b/testing/web-platform/tests/XMLHttpRequest/folder.txt new file mode 100644 index 000000000..bf1a1fdef --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/folder.txt @@ -0,0 +1 @@ +top diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata-blob.htm b/testing/web-platform/tests/XMLHttpRequest/formdata-blob.htm new file mode 100644 index 000000000..5efef7b61 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/formdata-blob.htm @@ -0,0 +1,46 @@ + + + +XMLHttpRequest: upload formdata with blob + + + + + + + +
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm b/testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm new file mode 100644 index 000000000..283b44b5a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm @@ -0,0 +1,65 @@ + + + +FormData: delete + + + + +
+ + + +
+
+ + +
+
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata-foreach.html b/testing/web-platform/tests/XMLHttpRequest/formdata-foreach.html new file mode 100644 index 000000000..9b10367ae --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/formdata-foreach.html @@ -0,0 +1,59 @@ + + + +FormData: foreach + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata-get.htm b/testing/web-platform/tests/XMLHttpRequest/formdata-get.htm new file mode 100644 index 000000000..b71a72fa9 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/formdata-get.htm @@ -0,0 +1,60 @@ + + + +FormData: get and getAll + + + + +
+ + + +
+
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata-has.htm b/testing/web-platform/tests/XMLHttpRequest/formdata-has.htm new file mode 100644 index 000000000..ecd22b4e3 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/formdata-has.htm @@ -0,0 +1,42 @@ + + + +FormData: has + + + + +
+ + + +
+
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata-set.htm b/testing/web-platform/tests/XMLHttpRequest/formdata-set.htm new file mode 100644 index 000000000..f030caa78 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/formdata-set.htm @@ -0,0 +1,98 @@ + + +FormData: set + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata.htm b/testing/web-platform/tests/XMLHttpRequest/formdata.htm new file mode 100644 index 000000000..e0d0a4e1d --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/formdata.htm @@ -0,0 +1,43 @@ + + + +XMLHttpRequest: upload formdata + + + + + + +
+ + +
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-cookies.htm b/testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-cookies.htm new file mode 100644 index 000000000..2cd809818 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-cookies.htm @@ -0,0 +1,38 @@ + + + + XMLHttpRequest: getAllResponseHeaders() excludes cookies + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-status.htm b/testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-status.htm new file mode 100644 index 000000000..ec1aa9a80 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getallresponseheaders-status.htm @@ -0,0 +1,38 @@ + + + + XMLHttpRequest: getAllResponseHeaders() excludes status + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getresponseheader-case-insensitive.htm b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-case-insensitive.htm new file mode 100644 index 000000000..8e0537edf --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-case-insensitive.htm @@ -0,0 +1,34 @@ + + + + XMLHttpRequest: getResponseHeader() case-insensitive matching + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getresponseheader-chunked-trailer.htm b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-chunked-trailer.htm new file mode 100644 index 000000000..3cbdb9c06 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-chunked-trailer.htm @@ -0,0 +1,32 @@ + + + + XMLHttpRequest: getResponseHeader() and HTTP trailer + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getresponseheader-cookies-and-more.htm b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-cookies-and-more.htm new file mode 100644 index 000000000..053fe441f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-cookies-and-more.htm @@ -0,0 +1,36 @@ + + + + XMLHttpRequest: getResponseHeader() custom/non-existent headers and cookies + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getresponseheader-error-state.htm b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-error-state.htm new file mode 100644 index 000000000..c9695fdee --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-error-state.htm @@ -0,0 +1,36 @@ + + + + XMLHttpRequest: getResponseHeader() in error state (failing cross-origin test) + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getresponseheader-server-date.htm b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-server-date.htm new file mode 100644 index 000000000..409bc3503 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-server-date.htm @@ -0,0 +1,29 @@ + + + + XMLHttpRequest: getResponseHeader() server and date + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getresponseheader-special-characters.htm b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-special-characters.htm new file mode 100644 index 000000000..980f8481c --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-special-characters.htm @@ -0,0 +1,34 @@ + + + + XMLHttpRequest: getResponseHeader() funny characters + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/getresponseheader-unsent-opened-state.htm b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-unsent-opened-state.htm new file mode 100644 index 000000000..e3bc2720f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/getresponseheader-unsent-opened-state.htm @@ -0,0 +1,32 @@ + + + + XMLHttpRequest: getResponseHeader() in unsent, opened states + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/headers-normalize-response.htm b/testing/web-platform/tests/XMLHttpRequest/headers-normalize-response.htm new file mode 100644 index 000000000..466b0d977 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/headers-normalize-response.htm @@ -0,0 +1,42 @@ + + +Whitespace and null in header values + + + + +

Whitespace and null in response header values

+ +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/interfaces.html b/testing/web-platform/tests/XMLHttpRequest/interfaces.html new file mode 100644 index 000000000..96de3c00f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/interfaces.html @@ -0,0 +1,171 @@ + + +XMLHttpRequest IDL tests + + + + + +

XMLHttpRequest IDL tests

+
+ + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-after-abort.htm b/testing/web-platform/tests/XMLHttpRequest/open-after-abort.htm new file mode 100644 index 000000000..ca8a4e1e6 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-after-abort.htm @@ -0,0 +1,35 @@ + + + + XMLHttpRequest: open() after abort() + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-after-setrequestheader.htm b/testing/web-platform/tests/XMLHttpRequest/open-after-setrequestheader.htm new file mode 100644 index 000000000..525edbfc1 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-after-setrequestheader.htm @@ -0,0 +1,33 @@ + + + + XMLHttpRequest: open() after setRequestHeader() + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-during-abort.htm b/testing/web-platform/tests/XMLHttpRequest/open-during-abort.htm new file mode 100755 index 000000000..1d01415d5 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-during-abort.htm @@ -0,0 +1,32 @@ + + + + XMLHttpRequest: open() during abort() + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-method-bogus.htm b/testing/web-platform/tests/XMLHttpRequest/open-method-bogus.htm new file mode 100644 index 000000000..263e7b6db --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-method-bogus.htm @@ -0,0 +1,28 @@ + + + + XMLHttpRequest: open() - bogus methods + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-method-case-insensitive.htm b/testing/web-platform/tests/XMLHttpRequest/open-method-case-insensitive.htm new file mode 100644 index 000000000..103381745 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-method-case-insensitive.htm @@ -0,0 +1,29 @@ + + + + XMLHttpRequest: open() - case-insensitive methods test + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-method-case-sensitive.htm b/testing/web-platform/tests/XMLHttpRequest/open-method-case-sensitive.htm new file mode 100644 index 000000000..270e32d67 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-method-case-sensitive.htm @@ -0,0 +1,31 @@ + + + + XMLHttpRequest: open() - case-sensitive methods test + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-method-insecure.htm b/testing/web-platform/tests/XMLHttpRequest/open-method-insecure.htm new file mode 100644 index 000000000..1a77ff3ec --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-method-insecure.htm @@ -0,0 +1,29 @@ + + + + XMLHttpRequest: open() - "insecure" methods + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-method-responsetype-set-sync.htm b/testing/web-platform/tests/XMLHttpRequest/open-method-responsetype-set-sync.htm new file mode 100644 index 000000000..0b4d81404 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-method-responsetype-set-sync.htm @@ -0,0 +1,32 @@ + + + + XMLHttpRequest: open() sync request not allowed if responseType is set + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-open-send.htm b/testing/web-platform/tests/XMLHttpRequest/open-open-send.htm new file mode 100644 index 000000000..ebc1801ab --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-open-send.htm @@ -0,0 +1,33 @@ + + + + XMLHttpRequest: open() - open() - send() + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-open-sync-send.htm b/testing/web-platform/tests/XMLHttpRequest/open-open-sync-send.htm new file mode 100644 index 000000000..b0badfd8a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-open-sync-send.htm @@ -0,0 +1,31 @@ + + + + XMLHttpRequest: open() - open() (sync) - send() + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-referer.htm b/testing/web-platform/tests/XMLHttpRequest/open-referer.htm new file mode 100644 index 000000000..4ffdfe0c5 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-referer.htm @@ -0,0 +1,20 @@ + + + + XMLHttpRequest: open() - value of Referer header + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-send-open.htm b/testing/web-platform/tests/XMLHttpRequest/open-send-open.htm new file mode 100644 index 000000000..d57592c0b --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-send-open.htm @@ -0,0 +1,33 @@ + + + + XMLHttpRequest: open() - send() - open() + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-sync-open-send.htm b/testing/web-platform/tests/XMLHttpRequest/open-sync-open-send.htm new file mode 100644 index 000000000..cc81c5223 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-sync-open-send.htm @@ -0,0 +1,41 @@ + + + + XMLHttpRequest: open() (sync) - send() - open() + + + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-about-blank-window.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-about-blank-window.htm new file mode 100644 index 000000000..5be3b77dd --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-about-blank-window.htm @@ -0,0 +1,23 @@ + + + + XMLHttpRequest: open() resolving URLs (about:blank iframe) + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted-after-open.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted-after-open.htm new file mode 100644 index 000000000..a4d641faf --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted-after-open.htm @@ -0,0 +1,24 @@ + + + + XMLHttpRequest: open() resolving URLs - insert <base> after open() + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted.htm new file mode 100644 index 000000000..69ad6193d --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-base-inserted.htm @@ -0,0 +1,24 @@ + + + + XMLHttpRequest: open() resolving URLs - insert <base> + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-base.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-base.htm new file mode 100644 index 000000000..3c0e8c99d --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-base.htm @@ -0,0 +1,22 @@ + + + + XMLHttpRequest: open() resolving URLs - <base> + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-bogus.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-bogus.htm new file mode 100644 index 000000000..117bd4958 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-bogus.htm @@ -0,0 +1,25 @@ + + + + XMLHttpRequest: open() - bogus URLs + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-encoding.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-encoding.htm new file mode 100644 index 000000000..7acdac86a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-encoding.htm @@ -0,0 +1,27 @@ + + + + + XMLHttpRequest: open() - URL encoding + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-fragment.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-fragment.htm new file mode 100644 index 000000000..6b3fdeb8a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-fragment.htm @@ -0,0 +1,38 @@ + + + + XMLHttpRequest: open() resolving URLs - fragment identifier + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window-2.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window-2.htm new file mode 100644 index 000000000..f5ddd4249 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window-2.htm @@ -0,0 +1,19 @@ + + + + XMLHttpRequest: open() - resolving URLs (javascript: <iframe>; 2) + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window.htm new file mode 100644 index 000000000..cd208d51a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-javascript-window.htm @@ -0,0 +1,28 @@ + + + + XMLHttpRequest: open() - resolving URLs (javascript: <iframe>; 1) + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-2.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-2.htm new file mode 100644 index 000000000..398764e70 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-2.htm @@ -0,0 +1,24 @@ + + + + XMLHttpRequest: open() resolving URLs (multi-Window; 2; evil) + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-3.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-3.htm new file mode 100644 index 000000000..b3652dfa5 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-3.htm @@ -0,0 +1,24 @@ + + + + XMLHttpRequest: open() resolving URLs (multi-Window; 3; evil) + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-4.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-4.htm new file mode 100644 index 000000000..9ddbb9b47 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-4.htm @@ -0,0 +1,50 @@ + + + + XMLHttpRequest: open() resolving URLs (multi-Window; 4; evil) + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-5.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-5.htm new file mode 100644 index 000000000..a27d2b366 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-5.htm @@ -0,0 +1,30 @@ + + + + XMLHttpRequest: open() resolving URLs (multi-Window; 5) + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-6.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-6.htm new file mode 100644 index 000000000..b6f15828a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-6.htm @@ -0,0 +1,41 @@ + + + + XMLHttpRequest: open() in document that is not fully active (but may be active) should throw + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window.htm new file mode 100644 index 000000000..347f4b7e5 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window.htm @@ -0,0 +1,31 @@ + + + + XMLHttpRequest: open() resolving URLs (multi-Window; 1) + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-worker-origin.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-worker-origin.htm new file mode 100644 index 000000000..acdbddbf2 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-worker-origin.htm @@ -0,0 +1,43 @@ + + + + + XMLHttpRequest: worker scripts, origin and referrer + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-url-worker-simple.htm b/testing/web-platform/tests/XMLHttpRequest/open-url-worker-simple.htm new file mode 100644 index 000000000..a77ef6fee --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-url-worker-simple.htm @@ -0,0 +1,25 @@ + + + + + XMLHttpRequest: relative URLs in worker scripts resolved by script URL + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/open-user-password-non-same-origin.htm b/testing/web-platform/tests/XMLHttpRequest/open-user-password-non-same-origin.htm new file mode 100644 index 000000000..e49888cd4 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/open-user-password-non-same-origin.htm @@ -0,0 +1,25 @@ + + + + XMLHttpRequest: open() - user/pass argument and non same-origin URL doesn't throw + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/overridemimetype-done-state.htm b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-done-state.htm new file mode 100644 index 000000000..a1711e609 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-done-state.htm @@ -0,0 +1,26 @@ + + + + XMLHttpRequest: overrideMimeType() in DONE state + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/overridemimetype-headers-received-state-force-shiftjis.htm b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-headers-received-state-force-shiftjis.htm new file mode 100644 index 000000000..578e28cb2 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-headers-received-state-force-shiftjis.htm @@ -0,0 +1,34 @@ + + + + XMLHttpRequest: overrideMimeType() in HEADERS RECEIVED state, enforcing Shift-JIS encoding + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/overridemimetype-invalid-mime-type.htm b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-invalid-mime-type.htm new file mode 100644 index 000000000..9cfd801e0 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-invalid-mime-type.htm @@ -0,0 +1,25 @@ + + + + XMLHttpRequest: overrideMimeType() in unsent state, invalid MIME types + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/overridemimetype-loading-state.htm b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-loading-state.htm new file mode 100644 index 000000000..cce3fa49e --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-loading-state.htm @@ -0,0 +1,32 @@ + + + + XMLHttpRequest: overrideMimeType() in LOADING state + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-utf-8.htm b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-utf-8.htm new file mode 100644 index 000000000..5a261005d --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-utf-8.htm @@ -0,0 +1,27 @@ + + + + XMLHttpRequest: overrideMimeType() in open state, enforcing UTF-8 encoding + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm new file mode 100644 index 000000000..fd0664a7c --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm @@ -0,0 +1,34 @@ + + + + XMLHttpRequest: overrideMimeType() in open state, XML MIME type with UTF-8 charset + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/overridemimetype-unsent-state-force-shiftjis.htm b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-unsent-state-force-shiftjis.htm new file mode 100644 index 000000000..98dfe1436 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/overridemimetype-unsent-state-force-shiftjis.htm @@ -0,0 +1,27 @@ + + + + XMLHttpRequest: overrideMimeType() in unsent state, enforcing Shift-JIS encoding + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/preserve-ua-header-on-redirect.htm b/testing/web-platform/tests/XMLHttpRequest/preserve-ua-header-on-redirect.htm new file mode 100644 index 000000000..074934aef --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/preserve-ua-header-on-redirect.htm @@ -0,0 +1,43 @@ + + + + XMLHttpRequest: User-Agent header is preserved on redirect + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/progress-events-response-data-gzip.htm b/testing/web-platform/tests/XMLHttpRequest/progress-events-response-data-gzip.htm new file mode 100644 index 000000000..058064636 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/progress-events-response-data-gzip.htm @@ -0,0 +1,83 @@ + + + + XMLHttpRequest: progress events and GZIP encoding + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/readme.txt b/testing/web-platform/tests/XMLHttpRequest/readme.txt new file mode 100644 index 000000000..2e5f64cd5 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/readme.txt @@ -0,0 +1,31 @@ +Currently this testsuite tries to provide tests for XMLHttpRequest level 1. +This test suite is not stable and is still under development. Tests may +contain bugs and may change over time as a result of those bugs being fixed. + +When more browsers implement XMLHttpRequest level 2 this testsuite will +slowly evolve most likely. + + http://dev.w3.org/2006/webapi/XMLHttpRequest/ + http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ + +If the folders above give the status of the feature tested you can assume +this is against level 1 unless explicitly stated otherwise. + +NOTE: readyState and onreadystatechange are tested throughout the various +tests. statusText is tested together with status. + +NOTE: open-url-base* have absolute paths in them. They need to be adjusted +on a per location basis. + +NOTE: open-url-base-inserted-after-open.htm, open-url-base-inserted.htm, +send-authentication.htm and open-url-base.htm refer to localhost. + + +TESTS THAT ARE UNSTABLE AND (PROBABLY) NEED CHANGES + responsexml-basic (see email WHATWG) + send-authentication (see "user:password" debacle) + + +TESTS NOT STARTED ON YET + + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-data-arraybuffer.htm b/testing/web-platform/tests/XMLHttpRequest/send-data-arraybuffer.htm new file mode 100644 index 000000000..25c5d2407 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-data-arraybuffer.htm @@ -0,0 +1,48 @@ + + + + + + + + + XMLHttpRequest: The send() method: ArrayBuffer data + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-data-blob.htm b/testing/web-platform/tests/XMLHttpRequest/send-data-blob.htm new file mode 100644 index 000000000..5285fc180 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-data-blob.htm @@ -0,0 +1,62 @@ + + + + + + + + + + + XMLHttpRequest: The send() method: Blob data + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-data-es-object.htm b/testing/web-platform/tests/XMLHttpRequest/send-data-es-object.htm new file mode 100644 index 000000000..6f7743286 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-data-es-object.htm @@ -0,0 +1,61 @@ + + +XMLHttpRequest: passing objects to send() + + + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-data-formdata.htm b/testing/web-platform/tests/XMLHttpRequest/send-data-formdata.htm new file mode 100644 index 000000000..e49762e95 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-data-formdata.htm @@ -0,0 +1,43 @@ + + + + + + + + + XmlHttpRequest: The send() method: FormData data + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-data-unexpected-tostring.htm b/testing/web-platform/tests/XMLHttpRequest/send-data-unexpected-tostring.htm new file mode 100644 index 000000000..357a9cff9 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-data-unexpected-tostring.htm @@ -0,0 +1,57 @@ + + +XMLHttpRequest: passing objects that interfere with the XHR instance to send() + + + + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-entity-body-basic.htm b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-basic.htm new file mode 100644 index 000000000..41c9ddec4 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-basic.htm @@ -0,0 +1,28 @@ + + + + XMLHttpRequest: send() - data argument + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-entity-body-document-bogus.htm b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-document-bogus.htm new file mode 100644 index 000000000..e834b6105 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-document-bogus.htm @@ -0,0 +1,26 @@ + + + + XMLHttpRequest: send() - unserializable Document + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-entity-body-document.htm b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-document.htm new file mode 100644 index 000000000..5f1cb68dc --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-document.htm @@ -0,0 +1,61 @@ + + + + XMLHttpRequest: send() - Document + + + + + + + +
+ + + + + + + + + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-entity-body-empty.htm b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-empty.htm new file mode 100644 index 000000000..f307e7780 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-empty.htm @@ -0,0 +1,26 @@ + + + + XMLHttpRequest: send("") - empty entity body + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head-async.htm b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head-async.htm new file mode 100644 index 000000000..ff4c4b4ca --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head-async.htm @@ -0,0 +1,39 @@ + + + + XMLHttpRequest: send() - non-empty data argument and GET/HEAD - async, no upload events should fire + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head.htm b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head.htm new file mode 100644 index 000000000..f3b8cef35 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-get-head.htm @@ -0,0 +1,36 @@ + + + + XMLHttpRequest: send() - non-empty data argument and GET/HEAD + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-entity-body-none.htm b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-none.htm new file mode 100644 index 000000000..d757cb30a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-entity-body-none.htm @@ -0,0 +1,40 @@ + + + + XMLHttpRequest: send(null) - no entity body + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-network-error-async-events.sub.htm b/testing/web-platform/tests/XMLHttpRequest/send-network-error-async-events.sub.htm new file mode 100644 index 000000000..76e5e3478 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-network-error-async-events.sub.htm @@ -0,0 +1,58 @@ + + + + + + + + + + + XmlHttpRequest: The send() method: Fire a progress event named error when Network error happens (synchronous flag is unset) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-network-error-sync-events.sub.htm b/testing/web-platform/tests/XMLHttpRequest/send-network-error-sync-events.sub.htm new file mode 100644 index 000000000..cefa80ad5 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-network-error-sync-events.sub.htm @@ -0,0 +1,39 @@ + + + + + + + + + XmlHttpRequest: The send() method: Throw a "throw an "NetworkError" exception when Network error happens (synchronous flag is set) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadend.htm b/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadend.htm new file mode 100644 index 000000000..0a1eda537 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadend.htm @@ -0,0 +1,48 @@ + + + + + + XMLHttpRequest: The send() method: Fire a progress event named loadend (no response entity body) + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadstart.htm b/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadstart.htm new file mode 100644 index 000000000..cd4a0683e --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-loadstart.htm @@ -0,0 +1,48 @@ + + + + + + + + + + XMLHttpRequest: The send() method: Fire a progress event named loadstart (no response entity body and the state is LOADING) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-order.htm b/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-order.htm new file mode 100644 index 000000000..44c1d7797 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-no-response-event-order.htm @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + XMLHttpRequest: The send() method: event order when there is no response entity body + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-non-same-origin.sub.htm b/testing/web-platform/tests/XMLHttpRequest/send-non-same-origin.sub.htm new file mode 100644 index 000000000..91c384561 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-non-same-origin.sub.htm @@ -0,0 +1,33 @@ + + + + XMLHttpRequest: send() - non same-origin + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-receive-utf16.htm b/testing/web-platform/tests/XMLHttpRequest/send-receive-utf16.htm new file mode 100644 index 000000000..6d6fb90a1 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-receive-utf16.htm @@ -0,0 +1,37 @@ + + +XMLHttpRequest: The send() method: receive data which is UTF-16 encoded + + + +
+ + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus-sync.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus-sync.htm new file mode 100644 index 000000000..89e6ff0eb --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus-sync.htm @@ -0,0 +1,26 @@ + + + + XMLHttpRequest: send() - Redirects (bogus Location header; sync) + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus.htm new file mode 100644 index 000000000..a46fc1d33 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-bogus.htm @@ -0,0 +1,36 @@ + + + + XMLHttpRequest: send() - Redirects (bogus Location header) + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite-sync.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite-sync.htm new file mode 100644 index 000000000..6e9e47e55 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite-sync.htm @@ -0,0 +1,24 @@ + + + + XMLHttpRequest: send() - Redirects (infinite loop; sync) + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite.htm new file mode 100644 index 000000000..414e4107e --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-infinite.htm @@ -0,0 +1,35 @@ + + + + XMLHttpRequest: send() - Redirects (infinite loop) + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-no-location.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-no-location.htm new file mode 100644 index 000000000..85ae963f4 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-no-location.htm @@ -0,0 +1,40 @@ + + + + XMLHttpRequest: send() - Redirects (no Location header) + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-post-upload.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-post-upload.htm new file mode 100644 index 000000000..1e705cada --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-post-upload.htm @@ -0,0 +1,124 @@ + + + + + + + + + + + XMLHttpRequest: The send() method: POSTing to URL that redirects + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-to-cors.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-to-cors.htm new file mode 100644 index 000000000..b879ec66a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-to-cors.htm @@ -0,0 +1,68 @@ + + + + XMLHttpRequest: send() - Redirect to CORS-enabled resource + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect-to-non-cors.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect-to-non-cors.htm new file mode 100644 index 000000000..c6886a57b --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect-to-non-cors.htm @@ -0,0 +1,37 @@ + + + + XMLHttpRequest: send() - Redirect to cross-origin resource, not CORS-enabled + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-redirect.htm b/testing/web-platform/tests/XMLHttpRequest/send-redirect.htm new file mode 100644 index 000000000..16b3231e2 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-redirect.htm @@ -0,0 +1,36 @@ + + + + XMLHttpRequest: send() - Redirects (basics) + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-response-event-order.htm b/testing/web-platform/tests/XMLHttpRequest/send-response-event-order.htm new file mode 100644 index 000000000..041cb23c6 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-response-event-order.htm @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + XMLHttpRequest: The send() method: event order when synchronous flag is unset + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadend.htm b/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadend.htm new file mode 100644 index 000000000..99a239ab1 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadend.htm @@ -0,0 +1,40 @@ + + + + + + + + + + + XMLHttpRequest: The send() method: Fire a progress event named loadend on the XMLHttpRequestUpload (synchronous flag is unset) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadstart.htm b/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadstart.htm new file mode 100644 index 000000000..7a9be9f8c --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-loadstart.htm @@ -0,0 +1,39 @@ + + + + + + + + + + XMLHttpRequest: The send() method: Fire a progress event named loadstart on the XMLHttpRequestUpload (synchronous flag is unset) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-progress.htm b/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-progress.htm new file mode 100644 index 000000000..914aed725 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-response-upload-event-progress.htm @@ -0,0 +1,39 @@ + + + + + + + + + + XMLHttpRequest: The send() method: Fire a progress event named progress on the XMLHttpRequestUpload (synchronous flag is unset) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-send.htm b/testing/web-platform/tests/XMLHttpRequest/send-send.htm new file mode 100644 index 000000000..cbcbdb44e --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-send.htm @@ -0,0 +1,13 @@ + + + + XMLHttpRequest: send() - send() + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-send.js b/testing/web-platform/tests/XMLHttpRequest/send-send.js new file mode 100644 index 000000000..2e7fe865f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-send.js @@ -0,0 +1,7 @@ +test(function() { + var client = new XMLHttpRequest() + client.open("GET", "resources/well-formed.xml") + client.send(null) + assert_throws("InvalidStateError", function() { client.send(null) }) + client.abort() +}) diff --git a/testing/web-platform/tests/XMLHttpRequest/send-send.worker.js b/testing/web-platform/tests/XMLHttpRequest/send-send.worker.js new file mode 100644 index 000000000..9d34ce63d --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-send.worker.js @@ -0,0 +1,3 @@ +importScripts("/resources/testharness.js"); +importScripts("send-send.js"); +done(); diff --git a/testing/web-platform/tests/XMLHttpRequest/send-sync-blocks-async.htm b/testing/web-platform/tests/XMLHttpRequest/send-sync-blocks-async.htm new file mode 100644 index 000000000..87caa0f78 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-sync-blocks-async.htm @@ -0,0 +1,66 @@ + + + + + + + + XMLHttpRequest: sync requests should block events on pending async requests + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-load.htm b/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-load.htm new file mode 100644 index 000000000..a2a551658 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-load.htm @@ -0,0 +1,38 @@ + + + + + + + + + + + XMLHttpRequest: The send() method: Fire an event named load (no response entity body and the synchronous flag is set) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-loadend.htm b/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-loadend.htm new file mode 100644 index 000000000..7da2a3118 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-loadend.htm @@ -0,0 +1,38 @@ + + + + + + + + + + + XMLHttpRequest: The send() method: Fire an event named loadend (no response entity body and the synchronous flag is set) + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-order.htm b/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-order.htm new file mode 100644 index 000000000..c7e3172cb --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-sync-no-response-event-order.htm @@ -0,0 +1,51 @@ + + + + XMLHttpRequest: The send() method: event order when synchronous flag is set and there is no response entity body + + + + + + + + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-sync-response-event-order.htm b/testing/web-platform/tests/XMLHttpRequest/send-sync-response-event-order.htm new file mode 100644 index 000000000..f7e4b0b21 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-sync-response-event-order.htm @@ -0,0 +1,35 @@ + + + + + + + XMLHttpRequest: The send() method: event order when synchronous flag is set + + + + + + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-sync-timeout.htm b/testing/web-platform/tests/XMLHttpRequest/send-sync-timeout.htm new file mode 100644 index 000000000..08ce7e9b9 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-sync-timeout.htm @@ -0,0 +1,30 @@ + + + + XMLHttpRequest: timeout during sync send() should not run + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-timeout-events.htm b/testing/web-platform/tests/XMLHttpRequest/send-timeout-events.htm new file mode 100644 index 000000000..6aea627d6 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-timeout-events.htm @@ -0,0 +1,76 @@ + + + + + + XMLHttpRequest: The send() method: timeout is not 0 + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/send-usp.html b/testing/web-platform/tests/XMLHttpRequest/send-usp.html new file mode 100644 index 000000000..1753e5f3a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-usp.html @@ -0,0 +1,10 @@ + + +XMLHttpRequest.send(URLSearchParams) + + + +
+ diff --git a/testing/web-platform/tests/XMLHttpRequest/send-usp.js b/testing/web-platform/tests/XMLHttpRequest/send-usp.js new file mode 100644 index 000000000..c00b2e0e0 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-usp.js @@ -0,0 +1,48 @@ +const NUM_TESTS = 128; + +function encode(n) { + if (n === 0x20) { + return "\x2B"; + } + + if (n === 0x2A || n === 0x2D || n === 0x2E || + (0x30 <= n && n <= 0x39) || (0x41 <= n && n <= 0x5A) || + n === 0x5F || (0x61 <= n && n <= 0x7A)) { + return String.fromCharCode(n); + } + + var s = n.toString(16).toUpperCase(); + return "%" + (s.length === 2 ? s : '0' + s); +} + +function run_test() { + var tests = []; + var overall_test = async_test("Overall fetch with URLSearchParams"); + for (var i = 0; i < NUM_TESTS; i++) { + // Multiple subtests so that failures can be fine-grained + tests[i] = async_test("XMLHttpRequest.send(URLSearchParams) (" + i + ")"); + } + + // We use a single XHR since this test tends to time out + // with 128 consecutive fetches when run in parallel + // with many other WPT tests. + var x = new XMLHttpRequest(); + x.onload = overall_test.step_func(function() { + var response_split = x.response.split("&"); + overall_test.done(); + for (var i = 0; i < NUM_TESTS; i++) { + tests[i].step(function() { + assert_equals(response_split[i], "a" + i + "="+encode(i)); + tests[i].done(); + }); + } + }); + x.onerror = overall_test.unreached_func(); + + x.open("POST", "resources/content.py"); + var usp = new URLSearchParams(); + for (var i = 0; i < NUM_TESTS; i++) { + usp.append("a" + i, String.fromCharCode(i)); + } + x.send(usp) +} diff --git a/testing/web-platform/tests/XMLHttpRequest/send-usp.worker.js b/testing/web-platform/tests/XMLHttpRequest/send-usp.worker.js new file mode 100644 index 000000000..456b7e7e3 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/send-usp.worker.js @@ -0,0 +1,4 @@ +importScripts("/resources/testharness.js"); +importScripts("send-usp.js"); +run_test(); +done(); diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-after-send.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-after-send.htm new file mode 100644 index 000000000..595214471 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-after-send.htm @@ -0,0 +1,27 @@ + + + + XMLHttpRequest: setRequestHeader() after send() + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-empty-value.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-empty-value.htm new file mode 100644 index 000000000..bd8709417 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-empty-value.htm @@ -0,0 +1,26 @@ + + + + XMLHttpRequest: setRequestHeader() - empty header + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-whitespace-in-value.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-whitespace-in-value.htm new file mode 100644 index 000000000..ac54dbddb --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-allow-whitespace-in-value.htm @@ -0,0 +1,27 @@ + + + + XMLHttpRequest: setRequestHeader() - header value with whitespace + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-before-open.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-before-open.htm new file mode 100644 index 000000000..d90b02eaf --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-before-open.htm @@ -0,0 +1,18 @@ + + + + XMLHttpRequest: setRequestHeader() before open() + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-name.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-name.htm new file mode 100644 index 000000000..86e55f33a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-name.htm @@ -0,0 +1,59 @@ + + + + XMLHttpRequest: setRequestHeader() name argument checks + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-value.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-value.htm new file mode 100644 index 000000000..c3aa076c9 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-bogus-value.htm @@ -0,0 +1,37 @@ + + + + + XMLHttpRequest: setRequestHeader() value argument checks + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-case-insensitive.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-case-insensitive.htm new file mode 100644 index 000000000..248306fce --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-case-insensitive.htm @@ -0,0 +1,23 @@ + + + + XMLHttpRequest: setRequestHeader() - headers that differ in case + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-content-type.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-content-type.htm new file mode 100644 index 000000000..64a72927a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-content-type.htm @@ -0,0 +1,237 @@ + + + + XMLHttpRequest: setRequestHeader() - Content-Type header + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-allowed.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-allowed.htm new file mode 100644 index 000000000..31e40df16 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-allowed.htm @@ -0,0 +1,33 @@ + + + + XMLHttpRequest: setRequestHeader() - headers that are allowed + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-forbidden.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-forbidden.htm new file mode 100644 index 000000000..b6873216f --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-header-forbidden.htm @@ -0,0 +1,42 @@ + + + + XMLHttpRequest: setRequestHeader() - headers that are forbidden + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/setrequestheader-open-setrequestheader.htm b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-open-setrequestheader.htm new file mode 100644 index 000000000..564819044 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/setrequestheader-open-setrequestheader.htm @@ -0,0 +1,60 @@ + + + + XMLHttpRequest: setRequestHeader() and open() + + + + + + +

+ + + + \ No newline at end of file diff --git a/testing/web-platform/tests/XMLHttpRequest/status-async.htm b/testing/web-platform/tests/XMLHttpRequest/status-async.htm new file mode 100644 index 000000000..dcf7d6246 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/status-async.htm @@ -0,0 +1,62 @@ + + + + XMLHttpRequest: status/statusText - various responses + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/status-basic.htm b/testing/web-platform/tests/XMLHttpRequest/status-basic.htm new file mode 100644 index 000000000..fed7cabec --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/status-basic.htm @@ -0,0 +1,51 @@ + + + + XMLHttpRequest: status/statusText - various responses + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/status-error.htm b/testing/web-platform/tests/XMLHttpRequest/status-error.htm new file mode 100644 index 000000000..fbcb7fd75 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/status-error.htm @@ -0,0 +1,60 @@ + + + + XMLHttpRequest: status error handling + + + + + + +

This shouldn't be tested inside a tunnel.

+
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/timeout-cors-async.htm b/testing/web-platform/tests/XMLHttpRequest/timeout-cors-async.htm new file mode 100644 index 000000000..35e2a30ba --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/timeout-cors-async.htm @@ -0,0 +1,43 @@ + + + + XMLHttpRequest: timeout event and cross-origin request + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/timeout-sync.htm b/testing/web-platform/tests/XMLHttpRequest/timeout-sync.htm new file mode 100644 index 000000000..9815532c7 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/timeout-sync.htm @@ -0,0 +1,25 @@ + + + + XMLHttpRequest: timeout not allowed for sync requests + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-basic.htm b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-basic.htm new file mode 100644 index 000000000..c48b610ff --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-basic.htm @@ -0,0 +1,45 @@ + + + + XMLHttpRequest: prototype and members + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-eventtarget.htm b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-eventtarget.htm new file mode 100644 index 000000000..ea58fd4dc --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-eventtarget.htm @@ -0,0 +1,48 @@ + + + + XMLHttpRequest: implements EventTarget + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error-sync.htm b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error-sync.htm new file mode 100644 index 000000000..c4a887a1e --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error-sync.htm @@ -0,0 +1,34 @@ + + + + XMLHttpRequest: members during network errors (sync) + + + + + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error.htm b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error.htm new file mode 100644 index 000000000..c8e320080 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-network-error.htm @@ -0,0 +1,39 @@ + + + + XMLHttpRequest: members during network errors + + + + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts-subframe.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts-subframe.html new file mode 100644 index 000000000..be46a12b6 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts-subframe.html @@ -0,0 +1,17 @@ + + + + + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts.html new file mode 100644 index 000000000..0aabdd4b3 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-defer-scripts.html @@ -0,0 +1,15 @@ + + +Check that a sync XHR in a defer script blocks later defer scripts from running + + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-scripts.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-scripts.html new file mode 100644 index 000000000..d6714ac75 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-block-scripts.html @@ -0,0 +1,22 @@ + + +Check that while a sync XHR is in flight async script loads don't complete and run script + + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader-subframe.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader-subframe.html new file mode 100644 index 000000000..aeff2af97 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader-subframe.html @@ -0,0 +1,17 @@ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader.html new file mode 100644 index 000000000..bbec1eddc --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-sync-not-hang-scriptloader.html @@ -0,0 +1,16 @@ + + +Ensure that an async script added during a defer script that then does a + sync XHR still runs + + + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html new file mode 100644 index 000000000..0af6d9cf6 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html @@ -0,0 +1,26 @@ + + + + + XHR2 Timeout Property Tests + + + + + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.

+
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html new file mode 100644 index 000000000..70cba4980 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html @@ -0,0 +1,23 @@ + + + + + XHR2 Timeout Property Tests + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.

+
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html new file mode 100644 index 000000000..61a32bb1a --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html @@ -0,0 +1,23 @@ + + + + + XHR2 Timeout Property Tests + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.

+
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html new file mode 100644 index 000000000..d29cbbbff --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html @@ -0,0 +1,23 @@ + + + + + XHR2 Timeout Property Tests + + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.

+
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html new file mode 100644 index 000000000..982cf5529 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html @@ -0,0 +1,24 @@ + + + + + XHR2 Timeout Property Tests + + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.

+
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html new file mode 100644 index 000000000..79430a9d3 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html @@ -0,0 +1,21 @@ + + + + + XHR2 Timeout Property Tests + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.

+
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html new file mode 100644 index 000000000..1423fd5db --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html @@ -0,0 +1,25 @@ + + + + + XHR2 Timeout Property Tests + + + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.

+
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html new file mode 100644 index 000000000..c3a4581f7 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html @@ -0,0 +1,28 @@ + + + + + XHR2 Timeout Property Tests in Worker + + + + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in in a worker context.

+
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html new file mode 100644 index 000000000..bf77d859c --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html @@ -0,0 +1,24 @@ + + + + + XHR2 Timeout Property Tests in Worker + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in in a worker context.

+
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html new file mode 100644 index 000000000..180db52ea --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html @@ -0,0 +1,25 @@ + + + + + XHR2 Timeout Property Tests in Worker + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in in a worker context.

+
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html new file mode 100644 index 000000000..135691fbd --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html @@ -0,0 +1,26 @@ + + + + + XHR2 Timeout Property Tests in Worker + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in in a worker context.

+
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html new file mode 100644 index 000000000..423dcc93c --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html @@ -0,0 +1,25 @@ + + + + + XHR2 Timeout Property Tests in Worker + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in in a worker context.

+
+ + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html new file mode 100644 index 000000000..7e7107d4b --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html @@ -0,0 +1,26 @@ + + + + + XHR2 Timeout Property Tests in Worker + + + + + + + + + + + +

Description

+

This test validates that the XHR2 timeout property behaves as expected in in a worker context.

+
+ + + + diff --git a/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-unsent.htm b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-unsent.htm new file mode 100644 index 000000000..a343b76e6 --- /dev/null +++ b/testing/web-platform/tests/XMLHttpRequest/xmlhttprequest-unsent.htm @@ -0,0 +1,36 @@ + + + + XMLHttpRequest: members during UNSENT + + + + + + + + + + + + + + +
+ + + -- cgit v1.2.3