Commit dc25e54e authored by tyoshino@chromium.org's avatar tyoshino@chromium.org

Reenable data URL layout tests which were temporarily skipped until Chromium...

Reenable data URL layout tests which were temporarily skipped until Chromium side change gets landed

- Enables the temporarily skipped tests
- Change the blob test case to expect failure. This is because it turned
  out that we cannot use the optimization for data URL loading when XHR
  is set to load data as Blob.
- Delete the unnecessary expectation file

Depends on
- https://codereview.chromium.org/480413007/
- https://codereview.chromium.org/294193002/

BUG=308768

Review URL: https://codereview.chromium.org/492183002

git-svn-id: svn://svn.chromium.org/blink/trunk@181707 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6da1352b
...@@ -1139,10 +1139,6 @@ crbug.com/368946 virtual/stable/web-animations-api [ Skip ] ...@@ -1139,10 +1139,6 @@ crbug.com/368946 virtual/stable/web-animations-api [ Skip ]
crbug.com/368946 virtual/stable/web-animations-api/eased-keyframes.html [ Pass ] crbug.com/368946 virtual/stable/web-animations-api/eased-keyframes.html [ Pass ]
# Temporarily skipped until Chromium side change lands. # Temporarily skipped until Chromium side change lands.
crbug.com/308768 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html [ Skip ]
crbug.com/308768 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html [ Skip ]
crbug.com/308768 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html [ Skip ]
crbug.com/308768 http/tests/xmlhttprequest/xmlhttprequest-data-url.html [ Skip ]
crbug.com/308768 inspector/network/network-status-non-http.html [ Skip ] crbug.com/308768 inspector/network/network-status-non-http.html [ Skip ]
crbug.com/390358 http/tests/security/mixedContent/insecure-eventsource-in-main-frame.html [ Failure Pass ] crbug.com/390358 http/tests/security/mixedContent/insecure-eventsource-in-main-frame.html [ Failure Pass ]
......
PASS Test parsing a data URL. US-ASCII into DOMString
PASS Test parsing a data URL. Binary into ArrayBuffer
PASS Test parsing a data URL. UTF-8 data into DOMString.
PASS Test parsing a data URL. UTF-8 data into Blob.
PASS Test parsing a data URL. Invalid Base64 data.
...@@ -75,17 +75,9 @@ testUtf8Blob.step(function() { ...@@ -75,17 +75,9 @@ testUtf8Blob.step(function() {
if (xhr.readyState != xhr.DONE) if (xhr.readyState != xhr.DONE)
return; return;
assert_equals(xhr.status, 200, 'status'); assert_equals(xhr.status, 0, 'status');
assert_not_equals(xhr.response, null, 'response'); assert_equals(xhr.response, null, 'response');
assert_equals(xhr.response.type, 'text/html', 'response.type'); testUtf8Blob.done();
var reader = new FileReader();
reader.onabort = testUtf8Blob.step_func(function() { assert_unreached('onabort'); });
reader.onerror = testUtf8Blob.step_func(function() { assert_unreached('onerror'); });
reader.onload = testUtf8Blob.step_func(function() {
assert_equals(reader.result, '\u6587\u5b57', 'result');
testUtf8Blob.done();
});
reader.readAsText(xhr.response);
}); });
xhr.send(); xhr.send();
}); });
......
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