Import wpt@8f35eec39a68b77c04b4dbe1f108e4fd86ad7afc
Using wpt-import in Chromium f42dae9bc685c2a292ec0e4d521eca56f1ef25f5.
With Chromium commits locally applied on WPT:
0a8f3ffa48 "Use testdriver Action API in WPT pointerevent touch tests - Part 2"
4e9215207a "[Code Health] Remove unnecessary reference file for web test"
40465b7400 "[Animation Worklet] Copy the effects of a migrating animator over to new global scope"
e28269b698 "[LayoutNG/PE] Clear visual overflow for LayoutText before setting."
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=robertma
No-Export: true
Change-Id: Icce19e7b01ab19003d5eea708b38d33dca47051d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1576113
Reviewed-by: WPT 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@{#652794}
diff --git a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_6.json b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_6.json
index 6b7cc68..f88693c 100644
--- a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_6.json
+++ b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_6.json
@@ -341096,7 +341096,7 @@
"testharness"
],
"animation-worklet/idlharness.any-expected.txt": [
- "8bf12c874d83a6697102753d2cba6fc5745e69b2",
+ "b6515dd21bf6dc231b540dadd079c970c8fbb5c7",
"support"
],
"animation-worklet/idlharness.any.js": [
@@ -341104,7 +341104,7 @@
"testharness"
],
"animation-worklet/idlharness.any.worker-expected.txt": [
- "f73208c2a3c700d03ea1d39322a3e061b5caa5f7",
+ "aa1341f0a73d1648332a12dca70b2d7bb015ec2e",
"support"
],
"animation-worklet/inactive-timeline.https.html": [
@@ -456596,7 +456596,7 @@
"support"
],
"interfaces/animation-worklet.idl": [
- "58d0bc51a67be51d1d3fab75096b71feef8dea9b",
+ "159cabd09cd0b425c933cdfde58c46c8f14c9819",
"support"
],
"interfaces/appmanifest.idl": [
diff --git a/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any-expected.txt b/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any-expected.txt
index 8bf12c874..b6515dd 100644
--- a/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any-expected.txt
+++ b/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any-expected.txt
@@ -1,8 +1,11 @@
This is a testharness.js-based test.
PASS idl_test setup
PASS Partial namespace CSS: original namespace defined
+PASS Partial namespace CSS: valid exposure set
PASS Partial interface AnimationEffect: original interface defined
FAIL Partial interface AnimationEffect: valid exposure set Partial AnimationEffect interface is exposed to 'AnimationWorklet', the original interface is not.
+PASS StatelessAnimator interface: existence and properties of interface object
+PASS StatefulAnimator interface: existence and properties of interface object
PASS AnimationWorkletGlobalScope interface: existence and properties of interface object
FAIL WorkletAnimation interface: existence and properties of interface object assert_equals: prototype of WorkletAnimation is not Animation expected function "function Animation() { [native code] }" but got function "function () { [native code] }"
FAIL WorkletAnimation interface object length assert_equals: wrong value for WorkletAnimation.length expected 1 but got 2
@@ -14,13 +17,7 @@
FAIL WorkletAnimation must be primary interface of new WorkletAnimation("name") assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Failed to construct 'WorkletAnimation': 2 arguments required, but only 1 present."
FAIL Stringification of new WorkletAnimation("name") assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Failed to construct 'WorkletAnimation': 2 arguments required, but only 1 present."
FAIL WorkletAnimation interface: new WorkletAnimation("name") must inherit property "animatorName" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Failed to construct 'WorkletAnimation': 2 arguments required, but only 1 present."
-FAIL WorkletGroupEffect interface: existence and properties of interface object assert_own_property: self does not have own property "WorkletGroupEffect" expected property "WorkletGroupEffect" missing
-FAIL WorkletGroupEffect interface object length assert_own_property: self does not have own property "WorkletGroupEffect" expected property "WorkletGroupEffect" missing
-FAIL WorkletGroupEffect interface object name assert_own_property: self does not have own property "WorkletGroupEffect" expected property "WorkletGroupEffect" missing
-FAIL WorkletGroupEffect interface: existence and properties of interface prototype object assert_own_property: self does not have own property "WorkletGroupEffect" expected property "WorkletGroupEffect" missing
-FAIL WorkletGroupEffect interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "WorkletGroupEffect" expected property "WorkletGroupEffect" missing
-FAIL WorkletGroupEffect interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "WorkletGroupEffect" expected property "WorkletGroupEffect" missing
-FAIL WorkletGroupEffect interface: operation getChildren() assert_own_property: self does not have own property "WorkletGroupEffect" expected property "WorkletGroupEffect" missing
+PASS WorkletGroupEffect interface: existence and properties of interface object
PASS WorkletGlobalScope interface: existence and properties of interface object
PASS AnimationEffect interface: member localTime
PASS CSS namespace: operation escape(CSSOMString)
diff --git a/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any.worker-expected.txt b/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any.worker-expected.txt
index f73208c..aa1341f 100644
--- a/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any.worker-expected.txt
+++ b/third_party/blink/web_tests/external/wpt/animation-worklet/idlharness.any.worker-expected.txt
@@ -1,8 +1,11 @@
This is a testharness.js-based test.
PASS idl_test setup
PASS Partial namespace CSS: original namespace defined
+PASS Partial namespace CSS: valid exposure set
PASS Partial interface AnimationEffect: original interface defined
FAIL Partial interface AnimationEffect: valid exposure set Partial AnimationEffect interface is exposed to 'AnimationWorklet', the original interface is not.
+PASS StatelessAnimator interface: existence and properties of interface object
+PASS StatefulAnimator interface: existence and properties of interface object
PASS AnimationWorkletGlobalScope interface: existence and properties of interface object
PASS WorkletAnimation interface: existence and properties of interface object
FAIL WorkletAnimation must be primary interface of new WorkletAnimation("name") assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: WorkletAnimation is not defined"
diff --git a/third_party/blink/web_tests/external/wpt/interfaces/animation-worklet.idl b/third_party/blink/web_tests/external/wpt/interfaces/animation-worklet.idl
index 58d0bc5..159cabd 100644
--- a/third_party/blink/web_tests/external/wpt/interfaces/animation-worklet.idl
+++ b/third_party/blink/web_tests/external/wpt/interfaces/animation-worklet.idl
@@ -3,16 +3,30 @@
// (https://github.com/tidoust/reffy-reports)
// Source: CSS Animation Worklet API (https://wicg.github.io/animation-worklet/)
+[Exposed=Window]
partial namespace CSS {
[SameObject] readonly attribute Worklet animationWorklet;
};
-[ Exposed=AnimationWorklet, Global=AnimationWorklet ]
-interface AnimationWorkletGlobalScope : WorkletGlobalScope {
- void registerAnimator(DOMString name, VoidFunction animatorCtor);
+[Exposed=AnimationWorklet, Global=AnimationWorklet, Constructor (optional any options)]
+interface StatelessAnimator {
};
-[Constructor (DOMString animatorName,
+[Exposed=AnimationWorklet, Global=AnimationWorklet,
+Constructor (optional any options, optional any state)]
+interface StatefulAnimator {
+ any state();
+};
+
+[ Exposed=AnimationWorklet, Global=AnimationWorklet ]
+interface AnimationWorkletGlobalScope : WorkletGlobalScope {
+ void registerAnimator(DOMString name, AnimatorInstanceConstructor animatorCtor);
+};
+
+callback AnimatorInstanceConstructor = any (any options, optional any state);
+
+[Exposed=Window,
+ Constructor (DOMString animatorName,
optional (AnimationEffect or sequence<AnimationEffect>)? effects = null,
optional AnimationTimeline? timeline,
optional any options)]
@@ -20,6 +34,7 @@
readonly attribute DOMString animatorName;
};
+[Exposed=AnimationWorklet]
interface WorkletGroupEffect {
sequence<AnimationEffect> getChildren();
};
diff --git a/third_party/blink/web_tests/virtual/threaded/external/wpt/animation-worklet/idlharness.any-expected.txt b/third_party/blink/web_tests/virtual/threaded/external/wpt/animation-worklet/idlharness.any-expected.txt
new file mode 100644
index 0000000..b6515dd
--- /dev/null
+++ b/third_party/blink/web_tests/virtual/threaded/external/wpt/animation-worklet/idlharness.any-expected.txt
@@ -0,0 +1,26 @@
+This is a testharness.js-based test.
+PASS idl_test setup
+PASS Partial namespace CSS: original namespace defined
+PASS Partial namespace CSS: valid exposure set
+PASS Partial interface AnimationEffect: original interface defined
+FAIL Partial interface AnimationEffect: valid exposure set Partial AnimationEffect interface is exposed to 'AnimationWorklet', the original interface is not.
+PASS StatelessAnimator interface: existence and properties of interface object
+PASS StatefulAnimator interface: existence and properties of interface object
+PASS AnimationWorkletGlobalScope interface: existence and properties of interface object
+FAIL WorkletAnimation interface: existence and properties of interface object assert_equals: prototype of WorkletAnimation is not Animation expected function "function Animation() { [native code] }" but got function "function () { [native code] }"
+FAIL WorkletAnimation interface object length assert_equals: wrong value for WorkletAnimation.length expected 1 but got 2
+PASS WorkletAnimation interface object name
+FAIL WorkletAnimation interface: existence and properties of interface prototype object assert_equals: prototype of WorkletAnimation.prototype is not Animation.prototype expected object "[object Animation]" but got object "[object Object]"
+PASS WorkletAnimation interface: existence and properties of interface prototype object's "constructor" property
+PASS WorkletAnimation interface: existence and properties of interface prototype object's @@unscopables property
+FAIL WorkletAnimation interface: attribute animatorName assert_true: The prototype object must have a property "animatorName" expected true got false
+FAIL WorkletAnimation must be primary interface of new WorkletAnimation("name") assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Failed to construct 'WorkletAnimation': 2 arguments required, but only 1 present."
+FAIL Stringification of new WorkletAnimation("name") assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Failed to construct 'WorkletAnimation': 2 arguments required, but only 1 present."
+FAIL WorkletAnimation interface: new WorkletAnimation("name") must inherit property "animatorName" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: Failed to construct 'WorkletAnimation': 2 arguments required, but only 1 present."
+PASS WorkletGroupEffect interface: existence and properties of interface object
+PASS WorkletGlobalScope interface: existence and properties of interface object
+PASS AnimationEffect interface: member localTime
+PASS CSS namespace: operation escape(CSSOMString)
+FAIL CSS namespace: attribute animationWorklet assert_own_property: CSS does not have property "animationWorklet" expected property "animationWorklet" missing
+Harness: the test ran to completion.
+