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

Side by Side Diff: sky/tests/animation/basic-declarative.sky

Issue 760183003: Enable/Unprefix Animations & Transitions, add basic tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: patch for landing Created 6 years 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 <sky>
2 <import src="../resources/chai.sky" />
3 <import src="../resources/mocha.sky" />
4 <div id="example"></div>
5 <style>
6 #example {
7 width: 100px;
8 height: 100px;
9 background: red;
10 position: relative;
11 animation-name: anim;
12 animation-timing-function: linear;
13 animation-duration: 5s;
14 }
15
16 @keyframes anim {
17 0% { top: 0px; }
18 100% { top: 100px; }
19 }
20 </style>
21 <script>
22 var example = document.getElementById('example');
23
24 describe('top', function() {
25 it('should amimate from 0 to 100px', function() {
26 internals.pauseAnimations(3);
27 assert.equal('60px', getComputedStyle(example).top);
28 });
29 });
30 </script>
31 </sky>
OLDNEW
« no previous file with comments | « sky/engine/web/WebRuntimeFeatures.cpp ('k') | sky/tests/animation/basic-declarative-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698