Commit 7ee90b2d authored by David Dorwin's avatar David Dorwin Committed by Commit Bot

Remove KeyframeEffect from AnimationWorklet origin trial test

KeyframeEffect is controlled by RuntimeEnabled=WebAnimationsAPI not the
AnimationWorklet origin trial.

KeyframeEffect was added along with the fix for https://crbug.com/903953,
but the fix does not work because of https://crbug.com/946246.
This issue was hidden by https://crbug.com/946599.

Bug: 903953
Change-Id: I6fc28b4434057fabe974991b4a696f976c58fa43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1542456Reviewed-by: default avatarMajid Valipour <majidvp@chromium.org>
Commit-Queue: David Dorwin <ddorwin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645324}
parent a00f769f
...@@ -2,23 +2,38 @@ ...@@ -2,23 +2,38 @@
<!-- Generate token with the command: <!-- Generate token with the command:
generate_token.py http://127.0.0.1:8000 AnimationWorklet --expire-timestamp=2000000000 generate_token.py http://127.0.0.1:8000 AnimationWorklet --expire-timestamp=2000000000
--> -->
<meta http-equiv="origin-trial" content="AnRfiFGg50a1+vvDBVfbBNiiRFBBQDy+3oMlJw2pUNRb8tPyN2XX0kAJxiA0itCLJTM0DrsIfVYuv4ni0Lu6bQgAAABYeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiQW5pbWF0aW9uV29ya2xldCIsICJleHBpcnkiOiAyMDAwMDAwMDAwfQ==" />
<title>AnimationWorklet - interfaces exposed by origin trial</title> <title>AnimationWorklet - interfaces exposed by origin trial</title>
<script src="../../resources/testharness.js"></script> <script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script> <script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/origin-trials-helper.js"></script> <script src="../../resources/origin-trials-helper.js"></script>
<script> <script>
const token="AnRfiFGg50a1+vvDBVfbBNiiRFBBQDy+3oMlJw2pUNRb8tPyN2XX0kAJxiA0itCLJTM0DrsIfVYuv4ni0Lu6bQgAAABYeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiQW5pbWF0aW9uV29ya2xldCIsICJleHBpcnkiOiAyMDAwMDAwMDAwfQ=="
interfaces_to_check = ['WorkletAnimation', 'ScrollTimeline'];
properties_to_check = {
'WorkletAnimation': ['play', 'cancel', 'playState', 'timeline'],
'ScrollTimeline': ['scrollSource', 'orientation', 'timeRange'],
};
// Check that the interfaces are not present without the token.
// Experimental web platform features are always enabled when this test is run
// normally, so do not check them in that case.
if (!self.internals.runtimeFlags.animationWorkletEnabled) {
test(t => {
OriginTrialsHelper.check_interfaces_missing(this, interfaces_to_check);
}, 'AnimationWorklet related interfaces are not available without a token.');
}
OriginTrialsHelper.add_token(token);
test(t => { test(t => {
OriginTrialsHelper.check_interfaces(this, OriginTrialsHelper.check_interfaces(this, interfaces_to_check);
['WorkletAnimation', 'ScrollTimeline', 'KeyframeEffect']);
}, 'AnimationWorklet related interfaces in Origin-Trial enabled document.'); }, 'AnimationWorklet related interfaces in Origin-Trial enabled document.');
test(t => { test(t => {
assert_own_property(CSS, 'animationWorklet'); assert_own_property(CSS, 'animationWorklet');
OriginTrialsHelper.check_properties(this, OriginTrialsHelper.check_properties(this, properties_to_check);
{'WorkletAnimation': ['play', 'cancel', 'playState', 'timeline'],
'ScrollTimeline': ['scrollSource', 'orientation', 'timeRange'],
});
}, 'AnimationWorklet related properties in Origin-Trial enabled document.'); }, 'AnimationWorklet related properties in Origin-Trial enabled document.');
</script> </script>
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