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

Side by Side Diff: LayoutTests/cssom/cssvalue-comparison.html

Issue 26147006: Fix three bugs in the equals() implementations for css gradients. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/cssom/cssvalue-comparison-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>CSSValue comparison test</title> 4 <title>CSSValue comparison test</title>
5 <script type="text/javascript" src="../resources/testharness.js"></script> 5 <script type="text/javascript" src="../resources/testharness.js"></script>
6 <script type="text/javascript" src="../resources/testharnessreport.js"></scrip t> 6 <script type="text/javascript" src="../resources/testharnessreport.js"></scrip t>
7 </head> 7 </head>
8 <body onload="run()"> 8 <body onload="run()">
9 <p>This test verifies that CSSValue objects comparison works correctly.</p> 9 <p>This test verifies that CSSValue objects comparison works correctly.</p>
10 <div id="test" contenteditable></div> 10 <div id="test" contenteditable></div>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 {"border-radius" : ["30px 75px 15px 15px", "164px / 82px", "40 px"]}, // quads 43 {"border-radius" : ["30px 75px 15px 15px", "164px / 82px", "40 px"]}, // quads
44 {"stop-color" : ["rgb(255,0,0)", "#FF5566"]}, // hex, rgb colo r 44 {"stop-color" : ["rgb(255,0,0)", "#FF5566"]}, // hex, rgb colo r
45 {"-webkit-clip-path" : ["polygon(evenodd, 10px 75px, 180px 180 px, 100px 10px, 10px 180px, 180px 75px, 10px 75px)", "polygon(nonzero, 20% 20%, 80% 20%, 80% 80%, 20% 80%)"]}, // shape value 45 {"-webkit-clip-path" : ["polygon(evenodd, 10px 75px, 180px 180 px, 100px 10px, 10px 180px, 180px 75px, 10px 75px)", "polygon(nonzero, 20% 20%, 80% 20%, 80% 80%, 20% 80%)"]}, // shape value
46 {"-webkit-animation-duration" : ["10s", "100ms"]}, // seconds, milliseconds 46 {"-webkit-animation-duration" : ["10s", "100ms"]}, // seconds, milliseconds
47 {"color" : ["red", "blue"]}, // ident 47 {"color" : ["red", "blue"]}, // ident
48 {"border-image-source" : ["url(resources/greenbox.png)", "url( resources/redbox.png)"]}, // image 48 {"border-image-source" : ["url(resources/greenbox.png)", "url( resources/redbox.png)"]}, // image
49 {"border-image-slice" : ["1 2 3 4", "2 3 4 5"]}, // border ima ge slice 49 {"border-image-slice" : ["1 2 3 4", "2 3 4 5"]}, // border ima ge slice
50 {"cursor" : ["url(resources/greenbox.png) 0 0, pointer", "url( resources/cursor.png) 1 1, wait"]}, // cursor 50 {"cursor" : ["url(resources/greenbox.png) 0 0, pointer", "url( resources/cursor.png) 1 1, wait"]}, // cursor
51 {"font" : ["italic bold 12px/30px arial", "italic bold 8px/16p x helvetica"]}, // font 51 {"font" : ["italic bold 12px/30px arial", "italic bold 8px/16p x helvetica"]}, // font
52 {"background" : ["-webkit-gradient(linear, left top, left bott om, from(#ccc), to(#000))", "-webkit-gradient(radial, 45 45, 0, 52 50, 0, from(# A7D30C), to(rgba(1,159,98,0)), color-stop(90%, #019F62))"]}, // gradients 52 {"background" : ["-webkit-gradient(linear, left top, left bott om, from(#ccc), to(#000))", "-webkit-gradient(radial, 45 45, 0, 52 50, 0, from(# A7D30C), to(rgba(1,159,98,0)), color-stop(90%, #019F62))"]}, // gradients
53 {"background" : ["radial-gradient(circle, #ccc, #000)"]}, // g radients
54 {"background" : ["linear-gradient(#000, #234)", "linear-gradie nt(to top, #000, #234)"]}, // gradients
53 {"background-image" : ["-webkit-cross-fade(url(dummy://example .png), url(dummy://example.png), 50%)", "-webkit-cross-fade(url(dummy://backgrou nd.png), url(dummy://foreground.png), 80%)"]}, // crossfade 55 {"background-image" : ["-webkit-cross-fade(url(dummy://example .png), url(dummy://example.png), 50%)", "-webkit-cross-fade(url(dummy://backgrou nd.png), url(dummy://foreground.png), 80%)"]}, // crossfade
54 {"-webkit-box-reflect" : ["below 10px", "below 0px -webkit-gra dient(linear, left top, left bottom, from(transparent), to(rgba(10, 55, 234, 1)) )"]}, // reflect 56 {"-webkit-box-reflect" : ["below 10px", "below 0px -webkit-gra dient(linear, left top, left bottom, from(transparent), to(rgba(10, 55, 234, 1)) )"]}, // reflect
55 {"-webkit-box-shadow" : ["0 -20px 10px red, 0 20px 10px blue", "0 20px 10px blue", "5px 5px 5px rgba(0, 0, 0, 0.3)"]}, // shadow 57 {"-webkit-box-shadow" : ["0 -20px 10px red, 0 20px 10px blue", "0 20px 10px blue", "5px 5px 5px rgba(0, 0, 0, 0.3)"]}, // shadow
56 {"-webkit-transition-timing-function" : ["cubic-bezier(0.25, 0 .1, 0.25, 1)", "linear", "steps(3, end)"]}, // timing functions 58 {"-webkit-transition-timing-function" : ["cubic-bezier(0.25, 0 .1, 0.25, 1)", "linear", "steps(3, end)"]}, // timing functions
57 {"-webkit-transform" : ["rotate(30deg)", "translate(50px,50px) ", "scale(2,4)", "skew(30deg,20deg)", "matrix(0.4,0.5,-0.5,0.4,0,0)"]}, // trans forms 59 {"-webkit-transform" : ["rotate(30deg)", "translate(50px,50px) ", "scale(2,4)", "skew(30deg,20deg)", "matrix(0.4,0.5,-0.5,0.4,0,0)"]}, // trans forms
58 {"-webkit-line-box-contain" : ["inline-box", "font", "glyphs", "replaced"]}, // line-box-contain 60 {"-webkit-line-box-contain" : ["inline-box", "font", "glyphs", "replaced"]}, // line-box-contain
59 {"background-image" : ["-webkit-image-set(url(dummy://test.png ) 1x, url(dummy://test.png) 2x)", "-webkit-image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set 61 {"background-image" : ["-webkit-image-set(url(dummy://test.png ) 1x, url(dummy://test.png) 2x)", "-webkit-image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
60 {"-webkit-filter" : ["grayscale(100%) sepia(100%)", "sepia(10% ) grayscale(50%)"]}, // filter 62 {"-webkit-filter" : ["grayscale(100%) sepia(100%)", "sepia(10% ) grayscale(50%)"]}, // filter
61 {"-webkit-dashboard-region" : ["dashboard-region(label circle) ", "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectan gle 5px 6px 7px 8px)"]} // dashboard region 63 {"-webkit-dashboard-region" : ["dashboard-region(label circle) ", "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectan gle 5px 6px 7px 8px)"]} // dashboard region
62 ]; 64 ];
(...skipping 12 matching lines...) Expand all
75 test(function() {assert_false(runTest(key, testValues[0], testVa lues[1], false))}, "Two CSSValues \"" + testValues[0] + "\" and \"" + testValues [1] + "\" for property \"" + key + "\" are not equal."); 77 test(function() {assert_false(runTest(key, testValues[0], testVa lues[1], false))}, "Two CSSValues \"" + testValues[0] + "\" and \"" + testValues [1] + "\" for property \"" + key + "\" are not equal.");
76 } 78 }
77 } 79 }
78 80
79 done(); 81 done();
80 } 82 }
81 83
82 </script> 84 </script>
83 </body> 85 </body>
84 </html> 86 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/cssom/cssvalue-comparison-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698