Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: LayoutTests/transitions/svg-text-shadow-transition.html

Issue 716963002: Remove property-specific handling in animation-test-helpers.js (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@animhelpercleanup
Patch Set: rm whitespace Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .text {
6 -webkit-transition-duration: 1s;
7 -webkit-transition-timing-function: linear;
8 -webkit-transition-property: text-shadow;
9 }
10
11 #text {
12 text-shadow: -25px -5px 15px red;
13 }
14
15 #text.final {
16 text-shadow: 5px 5px 15px green;
17 }
18 </style>
19
20 <script src="../animations/resources/animation-test-helpers.js"></script>
21 <script type="text/javascript">
22 const expectedValues = [
23 // [time, element-id, property, expected-value, tolerance]
24 [0, 'text', 'text-shadow', [-25, -5, 0, 15], 4],
25 [1, 'text', 'text-shadow', [5, 5, 0, 15], 4]
26 ];
27
28 function setupTest()
29 {
30 document.getElementById('text').className.baseVal = 'text final';
31 }
32
33 var doPixelTest = true;
34 runTransitionTest(expectedValues, setupTest, undefined, doPixelTest);
35 </script>
36 </head>
37 <body>
38 <svg width="400" height="100">
39 <text id="text" class="text" x="10" y="50" style="font-size:30pt; font-w eight:bold;">Shadow on texts</text>
40 </svg>
41
42 <div id="result">
43 </div>
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698