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:
Hiroyuki Ikezoe 2018-02-10 06:52:23 +09:00
Родитель f3fe5c9e06
Коммит d72d0dee6b
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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(