| Index: LayoutTests/svg/dom/method-argument-typechecks.html
|
| diff --git a/LayoutTests/svg/dom/method-argument-typechecks.html b/LayoutTests/svg/dom/method-argument-typechecks.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0d1c109fc483d66dfc0cb4c1415cd7d3d6ea3c0f
|
| --- /dev/null
|
| +++ b/LayoutTests/svg/dom/method-argument-typechecks.html
|
| @@ -0,0 +1,49 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<svg>
|
| + <feDropShadow id=dropshadow></feDropShadow>
|
| + <feGaussianBlur id=gaussian></feGaussianBlur>
|
| + <animate></animate>
|
| +</svg>
|
| +<script>
|
| +description('Check that invalid values of arguments throw TypeError.');
|
| +
|
| +var dropShadow = document.getElementById('dropshadow');
|
| +var gaussian = document.getElementById('gaussian');
|
| +var animateElm = document.querySelector('animate');
|
| +
|
| +debug('SVGAnimationElement');
|
| +
|
| +debug('');
|
| +debug('beginElementAt(float offset)');
|
| +shouldNotThrow('animateElm.beginElementAt(0)');
|
| +shouldThrow('animateElm.beginElementAt(NaN)');
|
| +shouldThrow('animateElm.beginElementAt(Infinity)');
|
| +
|
| +debug('');
|
| +debug('endElementAt(float offset)');
|
| +shouldNotThrow('animateElm.endElementAt(0)');
|
| +shouldThrow('animateElm.endElementAt(NaN)');
|
| +shouldThrow('animateElm.endElementAt(Infinity)');
|
| +
|
| +debug('');
|
| +debug('');
|
| +debug('SVGFEDropShadowElement');
|
| +
|
| +debug('');
|
| +debug('setStdDeviation(float stdDeviationX, float stdDeviationY)');
|
| +shouldNotThrow('dropShadow.setStdDeviation(0, 0)');
|
| +shouldThrow('dropShadow.setStdDeviation(NaN, NaN)');
|
| +shouldThrow('dropShadow.setStdDeviation(Infinity, Infinity)');
|
| +
|
| +debug('');
|
| +debug('');
|
| +debug('SVGFEGaussianBlurElement');
|
| +
|
| +debug('');
|
| +debug('setStdDeviation(float stdDeviationX, float stdDeviationY)');
|
| +shouldNotThrow('gaussian.setStdDeviation(0, 0)');
|
| +shouldThrow('gaussian.setStdDeviation(NaN, NaN)');
|
| +shouldThrow('gaussian.setStdDeviation(Infinity, Infinity)');
|
| +
|
| +</script>
|
|
|