Import wpt@1e09963dc32699c7d711402395e93be8f7000ef2
Using wpt-import in Chromium c0823763b0
.
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/+/main/docs/testing/web_platform_tests.md
NOAUTOREVERT=true
R=rubber-stamper@appspot.gserviceaccount.com
No-Export: true
Cq-Include-Trybots: luci.chromium.try:linux-wpt-identity-fyi-rel,linux-wpt-input-fyi-rel
Change-Id: I6b712bead27987fc526001101dbacda86db02e93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3372847
Auto-Submit: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#956793}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
6ff60cc032
commit
a0f0753016
third_party/blink/web_tests
TestExpectations
external
platform
mac-mac10.13
virtual
plz-dedicated-worker
external
wpt
referrer-policy
gen
srcdoc.meta
strict-origin
1
third_party/blink/web_tests/TestExpectations
vendored
1
third_party/blink/web_tests/TestExpectations
vendored
@ -3015,6 +3015,7 @@ crbug.com/626703 [ Linux ] external/wpt/url/url-constructor.any.html [ Failure ]
|
||||
crbug.com/626703 [ Mac11 ] external/wpt/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-006.html [ Failure ]
|
||||
|
||||
# ====== New tests from wpt-importer added here ======
|
||||
crbug.com/626703 [ Mac10.14 ] virtual/portals/external/wpt/portals/no-portal-in-sandboxed-popup.html [ Timeout ]
|
||||
crbug.com/626703 [ Linux ] external/wpt/css/css-color/tagged-images-003.html [ Failure ]
|
||||
crbug.com/626703 [ Mac10.12 ] external/wpt/css/css-color/tagged-images-003.html [ Failure ]
|
||||
crbug.com/626703 [ Mac10.13 ] external/wpt/css/css-color/tagged-images-003.html [ Failure ]
|
||||
|
@ -299551,6 +299551,10 @@
|
||||
],
|
||||
"event-handler-processing-algorithm-error": {
|
||||
"resources": {
|
||||
"frameset-frame.html": [
|
||||
"028be4919e0db1cb2d6c3eafd007054668229cbb",
|
||||
[]
|
||||
],
|
||||
"no-op-worker.js": [
|
||||
"3918c74e446336be4151ea3bdad00f4d9e6df47a",
|
||||
[]
|
||||
@ -462899,6 +462903,20 @@
|
||||
]
|
||||
],
|
||||
"event-handler-processing-algorithm-error": {
|
||||
"body-element-synthetic-errorevent.html": [
|
||||
"9ab0020ec382af2d6a265a951d1a1f8f725891c3",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"body-element-synthetic-event.html": [
|
||||
"9ed26384163af734f1ad46b061d9b9d1cc82ad63",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"document-synthetic-errorevent.html": [
|
||||
"8b1b3cfb5b2c33c07da64e02f3c160cce748e2f7",
|
||||
[
|
||||
@ -462913,6 +462931,20 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"frameset-element-synthetic-errorevent.html": [
|
||||
"20d87dbacf92a033a8f409d66e6bb5b53abe4423",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"frameset-element-synthetic-event.html": [
|
||||
"2fdca3ad8601b1113b3d483415446ebdf860a9ef",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"script-element.html": [
|
||||
"f3ef1165e0724870a3dc316c55385ceb8fc7fa49",
|
||||
[
|
||||
|
57
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/body-element-synthetic-errorevent.html
vendored
Normal file
57
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/body-element-synthetic-errorevent.html
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Event handlers processing algorithm: error events</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-event-handler-processing-algorithm">
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
promise_test(t => {
|
||||
document.body.onerror = t.step_func((...args) => {
|
||||
assert_greater_than(args.length, 1);
|
||||
return true;
|
||||
});
|
||||
|
||||
const eventWatcher = new EventWatcher(t, window, "error");
|
||||
const promise = eventWatcher.wait_for("error").then(e => {
|
||||
assert_equals(e.defaultPrevented, true);
|
||||
});
|
||||
|
||||
document.body.dispatchEvent(new ErrorEvent("error", { bubbles: true, cancelable: true }));
|
||||
|
||||
return promise;
|
||||
}, "error event is weird (return true cancels; many args) on Window, with a synthetic ErrorEvent");
|
||||
|
||||
promise_test(t => {
|
||||
const theError = { the: "error object" };
|
||||
|
||||
document.body.onerror = t.step_func(function (message, filename, lineno, colno, error) {
|
||||
assert_equals(arguments.length, 5, "There must be exactly 5 arguments");
|
||||
assert_equals(message, "message");
|
||||
assert_equals(filename, "filename");
|
||||
assert_equals(lineno, 1);
|
||||
assert_equals(colno, 2);
|
||||
assert_equals(error, theError);
|
||||
return true;
|
||||
});
|
||||
|
||||
const eventWatcher = new EventWatcher(t, window, "error");
|
||||
const promise = eventWatcher.wait_for("error");
|
||||
|
||||
document.body.dispatchEvent(new ErrorEvent("error", {
|
||||
bubbles: true,
|
||||
message: "message",
|
||||
filename: "filename",
|
||||
lineno: 1,
|
||||
colno: 2,
|
||||
error: theError
|
||||
}));
|
||||
|
||||
return promise;
|
||||
}, "error event has the right 5 args on Window, with a synthetic ErrorEvent");
|
||||
</script>
|
29
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/body-element-synthetic-event.html
vendored
Normal file
29
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/body-element-synthetic-event.html
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Event handlers processing algorithm: error events</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-event-handler-processing-algorithm">
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
promise_test(t => {
|
||||
document.body.onerror = t.step_func((...args) => {
|
||||
assert_equals(args.length, 1);
|
||||
return true;
|
||||
});
|
||||
|
||||
const eventWatcher = new EventWatcher(t, window, "error");
|
||||
const promise = eventWatcher.wait_for("error").then(e => {
|
||||
assert_equals(e.defaultPrevented, false);
|
||||
});
|
||||
|
||||
document.body.dispatchEvent(new Event("error", { bubbles: true, cancelable: true }));
|
||||
|
||||
return promise;
|
||||
}, "error event is normal (return true does not cancel; one arg) on Window, with a synthetic Event");
|
||||
</script>
|
64
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/frameset-element-synthetic-errorevent.html
vendored
Normal file
64
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/frameset-element-synthetic-errorevent.html
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Event handlers processing algorithm: error events</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-event-handler-processing-algorithm">
|
||||
|
||||
<iframe name="framesetWindow" src="resources/frameset-frame.html"></iframe>
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
window.onload = () => {
|
||||
|
||||
const frameset = framesetWindow.document.querySelector("frameset");
|
||||
|
||||
promise_test(t => {
|
||||
frameset.onerror = t.step_func((...args) => {
|
||||
assert_greater_than(args.length, 1);
|
||||
return true;
|
||||
});
|
||||
|
||||
const eventWatcher = new EventWatcher(t, framesetWindow, "error");
|
||||
const promise = eventWatcher.wait_for("error").then(e => {
|
||||
assert_equals(e.defaultPrevented, true);
|
||||
});
|
||||
|
||||
frameset.dispatchEvent(new ErrorEvent("error", { bubbles: true, cancelable: true }));
|
||||
|
||||
return promise;
|
||||
}, "error event is weird (return true cancels; many args) on Window, with a synthetic ErrorEvent");
|
||||
|
||||
promise_test(t => {
|
||||
const theError = { the: "error object" };
|
||||
|
||||
frameset.onerror = t.step_func(function (message, filename, lineno, colno, error) {
|
||||
assert_equals(arguments.length, 5, "There must be exactly 5 arguments");
|
||||
assert_equals(message, "message");
|
||||
assert_equals(filename, "filename");
|
||||
assert_equals(lineno, 1);
|
||||
assert_equals(colno, 2);
|
||||
assert_equals(error, theError);
|
||||
return true;
|
||||
});
|
||||
|
||||
const eventWatcher = new EventWatcher(t, framesetWindow, "error");
|
||||
const promise = eventWatcher.wait_for("error");
|
||||
|
||||
frameset.dispatchEvent(new ErrorEvent("error", {
|
||||
bubbles: true,
|
||||
message: "message",
|
||||
filename: "filename",
|
||||
lineno: 1,
|
||||
colno: 2,
|
||||
error: theError
|
||||
}));
|
||||
|
||||
return promise;
|
||||
}, "error event has the right 5 args on Window, with a synthetic ErrorEvent");
|
||||
|
||||
};
|
||||
</script>
|
36
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/frameset-element-synthetic-event.html
vendored
Normal file
36
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/frameset-element-synthetic-event.html
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Event handlers processing algorithm: error events</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-event-handler-processing-algorithm">
|
||||
|
||||
<iframe name="framesetWindow" src="resources/frameset-frame.html"></iframe>
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
window.onload = () => {
|
||||
|
||||
const frameset = framesetWindow.document.querySelector("frameset");
|
||||
|
||||
promise_test(t => {
|
||||
frameset.onerror = t.step_func((...args) => {
|
||||
assert_equals(args.length, 1);
|
||||
return true;
|
||||
});
|
||||
|
||||
const eventWatcher = new EventWatcher(t, framesetWindow, "error");
|
||||
const promise = eventWatcher.wait_for("error").then(e => {
|
||||
assert_equals(e.defaultPrevented, false);
|
||||
});
|
||||
|
||||
frameset.dispatchEvent(new Event("error", { bubbles: true, cancelable: true }));
|
||||
|
||||
return promise;
|
||||
}, "error event is normal (return true does not cancel; one arg) on Window, with a synthetic Event");
|
||||
|
||||
};
|
||||
</script>
|
4
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/resources/frameset-frame.html
vendored
Normal file
4
third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/event-handler-processing-algorithm-error/resources/frameset-frame.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<frameset></frameset>
|
@ -1,15 +0,0 @@
|
||||
This is a testharness.js-based test.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to same-http origin and keep-origin redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to same-http origin and no-redirect redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.
|
||||
PASS Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.
|
||||
FAIL Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context. assert_in_array: document.referrer value "http://web-platform.test:8001/referrer-policy/gen/srcdoc.meta/strict-origin/iframe-tag.http.html" not in array ["http://web-platform.test:8001/", undefined]
|
||||
Harness: the test ran to completion.
|
||||
|
Reference in New Issue
Block a user