Commit 6bdc3259 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@ae430033d7b15d89b29b8f9ecadfc537dfa7d56e

Using wpt-import in Chromium 28b2e498.
With Chromium commits locally applied on WPT:
c4dc3441 "[WPT] Reland Upload a test for sending mouse events with key pressed"
fec827fb "Added wpt tests for overscroll customization."
a554ea37 "Reland "[EventTiming] Round instead of ceil the |duration|""
a06bcc90 "WebXR: Rename requestSession parameter variables to match use"
eeafcaee "[sms] Introduce testing infrastructure and handle some corner cases."
c9077e39 "Restore original tail-processing for ScriptProcessor and AudioWorklet"
faed29aa "[EventTiming] Remove unneeded prefix from WPT tests"
9d5bc5ec "Portals: Add support for frame-src CSP directive."
d814fafc "Check for detached ArrayBuffers in Web Bluetooth writeValue functions"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

NOAUTOREVERT=true
TBR=lpz

No-Export: true
Change-Id: Ib53f3af4acc9e988a4be602af90eb38600e26680
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1605841Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#658559}
parent d6ae7332
......@@ -2906,6 +2906,8 @@ crbug.com/939181 external/wpt/html/browsers/origin/cross-origin-objects/cross-or
crbug.com/939181 virtual/not-site-per-process/external/wpt/html/browsers/origin/cross-origin-objects/cross-origin-objects.html [ Failure Timeout ]
# ====== New tests from wpt-importer added here ======
crbug.com/626703 virtual/omt-worker-fetch/external/wpt/xhr/abort-after-stop.any.worker.html [ Timeout ]
crbug.com/626703 external/wpt/xhr/abort-after-stop.any.worker.html [ Timeout ]
crbug.com/626703 external/wpt/webvtt/rendering/cues-with-video/processing-model/bidi/vertical_rl.html [ Failure ]
crbug.com/626703 external/wpt/webvtt/rendering/cues-with-video/processing-model/selectors/cue/vertical_ruby-position.html [ Failure ]
crbug.com/626703 external/wpt/webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/class_object/class_vertical_text-combine-upright.html [ Failure ]
......
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() after successful receive should not fire "abort" event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following::ol[1]/li[4] following::ol[1]/li[5]"/>
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() after successful receive should not fire "abort" event
var test = async_test();
test.step(function() {
......@@ -37,6 +28,3 @@
client.open("GET", "resources/well-formed.xml", true);
client.send(null);
});
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() after send()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/xmlhttprequest-event-order.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[1] following-sibling::ol/li[3] following-sibling::ol/li[4] following-sibling::ol/li[4]/ol/li[1] following-sibling::ol/li[4]/ol/li[3] following-sibling::ol/li[4]/ol/li[4] following-sibling::ol/li[4]/ol/li[5] following-sibling::ol/li[4]/ol/li[6] following-sibling::ol/li[5]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#the-responsetext-attribute" data-tested-assertations="following::ol/li[3]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#the-responsexml-attribute" data-tested-assertations="following::ol/li[3]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-getallresponseheaders" data-tested-assertations="following::ol/li[2]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-getresponseheader" data-tested-assertations="following::ol/li[2]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#the-status-attribute" data-tested-assertations="following::ol/li[2]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#the-statustext-attribute" data-tested-assertations="following::ol/li[2]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following::dt[1] following::dd[1]" />
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() after send()
// META: script=resources/xmlhttprequest-event-order.js
var test = async_test()
test.step(function() {
var client = new XMLHttpRequest(),
......@@ -41,6 +25,3 @@
assert_xhr_event_order_matches([1, "loadstart(0,0,false)", 4, "abort(0,0,false)", "loadend(0,0,false)"])
test.done()
})
</script>
</body>
</html>
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort event should fire when stop() method is used</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following::dt[3] following::dt[3]/following::dd[1]/p"/>
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort event should fire when stop() method is used
var test = async_test();
window.onload = test.step_func(function() {
var client = new XMLHttpRequest();
......@@ -29,6 +20,3 @@
window.stop();
sync = false;
});
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() after a timeout should not fire "abort" event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following::ol[1]/li[4] following::ol[1]/li[5]"/>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-timeout-attribute" data-tested-assertations="following::ol[1]/li[2]"/>
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() after a timeout should not fire "abort" event
var test = async_test();
test.step(function() {
......@@ -51,6 +41,3 @@
client.open("GET", "/common/blank.html?pipe=trickle(d1)", true);
client.send(null);
});
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() during DONE</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4] following-sibling::ol/li[5]" />
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() during DONE
async_test(test => {
var client = new XMLHttpRequest(),
result = [],
......@@ -85,6 +76,3 @@
client.open("GET", "resources/well-formed.xml")
client.send(null)
}, document.title + " (async)")
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() during HEADERS_RECEIVED</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4] following-sibling::ol/li[5]" />
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() during HEADERS_RECEIVED
async_test(test => {
var client = new XMLHttpRequest(),
result = [],
......@@ -48,6 +39,3 @@
client.open("GET", "resources/well-formed.xml")
client.send(null)
})
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() during LOADING</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4] following-sibling::ol/li[5]" />
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() during LOADING
async_test(test => {
var client = new XMLHttpRequest(),
result = [],
......@@ -48,6 +39,3 @@
client.open("GET", "resources/well-formed.xml")
client.send(null)
})
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() during UNSENT</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4] following-sibling::ol/li[5]" />
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() during UNSENT
var test = async_test()
test.step(function() {
var client = new XMLHttpRequest()
......@@ -26,6 +17,3 @@
assert_equals(client.statusText, "")
})
test.done()
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() while sending data</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/xmlhttprequest-event-order.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4]/ol/li[7] following-sibling::ol/li[4]/ol/li[7]/ol/li[2] following-sibling::ol/li[4]/ol/li[7]/ol/li[3] following-sibling::ol/li[4]/ol/li[7]/ol/li[4]" />
<link rel="help" href="https://xhr.spec.whatwg.org/#make-upload-progress-notifications" data-tested-assertations="following::ul[1]/li[1] following::ul[1]/li[2]/ol[1]/li[2] following::ul[1]/li[2]/ol[1]/li[3] following::ul[1]/li[2]/ol[1]/li[4]" />
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() while sending data
// META: script=resources/xmlhttprequest-event-order.js
var test = async_test()
test.step(function() {
var client = new XMLHttpRequest()
......@@ -25,6 +15,3 @@
client.send((new Array(10000)).join('a'))
client.abort()
})
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4]/ol/li[5]" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>XMLHttpRequest: The abort() method: do not fire abort event in OPENED state when send() flag is unset.</title>
</head>
// META: title=XMLHttpRequest: The abort() method: do not fire abort event in OPENED state when send() flag is unset.
<body>
<div id="log"></div>
<script type="text/javascript">
var test = async_test()
test.step(function()
......@@ -41,6 +30,3 @@
xhr.send() // should not throw since abort() was a no-op
test.done()
});
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() should not reset event listeners</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[6] following-sibling::ol/li[7]" />
</head>
<body>
<div id="log"></div>
<script>
// META: title=XMLHttpRequest: abort() should not reset event listeners
var test = async_test()
test.step(function() {
var client = new XMLHttpRequest(),
......@@ -20,6 +11,3 @@
assert_equals(client.onreadystatechange, test)
})
test.done()
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4]/ol/li[6]"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>XMLHttpRequest: The abort() method: Fire a progress event named loadend</title>
</head>
// META: title=XMLHttpRequest: The abort() method: Fire a progress event named loadend
<body>
<div id="log"></div>
<script type="text/javascript">
var test = async_test(function(test)
{
var xhr = new XMLHttpRequest();
......@@ -39,6 +28,3 @@
xhr.open("GET", "resources/content.py", true);
xhr.send();
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4]/ol/li[7]/ol/li[3]" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>XMLHttpRequest: The abort() method: Fire a progress event named abort on the XMLHttpRequestUpload object</title>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
var test = async_test();
 var test = async_test("XMLHttpRequest: The abort() method: Fire a progress event named abort on the XMLHttpRequestUpload object");
test.step(function()
{
......@@ -42,6 +29,3 @@
xhr.open("POST", "./resources/content.py", true);
xhr.send("Test Message");
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4]/ol/li[7]/ol/li[4]" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>XMLHttpRequest: The abort() method: Fire a progress event named loadend on the XMLHttpRequestUpload object</title>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
var test = async_test();
 var test = async_test("XMLHttpRequest: The abort() method: Fire a progress event named loadend on the XMLHttpRequestUpload object");
test.step(function()
{
......@@ -42,6 +29,3 @@
xhr.open("POST", "./resources/content.py", true);
xhr.send("Test Message");
});
</script>
</body>
</html>
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL XMLHttpRequest: abort() after send() assert_equals: expected "abort(0,0,false)" but got "upload.abort(0,0,false)"
Harness: the test ran to completion.
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