OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <title>Whitespace in <angle> attribute values</title> | 2 <title>Whitespace in <angle> attribute values</title> |
3 <script src=../../resources/testharness.js></script> | 3 <script src=../../resources/testharness.js></script> |
4 <script src=../../resources/testharnessreport.js></script> | 4 <script src=../../resources/testharnessreport.js></script> |
5 <script src=resources/whitespace-helper.js></script> | 5 <script src=resources/whitespace-helper.js></script> |
6 <svg id="testcontainer"> | 6 <svg id="testcontainer"> |
7 <defs> | 7 <defs> |
8 <marker/> | 8 <marker/> |
9 </defs> | 9 </defs> |
10 </svg> | 10 </svg> |
(...skipping 14 matching lines...) Expand all Loading... |
25 whitespace, | 25 whitespace, |
26 [ "-47", ".1", "0.35", "1e-10", "+32", "+17E-1", "17e+2" ], //
valid | 26 [ "-47", ".1", "0.35", "1e-10", "+32", "+17E-1", "17e+2" ], //
valid |
27 [ Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINIT
Y, "fnord", "E", "e", "e+", "E-", "-", "+", "-.", ".-", ".", "+.", ".E0", "e1" ]
, // invalid | 27 [ Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINIT
Y, "fnord", "E", "e", "e+", "E-", "-", "+", "-.", ".-", ".", "+.", ".E0", "e1" ]
, // invalid |
28 [ "", "deg", "rad", "grad" ], // valid units | 28 [ "", "deg", "rad", "grad" ], // valid units |
29 garbage, | 29 garbage, |
30 function(elm, value) { assert_approx_equals(elm.orientAngle.bas
eVal.valueInSpecifiedUnits, parseFloat(value), EPSILON); }, | 30 function(elm, value) { assert_approx_equals(elm.orientAngle.bas
eVal.valueInSpecifiedUnits, parseFloat(value), EPSILON); }, |
31 function(elm, expected) { assert_approx_equals(elm.orientAngle.
baseVal.value, expected, EPSILON); } ); | 31 function(elm, expected) { assert_approx_equals(elm.orientAngle.
baseVal.value, expected, EPSILON); } ); |
32 | 32 |
33 | 33 |
34 </script> | 34 </script> |
OLD | NEW |