Bug 1311620 - Part 6: Fix test cases that checks keyframe composite is not specified but effect composite is specified. r=birtles

From spec <https://w3c.github.io/web-animations/#dom-keyframeeffectreadonly-getkeyframes>:

composite
    The keyframe-specific composite operation used to combine the values
    specified in this keyframe with the underlying value.
    This member will be absent if the composite operation specified on
    the keyframe effect is being used.

MozReview-Commit-ID: 8ob59Xv6DRL

--HG--
extra : rebase_source : cf88254e6acb1a2d56b7c50ef46db7ef3a692947
This commit is contained in:
Hiroyuki Ikezoe 2016-12-24 19:55:09 +09:00
parent d339d422fb
commit 8e88d9bc70
2 changed files with 3 additions and 9 deletions

View File

@ -1,6 +0,0 @@
[constructor.html]
type: testharness
[composite values are parsed correctly when passed to the KeyframeEffectReadOnly constructor in KeyframeTimingOptions]
expected: FAIL
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1311620

View File

@ -110,7 +110,7 @@ test(function(t) {
var effect = new KeyframeEffectReadOnly(target, {
left: ["10px", "20px"]
}, { composite: composite });
assert_equals(effect.getKeyframes()[0].composite, composite,
assert_equals(effect.getKeyframes()[0].composite, undefined,
"resulting composite for '" + composite + "'");
});
gBadCompositeValueTests.forEach(function(composite) {
@ -120,8 +120,8 @@ test(function(t) {
}, { composite: composite });
});
});
}, "composite values are parsed correctly when passed to the " +
"KeyframeEffectReadOnly constructor in KeyframeTimingOptions");
}, "composite value is absent if the composite operation specified on the " +
"keyframe effect is being used");
gPropertyIndexedKeyframesTests.forEach(function(subtest) {
test(function(t) {