Commit 9b59275a authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@c6631ffd84d9d40cbc0a1f2871bf06f1bf547b24

Using wpt-import in Chromium 555fd40a.
With Chromium commits locally applied on WPT:
d0ad7cf8 "UpgradeInsecureRequest: Add WPTs for static-import in dedicated/shared workers"
86131ac4 "Add a test for ReplaceTrack that verifies video track content."
6c8523d2 "[scroll-timeline] Implement element-based scroll offset"
788a3bf1 "[css-grid] Migrate grid-auto-repeat-intrinsic.html to WPT"
f9b790bb "[css-grid] Fix percentage track sizing functions in size containment"
a2328fd6 "[css-grid] Migrate grid-element-remove-svg-child.html to WPT"
3fb5d786 "Roll external/wpt/webgpu and create wpt_internal/webgpu"


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=smcgruer

No-Export: true
Change-Id: I4f6559885bc0fd542d3bb473f290ae27a64824a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2151966Reviewed-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@{#759551}
parent d185acb6
...@@ -50,6 +50,39 @@ test_with_window(function (contentWindow) { ...@@ -50,6 +50,39 @@ test_with_window(function (contentWindow) {
assert_connected_log_entry(log[5], element2); assert_connected_log_entry(log[5], element2);
}, 'Upgrading a custom element must invoke attributeChangedCallback and connectedCallback before start upgrading another element'); }, 'Upgrading a custom element must invoke attributeChangedCallback and connectedCallback before start upgrading another element');
test_with_window(function (contentWindow) {
const contentDocument = contentWindow.document;
contentDocument.write('<test-element>');
const element = contentDocument.querySelector('test-element');
assert_equals(Object.getPrototypeOf(element), contentWindow.HTMLElement.prototype);
let log = [];
class TestElement extends contentWindow.HTMLElement {
constructor() {
super();
this.id = "foo";
this.setAttribute('id', 'foo');
this.removeAttribute('id');
this.style.fontSize = '10px';
log.push(create_constructor_log(this));
}
connectedCallback(...args) {
log.push(create_connected_callback_log(this, ...args));
}
attributeChangedCallback(...args) {
log.push(create_attribute_changed_callback_log(this, ...args));
}
static get observedAttributes() { return ['id', 'style']; }
}
contentWindow.customElements.define('test-element', TestElement);
assert_equals(Object.getPrototypeOf(element), TestElement.prototype);
assert_equals(log.length, 2);
assert_constructor_log_entry(log[0], element);
assert_connected_log_entry(log[1], element);
}, 'Upgrading a custom element must not invoke attributeChangedCallback for the attribute that is changed during upgrading');
test_with_window(function (contentWindow) { test_with_window(function (contentWindow) {
const contentDocument = contentWindow.document; const contentDocument = contentWindow.document;
contentDocument.write('<test-element id="first-element">'); contentDocument.write('<test-element id="first-element">');
......
<!doctype html>
<meta charset="utf-8">
<title>currentSrc is right even if underlying image is a shared blob</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1625786">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<img id="first">
<img id="second">
<script>
promise_test(async t => {
let canvas = document.createElement("canvas");
canvas.width = 100;
canvas.height = 100;
let ctx = canvas.getContext("2d");
ctx.fillStyle = "green";
ctx.rect(0, 0, 100, 100);
ctx.fill();
let blob = await new Promise(resolve => canvas.toBlob(resolve));
let first = document.querySelector("#first");
let second = document.querySelector("#second");
let firstLoad = new Promise(resolve => {
first.addEventListener("load", resolve, { once: true });
});
let secondLoad = new Promise(resolve => {
second.addEventListener("load", resolve, { once: true });
});
let uri1 = URL.createObjectURL(blob);
let uri2 = URL.createObjectURL(blob);
first.src = uri1;
second.src = uri2;
await firstLoad;
await secondLoad;
assert_equals(first.src, first.currentSrc);
assert_equals(second.src, second.currentSrc);
});
</script>
...@@ -165,65 +165,6 @@ partial dictionary AuthenticationExtensionsClientInputs { ...@@ -165,65 +165,6 @@ partial dictionary AuthenticationExtensionsClientInputs {
USVString appidExclude; USVString appidExclude;
}; };
partial dictionary AuthenticationExtensionsClientInputs {
USVString txAuthSimple;
};
partial dictionary AuthenticationExtensionsClientOutputs {
USVString txAuthSimple;
};
dictionary txAuthGenericArg {
required USVString contentType; // MIME-Type of the content, e.g., "image/png"
required ArrayBuffer content;
};
partial dictionary AuthenticationExtensionsClientInputs {
txAuthGenericArg txAuthGeneric;
};
partial dictionary AuthenticationExtensionsClientOutputs {
ArrayBuffer txAuthGeneric;
};
typedef sequence<AAGUID> AuthenticatorSelectionList;
partial dictionary AuthenticationExtensionsClientInputs {
AuthenticatorSelectionList authnSel;
};
typedef BufferSource AAGUID;
partial dictionary AuthenticationExtensionsClientOutputs {
boolean authnSel;
};
partial dictionary AuthenticationExtensionsClientInputs {
boolean exts;
};
typedef sequence<USVString> AuthenticationExtensionsSupported;
partial dictionary AuthenticationExtensionsClientOutputs {
AuthenticationExtensionsSupported exts;
};
partial dictionary AuthenticationExtensionsClientInputs {
boolean uvi;
};
partial dictionary AuthenticationExtensionsClientOutputs {
ArrayBuffer uvi;
};
partial dictionary AuthenticationExtensionsClientInputs {
boolean loc;
};
partial dictionary AuthenticationExtensionsClientOutputs {
GeolocationCoordinates loc;
};
partial dictionary AuthenticationExtensionsClientInputs { partial dictionary AuthenticationExtensionsClientInputs {
boolean uvm; boolean uvm;
}; };
...@@ -235,11 +176,6 @@ partial dictionary AuthenticationExtensionsClientOutputs { ...@@ -235,11 +176,6 @@ partial dictionary AuthenticationExtensionsClientOutputs {
UvmEntries uvm; UvmEntries uvm;
}; };
dictionary AuthenticatorBiometricPerfBounds {
float FAR;
float FRR;
};
partial dictionary AuthenticationExtensionsClientInputs { partial dictionary AuthenticationExtensionsClientInputs {
boolean credProps; boolean credProps;
}; };
......
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