mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1436642 - Make target element size larger to be unable to send transform animations to the compositor. r=jaws
The original value were too small for Android. MozReview-Commit-ID: 4V6qC8orYNJ --HG-- extra : rebase_source : 55ea0525bfaafa60d8e5d711cc70dd29d21acc78
This commit is contained in:
parent
f3fe5c9e06
commit
d72d0dee6b
@ -1177,7 +1177,7 @@ function start() {
|
||||
assert_animation_property_state_equals(
|
||||
animation.effect.getProperties(),
|
||||
[ { property: 'transform', runningOnCompositor: true } ]);
|
||||
animation.effect.target.style = 'width: 5200px; height: 5200px';
|
||||
animation.effect.target.style = 'width: 10000px; height: 10000px';
|
||||
return waitForFrame();
|
||||
}).then(() => {
|
||||
// viewport depends on test environment.
|
||||
@ -1212,13 +1212,13 @@ function start() {
|
||||
assert_animation_property_state_equals(
|
||||
animation.effect.getProperties(),
|
||||
[ { property: 'transform', runningOnCompositor: true } ]);
|
||||
animation.effect.target.style = 'width: 5200px; height: 1px';
|
||||
animation.effect.target.style = 'width: 20000px; height: 1px';
|
||||
return waitForFrame();
|
||||
}).then(() => {
|
||||
// viewport depends on test environment.
|
||||
var expectedWarning = new RegExp(
|
||||
"Animation cannot be run on the compositor because the frame size " +
|
||||
"\\(5200, 1\\) is too large relative to the viewport " +
|
||||
"\\(20000, 1\\) is too large relative to the viewport " +
|
||||
"\\(larger than \\(\\d+, \\d+\\)\\) or larger than the " +
|
||||
"maximum allowed value \\(\\d+, \\d+\\)");
|
||||
assert_animation_property_state_equals(
|
||||
|
Loading…
Reference in New Issue
Block a user