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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-circle-006.html

Issue 816533002: Import CSSWG Shapes tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more test expectations update 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Shape Outside Circle Radii - positive/negative, decimal/non-decim al</title>
5 <link rel="author" title="Adobe" href="http://html.adobe.com/">
6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
7 <link rel="reviewer" title="Alan Stearns" href="mailto:stearns@adobe.com "> <!-- 2014-03-04 -->
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-circle ">
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside- property">
10 <meta name="assert" content="A circle's radius may be in signed positive or decimal/non-decimal format. Negative
11 radii are invalid.">
12 <meta name="flags" content="dom">
13 <script src="../../../../../resources/testharness.js"></script>
14 <script src="../../../../../resources/testharnessreport.js"></script>
15 <script src="support/parsing-utils.js"></script>
16 </head>
17 <body>
18 <div id="log"></div>
19 <script type="text/javascript">
20 var valid_circle_radii_tests = [
21 {
22 "actual": "circle(+10px)",
23 "expected_inline": "circle(10px at 50% 50%)",
24 "expected_computed": "circle(10px at 50% 50%)"
25 },
26 {
27 "actual": "circle(+10.00px)",
28 "expected_inline": "circle(10px at 50% 50%)",
29 "expected_computed": "circle(10px at 50% 50%)"
30 },
31 {
32 "actual": "circle(+20.340px)",
33 "expected_inline": "circle(20.34px at 50% 50%)",
34 "expected_computed": "circle(20.34px at 50% 50%)"
35 },
36 {
37 "actual": "circle(+30.5px)",
38 "expected_inline": "circle(30.5px at 50% 50%)",
39 "expected_computed": "circle(30.5px at 50% 50%)"
40 },
41 {
42 "actual": "circle(+10%)",
43 "expected_inline": "circle(10% at 50% 50%)",
44 "expected_computed": "circle(10% at 50% 50%)"
45 },
46 {
47 "actual": "circle(+10.00%)",
48 "expected_inline": "circle(10% at 50% 50%)",
49 "expected_computed": "circle(10% at 50% 50%)"
50 },
51 {
52 "actual": "circle(+20.350%)",
53 "expected_inline": "circle(20.35% at 50% 50%)",
54 "expected_computed": "circle(20.35% at 50% 50%)"
55 },
56 {
57 "actual": "circle(+30.5%)",
58 "expected_inline": "circle(30.5% at 50% 50%)",
59 "expected_computed": "circle(30.5% at 50% 50%)"
60 }
61 ];
62 invalid_circle_radii_tests = [
63 {"name": "circle(-20px)"},
64 {"name": "circle(-20.340px)"}
65 ];
66 generate_tests( ParsingUtils.testInlineStyle,
67 ParsingUtils.buildTestCases(valid_circle_radii_tests , 'inline') );
68 generate_tests( ParsingUtils.testComputedStyle,
69 ParsingUtils.buildTestCases(valid_circle_radii_tests , 'computed') );
70 generate_tests( ParsingUtils.testInlineStyle,
71 ParsingUtils.buildTestCases(invalid_circle_radii_tes ts) );
72 </script>
73 </body>
74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698