From 1850b455563eb1e3fd380a90fedc65775bba2c48 Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Wed, 10 Dec 2014 10:38:34 -0800 Subject: [PATCH] Enable/Unprefix Animations & Transitions, add basic tests This patch remove the Web Animations & CSS Animation runtime flags (and enables both). Removes prefixed Aninamations & Transitions and adds some basic tests & test support API. R=ojan@chromium.org Review URL: https://codereview.chromium.org/760183003 --- .../animation/basic-declarative-expected.txt | 5 +++ .../tests/animation/basic-declarative.sky | 31 +++++++++++++++++++ .../animation/basic-imperative-expected.txt | 5 +++ .../tests/animation/basic-imperative.sky | 16 ++++++++++ .../animation/basic-transition-expected.txt | 5 +++ .../tests/animation/basic-transition.sky | 31 +++++++++++++++++++ .../third_party/PrettyPatch/PrettyPatch.rb | 6 ++-- 7 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 engine/src/flutter/tests/animation/basic-declarative-expected.txt create mode 100644 engine/src/flutter/tests/animation/basic-declarative.sky create mode 100644 engine/src/flutter/tests/animation/basic-imperative-expected.txt create mode 100644 engine/src/flutter/tests/animation/basic-imperative.sky create mode 100644 engine/src/flutter/tests/animation/basic-transition-expected.txt create mode 100644 engine/src/flutter/tests/animation/basic-transition.sky diff --git a/engine/src/flutter/tests/animation/basic-declarative-expected.txt b/engine/src/flutter/tests/animation/basic-declarative-expected.txt new file mode 100644 index 0000000000..256d721022 --- /dev/null +++ b/engine/src/flutter/tests/animation/basic-declarative-expected.txt @@ -0,0 +1,5 @@ +Running 1 tests +ok 1 top should amimate from 0 to 100px +1 tests +1 pass +0 fail diff --git a/engine/src/flutter/tests/animation/basic-declarative.sky b/engine/src/flutter/tests/animation/basic-declarative.sky new file mode 100644 index 0000000000..83b428e0dd --- /dev/null +++ b/engine/src/flutter/tests/animation/basic-declarative.sky @@ -0,0 +1,31 @@ + + + +
+ + +
diff --git a/engine/src/flutter/tests/animation/basic-imperative-expected.txt b/engine/src/flutter/tests/animation/basic-imperative-expected.txt new file mode 100644 index 0000000000..5d685802cf --- /dev/null +++ b/engine/src/flutter/tests/animation/basic-imperative-expected.txt @@ -0,0 +1,5 @@ +Running 1 tests +ok 1 Element.animate opacity should amimate from 0 to 1 +1 tests +1 pass +0 fail diff --git a/engine/src/flutter/tests/animation/basic-imperative.sky b/engine/src/flutter/tests/animation/basic-imperative.sky new file mode 100644 index 0000000000..2a185cb18e --- /dev/null +++ b/engine/src/flutter/tests/animation/basic-imperative.sky @@ -0,0 +1,16 @@ + + + +
Hello, Sky
+ +
diff --git a/engine/src/flutter/tests/animation/basic-transition-expected.txt b/engine/src/flutter/tests/animation/basic-transition-expected.txt new file mode 100644 index 0000000000..ef547288f3 --- /dev/null +++ b/engine/src/flutter/tests/animation/basic-transition-expected.txt @@ -0,0 +1,5 @@ +Running 1 tests +ok 1 width should transition from 100px to 200px +1 tests +1 pass +0 fail diff --git a/engine/src/flutter/tests/animation/basic-transition.sky b/engine/src/flutter/tests/animation/basic-transition.sky new file mode 100644 index 0000000000..7fa2218d38 --- /dev/null +++ b/engine/src/flutter/tests/animation/basic-transition.sky @@ -0,0 +1,31 @@ + + + +
+ + +
diff --git a/engine/src/flutter/tools/third_party/PrettyPatch/PrettyPatch.rb b/engine/src/flutter/tools/third_party/PrettyPatch/PrettyPatch.rb index f5d80babb7..ee3543eecb 100644 --- a/engine/src/flutter/tools/third_party/PrettyPatch/PrettyPatch.rb +++ b/engine/src/flutter/tools/third_party/PrettyPatch/PrettyPatch.rb @@ -324,7 +324,7 @@ h1 :hover { } .overallComments .open { - -webkit-transition: height .2s; + transition: height .2s; height: 4em; } @@ -407,7 +407,7 @@ h1 :hover { font-family: sans-serif; font-size: small; font-style: normal; - -webkit-transition: opacity 0.5s; + transition: opacity 0.5s; } .LinkContainer a { @@ -487,7 +487,7 @@ div:focus { padding: 0 3px; outline: 1px solid #DDD; color: #8FDF5F; - font-size: small; + font-size: small; background-color: #EEE; }