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 <rect id="foo"></rect> |
| 8 <use xlink:href="#foo"></use> |
| 9 </svg> |
| 10 <script> |
| 11 description('Check that incorrect number of arguments throw TypeError.'); |
| 12 |
| 13 var dropShadow = document.getElementById('dropshadow'); |
| 14 var gaussian = document.getElementById('gaussian'); |
| 15 var rect = document.querySelector('rect'); |
| 16 var animateElm = document.querySelector('animate'); |
| 17 var useElm = document.querySelector('use'); |
| 18 |
| 19 debug('SVGAnimationElement'); |
| 20 |
| 21 debug(''); |
| 22 debug('beginElementAt(float offset)'); |
| 23 shouldThrow('animateElm.beginElementAt()'); |
| 24 shouldNotThrow('animateElm.beginElementAt(0)'); |
| 25 |
| 26 debug(''); |
| 27 debug('endElementAt(float offset)'); |
| 28 shouldThrow('animateElm.endElementAt()'); |
| 29 shouldNotThrow('animateElm.endElementAt(0)'); |
| 30 |
| 31 debug(''); |
| 32 debug(''); |
| 33 debug('SVGElementInstanceList'); |
| 34 |
| 35 debug(''); |
| 36 debug('item(unsigned long index)'); |
| 37 shouldThrow('useElm.instanceRoot.childNodes.item()'); |
| 38 shouldNotThrow('useElm.instanceRoot.childNodes.item(0)'); |
| 39 |
| 40 debug(''); |
| 41 debug(''); |
| 42 debug('SVGFEDropShadowElement'); |
| 43 |
| 44 debug(''); |
| 45 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); |
| 46 shouldThrow('dropShadow.setStdDeviation()'); |
| 47 shouldThrow('dropShadow.setStdDeviation(0)'); |
| 48 shouldNotThrow('dropShadow.setStdDeviation(0, 0)'); |
| 49 |
| 50 debug(''); |
| 51 debug(''); |
| 52 debug('SVGFEGaussianBlurElement'); |
| 53 |
| 54 debug(''); |
| 55 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); |
| 56 shouldThrow('gaussian.setStdDeviation()'); |
| 57 shouldThrow('gaussian.setStdDeviation(0)'); |
| 58 shouldNotThrow('gaussian.setStdDeviation(0, 0)'); |
| 59 |
| 60 debug(''); |
| 61 debug(''); |
| 62 debug('SVGTests'); |
| 63 |
| 64 debug(''); |
| 65 debug('hasExtension(DOMString extension)'); |
| 66 shouldThrow('rect.hasExtension()'); |
| 67 shouldNotThrow('rect.hasExtension("foo")'); |
| 68 |
| 69 </script> |
OLD | NEW |