Commit e97c07cb authored by timloh@chromium.org's avatar timloh@chromium.org

Fix transitions/cross-fade-background-image.html

This test started failing after codereview.chromium.org/716963002. The
change to transitions/cross-fade-border-image.html in the linked patch
is similar. Since the tryservers don't have numbers in their paths we
didn't notice this test needed updating.

BUG=432566

Review URL: https://codereview.chromium.org/722753002

git-svn-id: svn://svn.chromium.org/blink/trunk@185231 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4b69bb2f
...@@ -1380,6 +1380,4 @@ crbug.com/431688 [ Win Release ] webaudio/oscillator-sine.html [ Failure ] ...@@ -1380,6 +1380,4 @@ crbug.com/431688 [ Win Release ] webaudio/oscillator-sine.html [ Failure ]
crbug.com/431778 [ Win7 Linux Debug ] http/tests/security/shape-image-cors.html [ Pass Crash ] crbug.com/431778 [ Win7 Linux Debug ] http/tests/security/shape-image-cors.html [ Pass Crash ]
crbug.com/431643 [ Win ] http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_cross_origin_redirect_chain_allow_timing.html [ Pass Failure ] crbug.com/431643 [ Win ] http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_cross_origin_redirect_chain_allow_timing.html [ Pass Failure ]
crbug.com/432566 transitions/cross-fade-background-image.html [ Failure ]
crbug.com/432566 virtual/threaded/transitions/cross-fade-background-image.html [ Failure ]
Bug(senorblanco) virtual/textblob/fast/text/justify-ideograph-vertical.html [ NeedsRebaseline ] Bug(senorblanco) virtual/textblob/fast/text/justify-ideograph-vertical.html [ NeedsRebaseline ]
PASS - "background-image" property for "box" element at 0.5s saw something close to: 0.5 PASS - "background-image" property for "box" and "boxStatic" elements at 0.5s are close enough to each other
PASS - "background-image" property for "boxShorthand" element at 0.5s saw something close to: 0.5 PASS - "background-image" property for "boxShorthand" and "boxStatic" elements at 0.5s are close enough to each other
...@@ -29,14 +29,19 @@ ...@@ -29,14 +29,19 @@
background: url('../fast/backgrounds/repeat/resources/nav.blue.gif'); background: url('../fast/backgrounds/repeat/resources/nav.blue.gif');
} }
#boxStatic {
background-image: -webkit-cross-fade(url('../fast/backgrounds/repeat/resources/gradient.gif'),
url('../fast/backgrounds/repeat/resources/nav.blue.gif'), 0.5);
}
</style> </style>
<script src="../animations/resources/animation-test-helpers.js" type="text/javascript"></script> <script src="../animations/resources/animation-test-helpers.js" type="text/javascript"></script>
<script> <script>
const expectedValues = [ const expectedValues = [
// [time, element-id, property, expected-value, tolerance] // [time, element-id, property, expected-value, tolerance]
[0.5, 'box', 'background-image', 0.5, 0.05], [0.5, ['box', 'boxStatic'], 'background-image', null, 0.05],
[0.5, 'boxShorthand', 'background-image', 0.5, 0.05], [0.5, ['boxShorthand', 'boxStatic'], 'background-image', null, 0.05],
]; ];
function setupTest() function setupTest()
...@@ -51,6 +56,7 @@ ...@@ -51,6 +56,7 @@
<body> <body>
<div id="box" class="box"></div> <div id="box" class="box"></div>
<div id="boxShorthand" class="box"></div> <div id="boxShorthand" class="box"></div>
<div id="boxStatic" class="box"></div>
<div id="result"></div> <div id="result"></div>
</body> </body>
......
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