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

Unified Diff: sky/tests/animation/basic-imperative.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 side-by-side diff with in-line comments
Download patch
Index: sky/tests/animation/basic-imperative.sky
diff --git a/sky/tests/animation/basic-imperative.sky b/sky/tests/animation/basic-imperative.sky
new file mode 100644
index 0000000000000000000000000000000000000000..2a185cb18ecf8bc05de3707a8e94cf06c3da178d
--- /dev/null
+++ b/sky/tests/animation/basic-imperative.sky
@@ -0,0 +1,16 @@
+<sky>
+<import src="../resources/chai.sky" />
+<import src="../resources/mocha.sky" />
+<div id="example">Hello, Sky</div>
+<script>
+var example = document.getElementById('example');
+
+describe('Element.animate opacity', function() {
+ it('should amimate from 0 to 1', function() {
+ example.animate([{ opacity: 0 }, { opacity: 1}], 2000);
+ internals.pauseAnimations(.5);
+ assert.equal(.25, getComputedStyle(example).opacity);
+ });
+});
+</script>
+</sky>
« no previous file with comments | « sky/tests/animation/basic-declarative-expected.txt ('k') | sky/tests/animation/basic-imperative-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698