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

Unified Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/border-image-source-interpolation.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 months 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: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/border-image-source-interpolation.html
diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/border-image-source-interpolation.html b/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/border-image-source-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..aabae3da531ccc728db6ed359681f8499bd4fc19
--- /dev/null
+++ b/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/border-image-source-interpolation.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+.target {
+ width: 50px;
+ height: 50px;
+ background-color: black;
+ display: inline-block;
+ border: 25px;
+}
+.replica {
+ background-color: green;
+ margin-right: 2px;
+}
+</style>
+<body>
+<script src="../testharness/testharness.js"></script>
+<script src="../testharness/testharnessreport.js"></script>
+<script src="resources/interpolation-test.js"></script>
+<script>
+// None to image
+var from = 'none';
+var to = 'url(../resources/stripes-100.png)';
+assertInterpolation({
+ property: 'border-image-source',
+ from: from,
+ to: to
+}, [
+ {at: -0.3, is: from},
+ {at: 0, is: from},
+ {at: 0.3, is: from},
+ {at: 0.6, is: to},
+ {at: 1, is: to},
+ {at: 1.5, is: to},
+]);
+
+// Image to image
+from = 'url(../resources/green-100.png)';
+to = 'url(../resources/stripes-100.png)';
+assertInterpolation({
+ property: 'border-image-source',
+ from: from,
+ to: to
+}, [
+ {at: -0.3, is: from},
+ {at: 0, is: from},
+ {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'},
+ {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'},
+ {at: 1, is: to},
+ {at: 1.5, is: to},
+]);
+
+// Image to gradient
+to = 'linear-gradient(45deg, blue, orange)';
+assertInterpolation({
+ property: 'border-image-source',
+ from: from,
+ to: to
+}, [
+ {at: -0.3, is: from},
+ {at: 0, is: from},
+ {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'},
+ {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'},
+ {at: 1, is: to},
+ {at: 1.5, is: to},
+]);
+
+// Gradient to gradient
+from = 'linear-gradient(-45deg, red, yellow)';
+assertInterpolation({
+ property: 'border-image-source',
+ from: from,
+ to: to
+}, [
+ {at: -0.3, is: from},
+ {at: 0, is: from},
+ {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'},
+ {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'},
+ {at: 1, is: to},
+ {at: 1.5, is: to},
+]);
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698