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

Side by Side Diff: LayoutTests/animations/cross-fade-border-image-source.html

Issue 693613006: Remove "static:" element type from animation-test-helpers.js (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 #box { 4 #box {
5 position: absolute; 5 position: absolute;
6 left: 100px; 6 left: 100px;
7 top: 100px; 7 top: 100px;
8 height: 100px; 8 height: 100px;
9 width: 100px; 9 width: 100px;
10 background-color: green; 10 background-color: green;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 <script type="text/javascript" charset="utf-8"> 42 <script type="text/javascript" charset="utf-8">
43 // This test was flaky because it would start before the images were loaded. 43 // This test was flaky because it would start before the images were loaded.
44 var imagesLoaded = 0; 44 var imagesLoaded = 0;
45 function imageLoaded() { 45 function imageLoaded() {
46 ++imagesLoaded; 46 ++imagesLoaded;
47 if (imagesLoaded == 2) { 47 if (imagesLoaded == 2) {
48 const expectedValues = [ 48 const expectedValues = [
49 // [time, element-id, property, expected-value, tolerance] 49 // [time, element-id, property, expected-value, tolerance]
50 // FIXME: We can't test reading the borderImage shorthand because of bug #13658. 50 // FIXME: We can't test reading the borderImage shorthand because of bug #13658.
51 [2.5, "box", "borderImageSource", 0.5, 0.05], 51 [2.5, "box", "borderImageSource", 0.5, 0.05],
52 [2.5, ["box", "static:boxStatic"], "borderImageSource", 0.5, 0.05], 52 [2.5, ["box", "boxStatic"], "borderImageSource", 0.5, 0.05],
53 [2.5, ["boxShorthand", "static:boxStatic"], "borderImageSource", 0.5, 0. 05], 53 [2.5, ["boxShorthand", "boxStatic"], "borderImageSource", 0.5, 0.05],
54 ]; 54 ];
55 55
56 var doPixelTest = true; 56 var doPixelTest = true;
57 var disablePauseAPI = false; 57 var disablePauseAPI = false;
58 var startTestImmediately = true; 58 var startTestImmediately = true;
59 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, undefin ed, startTestImmediately); 59 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, undefin ed, startTestImmediately);
60 } 60 }
61 } 61 }
62 </script> 62 </script>
63 </head> 63 </head>
64 <body> 64 <body>
65 <div id="box"></div> 65 <div id="box"></div>
66 <div id="boxShorthand"></div> 66 <div id="boxShorthand"></div>
67 <div id="boxStatic"></div> 67 <div id="boxStatic"></div>
68 <div id="result"></div> 68 <div id="result"></div>
69 <img src="../animations/resources/stripes-100.png" onLoad="imageLoaded();"/> 69 <img src="../animations/resources/stripes-100.png" onLoad="imageLoaded();"/>
70 <img src="../animations/resources/green-100.png" onLoad="imageLoaded();"/> 70 <img src="../animations/resources/green-100.png" onLoad="imageLoaded();"/>
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW
« no previous file with comments | « LayoutTests/animations/cross-fade-background-image.html ('k') | LayoutTests/animations/cross-fade-list-style-image.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698