Commit e5249244 authored by sergio@webkit.org's avatar sergio@webkit.org

2011-02-09 Sergio Villar Senin <svillar@igalia.com>

        Unreviewed.

        Added new text expectations for GTK port. They should be actually
        valid for any port using the libsoup backend. We need different
        results because as stated here
        https://bugs.webkit.org/show_bug.cgi?id=3812#c6, the original test
        results were designed for NSURLConnection which adds the
        "Content-Length: 0" header for null message bodies. That does not
        happen in libsoup, so instead of artificially add that header we
        better generate different results.

        Also take into account that for HEAD and GET requests the body is
        not included so we should expect always a null for them.

        * platform/gtk/Skipped:
        * platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt: Added.
        * platform/gtk/http/tests/xmlhttprequest/methods-expected.txt: Added.
        * platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt: Added.
        * platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt: Added.
        * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Added.
        * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@78043 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3b5347ed
2011-02-09 Sergio Villar Senin <svillar@igalia.com>
Unreviewed.
Added new text expectations for GTK port. They should be actually
valid for any port using the libsoup backend. We need different
results because as stated here
https://bugs.webkit.org/show_bug.cgi?id=3812#c6, the original test
results were designed for NSURLConnection which adds the
"Content-Length: 0" header for null message bodies. That does not
happen in libsoup, so instead of artificially add that header we
better generate different results.
Also take into account that for HEAD and GET requests the body is
not included so we should expect always a null for them.
* platform/gtk/Skipped:
* platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt: Added.
* platform/gtk/http/tests/xmlhttprequest/methods-expected.txt: Added.
* platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt: Added.
* platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt: Added.
* platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Added.
* platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Added.
2011-02-09 Eric Seidel <eric@webkit.org>
Reviewed by Adam Barth.
......@@ -1859,8 +1859,6 @@ http/tests/xmlhttprequest/cross-origin-no-authorization.html
http/tests/xmlhttprequest/frame-load-cancelled-abort.html
http/tests/xmlhttprequest/frame-unload-abort-crash.html
http/tests/xmlhttprequest/methods-async.html
http/tests/xmlhttprequest/methods.html
http/tests/xmlhttprequest/response-encoding.html
http/tests/xmlhttprequest/state-after-network-error.html
http/tests/xmlhttprequest/supported-xml-content-types.html
......@@ -1869,8 +1867,6 @@ http/tests/xmlhttprequest/upload-onprogress-event.html
http/tests/xmlhttprequest/upload-progress-events.html
http/tests/xmlhttprequest/xml-encoding.html
http/tests/xmlhttprequest/xmlhttprequest-contenttype-empty.html
http/tests/xmlhttprequest/workers/methods-async.html
http/tests/xmlhttprequest/workers/methods.html
# Tests crashing - https://bugs.webkit.org/show_bug.cgi?id=51104
http/tests/cache/subresource-fragment-identifier.html
http/tests/misc/authentication-sent-to-redirect.html
......@@ -3779,10 +3775,6 @@ userscripts/user-style-top-frame-only.html
userscripts/window-onerror-for-isolated-world-1.html
userscripts/window-onerror-for-isolated-world-2.html
# XHR sends sometimes yield null bytes sent instead of 0.
http/tests/xmlhttprequest/workers/shared-worker-methods.html
http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
# No authentication challenge handling
http/tests/loading/basic-credentials-sent-automatically.html
......
Tests for bug 3812 - GET and POST should not be the only HTTP methods implemented in XMLHttpRequest.
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
POST(""): POST(0 bytes), Content-Type: application/xml
POST(null): POST(null bytes), Content-Type: null
POST("123"): POST(3 bytes), Content-Type: application/xml
PUT(""): PUT(0 bytes), Content-Type: application/xml
PUT(null): PUT(null bytes), Content-Type: null
PUT("123"): PUT(3 bytes), Content-Type: application/xml
DELETE(""): DELETE(0 bytes), Content-Type: application/xml
DELETE(null): DELETE(null bytes), Content-Type: null
DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
SEARCH(null): SEARCH(null bytes), Content-Type: null
SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
Tests for bug 3812 - GET and POST should not be the only HTTP methods implemented in XMLHttpRequest.
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
POST(""): POST(0 bytes), Content-Type: application/xml
POST(null): POST(null bytes), Content-Type: null
POST("123"): POST(3 bytes), Content-Type: application/xml
PUT(""): PUT(0 bytes), Content-Type: application/xml
PUT(null): PUT(null bytes), Content-Type: null
PUT("123"): PUT(3 bytes), Content-Type: application/xml
DELETE(""): DELETE(0 bytes), Content-Type: application/xml
DELETE(null): DELETE(null bytes), Content-Type: null
DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
SEARCH(null): SEARCH(null bytes), Content-Type: null
SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for Workers.
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
POST(""): POST(0 bytes), Content-Type: application/xml
POST(null): POST(null bytes), Content-Type: null
POST("123"): POST(3 bytes), Content-Type: application/xml
PUT(""): PUT(0 bytes), Content-Type: application/xml
PUT(null): PUT(null bytes), Content-Type: null
PUT("123"): PUT(3 bytes), Content-Type: application/xml
DELETE(""): DELETE(0 bytes), Content-Type: application/xml
DELETE(null): DELETE(null bytes), Content-Type: null
DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
SEARCH(null): SEARCH(null bytes), Content-Type: null
SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
DONE
GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for Workers.
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
POST(""): POST(0 bytes), Content-Type: application/xml
POST(null): POST(null bytes), Content-Type: null
POST("123"): POST(3 bytes), Content-Type: application/xml
PUT(""): PUT(0 bytes), Content-Type: application/xml
PUT(null): PUT(null bytes), Content-Type: null
PUT("123"): PUT(3 bytes), Content-Type: application/xml
DELETE(""): DELETE(0 bytes), Content-Type: application/xml
DELETE(null): DELETE(null bytes), Content-Type: null
DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
SEARCH(null): SEARCH(null bytes), Content-Type: null
SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
DONE
GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
POST(""): POST(0 bytes), Content-Type: application/xml
POST(null): POST(null bytes), Content-Type: null
POST("123"): POST(3 bytes), Content-Type: application/xml
PUT(""): PUT(0 bytes), Content-Type: application/xml
PUT(null): PUT(null bytes), Content-Type: null
PUT("123"): PUT(3 bytes), Content-Type: application/xml
DELETE(""): DELETE(0 bytes), Content-Type: application/xml
DELETE(null): DELETE(null bytes), Content-Type: null
DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
SEARCH(null): SEARCH(null bytes), Content-Type: null
SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
DONE
GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
POST(""): POST(0 bytes), Content-Type: application/xml
POST(null): POST(null bytes), Content-Type: null
POST("123"): POST(3 bytes), Content-Type: application/xml
PUT(""): PUT(0 bytes), Content-Type: application/xml
PUT(null): PUT(null bytes), Content-Type: null
PUT("123"): PUT(3 bytes), Content-Type: application/xml
DELETE(""): DELETE(0 bytes), Content-Type: application/xml
DELETE(null): DELETE(null bytes), Content-Type: null
DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
SEARCH(null): SEARCH(null bytes), Content-Type: null
SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
DONE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment