OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <svg> |
| 4 <feDropShadow id=dropshadow></feDropShadow> |
| 5 <feGaussianBlur id=gaussian></feGaussianBlur> |
| 6 <animate></animate> |
| 7 </svg> |
| 8 <script> |
| 9 description('Check that invalid values of arguments throw TypeError.'); |
| 10 |
| 11 var dropShadow = document.getElementById('dropshadow'); |
| 12 var gaussian = document.getElementById('gaussian'); |
| 13 var animateElm = document.querySelector('animate'); |
| 14 |
| 15 debug('SVGAnimationElement'); |
| 16 |
| 17 debug(''); |
| 18 debug('beginElementAt(float offset)'); |
| 19 shouldNotThrow('animateElm.beginElementAt(0)'); |
| 20 shouldThrow('animateElm.beginElementAt(NaN)'); |
| 21 shouldThrow('animateElm.beginElementAt(Infinity)'); |
| 22 |
| 23 debug(''); |
| 24 debug('endElementAt(float offset)'); |
| 25 shouldNotThrow('animateElm.endElementAt(0)'); |
| 26 shouldThrow('animateElm.endElementAt(NaN)'); |
| 27 shouldThrow('animateElm.endElementAt(Infinity)'); |
| 28 |
| 29 debug(''); |
| 30 debug(''); |
| 31 debug('SVGFEDropShadowElement'); |
| 32 |
| 33 debug(''); |
| 34 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); |
| 35 shouldNotThrow('dropShadow.setStdDeviation(0, 0)'); |
| 36 shouldThrow('dropShadow.setStdDeviation(NaN, NaN)'); |
| 37 shouldThrow('dropShadow.setStdDeviation(Infinity, Infinity)'); |
| 38 |
| 39 debug(''); |
| 40 debug(''); |
| 41 debug('SVGFEGaussianBlurElement'); |
| 42 |
| 43 debug(''); |
| 44 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); |
| 45 shouldNotThrow('gaussian.setStdDeviation(0, 0)'); |
| 46 shouldThrow('gaussian.setStdDeviation(NaN, NaN)'); |
| 47 shouldThrow('gaussian.setStdDeviation(Infinity, Infinity)'); |
| 48 |
| 49 </script> |
OLD | NEW |