Added: trunk/LayoutTests/css3/filters/custom/custom-filter-array-blending-expected.txt (0 => 132795)
--- trunk/LayoutTests/css3/filters/custom/custom-filter-array-blending-expected.txt (rev 0)
+++ trunk/LayoutTests/css3/filters/custom/custom-filter-array-blending-expected.txt 2012-10-29 14:10:05 UTC (rev 132795)
@@ -0,0 +1,9 @@
+
+PASS - "webkitFilter" property for "custom-blend-from-none-box" element at 1s saw something close to: custom(url(no-shader-needed.vs) none, 1 1 filter-box, arrayFromNoneAnim array(10, 20))
+PASS - "webkitFilter" property for "custom-blend-to-none-box" element at 1s saw something close to: custom(url(no-shader-needed.vs) none, 1 1 filter-box, arrayToNoneAnim array(10, 20))
+PASS - "webkitFilter" property for "custom-blend-single-element-box" element at 1s saw something close to: custom(url(no-shader-needed.vs) none, 1 1 filter-box, singleElementArray array(5))
+PASS - "webkitFilter" property for "custom-blend-two-floats-box" element at 1s saw something close to: custom(url(no-shader-needed.vs) none, 1 1 filter-box, twoFloatsArray array(2, 6.4))
+PASS - "webkitFilter" property for "custom-blend-multiple-elements-box" element at 1s saw something close to: custom(url(no-shader-needed.vs) none, 1 1 filter-box, multipleElementsArray array(5, 10, 5, 10, 5, 10, 5, 10, 5))
+PASS - "webkitFilter" property for "custom-blend-first-longer-box" element at 1s saw something close to: custom(url(no-shader-needed.vs) none, 1 1 filter-box, firstLonger array(10, 10, 10, 10))
+PASS - "webkitFilter" property for "custom-blend-second-longer-box" element at 1s saw something close to: custom(url(no-shader-needed.vs) none, 1 1 filter-box, secondLonger array(10, 10, 10, 10, 10))
+
Added: trunk/LayoutTests/css3/filters/custom/custom-filter-array-blending.html (0 => 132795)
--- trunk/LayoutTests/css3/filters/custom/custom-filter-array-blending.html (rev 0)
+++ trunk/LayoutTests/css3/filters/custom/custom-filter-array-blending.html 2012-10-29 14:10:05 UTC (rev 132795)
@@ -0,0 +1,115 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+ <script>
+ if (window.testRunner) {
+ window.testRunner.overridePreference("WebKitCSSCustomFilterEnabled", "1");
+ window.testRunner.overridePreference("WebKitWebGLEnabled", "1");
+ }
+ </script>
+ <style>
+ .box {
+ height: 100px;
+ width: 100px;
+ margin: 10px;
+ background-color: blue;
+ display: inline-block;
+ }
+
+ #custom-blend-from-none-box {
+ -webkit-animation: custom-blend-from-none-anim 2s linear;
+ }
+
+ #custom-blend-to-none-box {
+ -webkit-animation: custom-blend-to-none-anim 2s linear;
+ }
+
+ #custom-blend-single-element-box {
+ -webkit-animation: custom-blend-single-element-anim 2s linear;
+ }
+
+ #custom-blend-two-floats-box {
+ -webkit-animation: custom-blend-two-floats-anim 2s linear;
+ }
+
+ #custom-blend-multiple-elements-box {
+ -webkit-animation: custom-blend-multiple-elements-anim 2s linear;
+ }
+
+ #custom-blend-first-longer-box {
+ -webkit-animation: custom-blend-first-longer-anim 2s linear;
+ }
+
+ #custom-blend-second-longer-box {
+ -webkit-animation: custom-blend-second-longer-anim 2s linear;
+ }
+
+ @-webkit-keyframes custom-blend-from-none-anim {
+ from { -webkit-filter: custom(url(no-shader-needed.vs)); }
+ to { -webkit-filter: custom(url(no-shader-needed.vs), arrayFromNoneAnim array(10.0, 20.0)); }
+ }
+
+ @-webkit-keyframes custom-blend-to-none-anim {
+ from { -webkit-filter: custom(url(no-shader-needed.vs), arrayToNoneAnim array(10.0, 20.0)); }
+ to { -webkit-filter: custom(url(no-shader-needed.vs)); }
+ }
+
+ @-webkit-keyframes custom-blend-single-element-anim {
+ from { -webkit-filter: custom(url(no-shader-needed.vs), singleElementArray array(0)); }
+ to { -webkit-filter: custom(url(no-shader-needed.vs), singleElementArray array(10)); }
+ }
+
+ @-webkit-keyframes custom-blend-two-floats-anim {
+ from { -webkit-filter: custom(url(no-shader-needed.vs), twoFloatsArray array(1.01, 3.14)); }
+ to { -webkit-filter: custom(url(no-shader-needed.vs), twoFloatsArray array(3.03, 9.42)); }
+ }
+
+
+ @-webkit-keyframes custom-blend-multiple-elements-anim {
+ from { -webkit-filter: custom(url(no-shader-needed.vs), multipleElementsArray array(0, 0, 0, 0, 0, 0, 0, 0, 0)); }
+ to { -webkit-filter: custom(url(no-shader-needed.vs), multipleElementsArray array(10, 20, 10, 20, 10, 20, 10, 20, 10)); }
+ }
+
+ @-webkit-keyframes custom-blend-first-longer-anim {
+ from { -webkit-filter: custom(url(no-shader-needed.vs), firstLonger array(10, 10, 10, 10, 10)); }
+ to { -webkit-filter: custom(url(no-shader-needed.vs), firstLonger array(10, 10, 10, 10)); }
+ }
+
+ @-webkit-keyframes custom-blend-second-longer-anim {
+ from { -webkit-filter: custom(url(no-shader-needed.vs), secondLonger array(10, 10, 10, 10)); }
+ to { -webkit-filter: custom(url(no-shader-needed.vs), secondLonger array(10, 10, 10, 10, 10)); }
+ }
+ </style>
+ <script src=""
+ <script src=""
+ <script type="text/_javascript_">
+ const expectedValues = [
+ // [animation-name, time, element-id, property, expected-value, tolerance]
+ ["custom-blend-from-none-anim", 1, "custom-blend-from-none-box", "webkitFilter", 'custom(url(no-shader-needed.vs) none, 1 1 filter-box, arrayFromNoneAnim array(10, 20))', 2],
+ ["custom-blend-to-none-anim", 1, "custom-blend-to-none-box", "webkitFilter", 'custom(url(no-shader-needed.vs) none, 1 1 filter-box, arrayToNoneAnim array(10, 20))', 2],
+
+ ["custom-blend-single-element-anim", 1, "custom-blend-single-element-box", "webkitFilter", 'custom(url(no-shader-needed.vs) none, 1 1 filter-box, singleElementArray array(5))', 2],
+
+ ["custom-blend-two-floats-anim", 1, "custom-blend-two-floats-box", "webkitFilter", 'custom(url(no-shader-needed.vs) none, 1 1 filter-box, twoFloatsArray array(2, 6.4))', 2],
+
+ ["custom-blend-multiple-elements-anim", 1, "custom-blend-multiple-elements-box", "webkitFilter", 'custom(url(no-shader-needed.vs) none, 1 1 filter-box, multipleElementsArray array(5, 10, 5, 10, 5, 10, 5, 10, 5))', 4],
+
+ ["custom-blend-first-longer-anim", 1, "custom-blend-first-longer-box", "webkitFilter", 'custom(url(no-shader-needed.vs) none, 1 1 filter-box, firstLonger array(10, 10, 10, 10))', 2],
+
+ ["custom-blend-second-longer-anim", 1, "custom-blend-second-longer-box", "webkitFilter", 'custom(url(no-shader-needed.vs) none, 1 1 filter-box, secondLonger array(10, 10, 10, 10, 10))', 2]];
+ runAnimationTest(expectedValues);
+ </script>
+</head>
+<body>
+ <div class="box" id="custom-blend-from-none-box"></div>
+ <div class="box" id="custom-blend-to-none-box"></div>
+ <div class="box" id="custom-blend-single-element-box"></div>
+ <div class="box" id="custom-blend-two-floats-box"></div>
+ <div class="box" id="custom-blend-multiple-elements-box"></div>
+ <div class="box" id="custom-blend-first-longer-box"></div>
+ <div class="box" id="custom-blend-second-longer-box"></div>
+ <div id="result">
+ </div>
+</body>
+</html>