2 <title>Whitespace in attribute values tests
</title>
3 <script src=../../resources/testharness.js
></script>
4 <script src=../../resources/testharnessreport.js
></script>
5 <script src=resources/whitespace-helper.js
></script>
6 <svg id=
"testcontainer">
11 <feTurbulence></feTurbulence>
17 var svg
= document
.querySelector("svg");
20 var EPSILON
= Math
.pow(2, -24); // float epsilon
21 var whitespace
= [ "", " ", " ", "\r\n\t ", "\f" ];
22 var garbage
= [ "a", "e", "foo", ")90" ];
23 var validunits
= [ "", "em", "ex", "px", "in", "cm", "mm", "pt", "pc", "%" ];
26 document
.getElementsByTagName("feTurbulence")[0], // workaround for broken querySelector on camelcased elements
28 0, // expected default value (FIXME: should be 1)
30 [ "-47", "0", "+32", "1241245" ],
31 [ Number
.NaN
, Number
.POSITIVE_INFINITY
, Number
.NEGATIVE_INFINITY
, "fnord", "E", "e", "e+", "E-", "-", "+", "-.", ".-", ".", "+.", ".E0", "e1", "+17E-1", "17e+2", "0.35", "1e-10", ".1" ],
34 function(elm
, value
) { assert_equals(elm
.numOctaves
.baseVal
, parseInt(value
)); },
35 function(elm
, expected
) { assert_equals(elm
.numOctaves
.baseVal
, expected
); } );