OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <svg> | 3 <svg> |
4 <circle></circle> | 4 <circle></circle> |
5 <text></text> | 5 <text></text> |
6 </svg> | 6 </svg> |
7 <script> | 7 <script> |
8 description( | 8 description( |
9 'Check that |undefined| and |null| arguments do not cause crashes, ' + | 9 'Check that |undefined| and |null| arguments do not cause crashes, ' + |
10 'but do throw exceptions.'); | 10 'but do throw exceptions.'); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 debug(''); | 65 debug(''); |
66 debug('checkEnclosure(SVGElement element, SVGRect rect)'); | 66 debug('checkEnclosure(SVGElement element, SVGRect rect)'); |
67 shouldNotThrow('svg.checkEnclosure(svg, rect)'); | 67 shouldNotThrow('svg.checkEnclosure(svg, rect)'); |
68 shouldThrow('svg.checkEnclosure(undefined, rect)'); | 68 shouldThrow('svg.checkEnclosure(undefined, rect)'); |
69 shouldThrow('svg.checkEnclosure(null, rect)'); | 69 shouldThrow('svg.checkEnclosure(null, rect)'); |
70 shouldThrow('svg.checkEnclosure(svg, undefined)'); | 70 shouldThrow('svg.checkEnclosure(svg, undefined)'); |
71 shouldThrow('svg.checkEnclosure(svg, null)'); | 71 shouldThrow('svg.checkEnclosure(svg, null)'); |
72 | 72 |
73 debug(''); | 73 debug(''); |
74 debug('SVGTransform createSVGTransformFromMatrix([Default=Undefined] optional SV
GMatrix matrix)'); | 74 debug('SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)'); |
75 // shouldNotThrow('svg.createSVGTransformFromMatrix()'); // FAIL | 75 shouldThrow('svg.createSVGTransformFromMatrix()'); |
76 shouldNotThrow('svg.createSVGTransformFromMatrix(matrix)'); | 76 shouldNotThrow('svg.createSVGTransformFromMatrix(matrix)'); |
77 shouldThrow('svg.createSVGTransformFromMatrix(undefined)'); | 77 shouldThrow('svg.createSVGTransformFromMatrix(undefined)'); |
78 shouldThrow('svg.createSVGTransformFromMatrix(null)'); | 78 shouldThrow('svg.createSVGTransformFromMatrix(null)'); |
79 | 79 |
80 | 80 |
81 debug(''); | 81 debug(''); |
82 debug(''); | 82 debug(''); |
83 debug('SVGTextContentElement'); | 83 debug('SVGTextContentElement'); |
84 | 84 |
85 debug(''); | 85 debug(''); |
86 debug('getCharNumAtPosition(SVGPoint point)'); | 86 debug('getCharNumAtPosition(SVGPoint point)'); |
87 shouldNotThrow('text.getCharNumAtPosition(point)'); | 87 shouldNotThrow('text.getCharNumAtPosition(point)'); |
88 shouldThrow('text.getCharNumAtPosition(undefined)'); | 88 shouldThrow('text.getCharNumAtPosition(undefined)'); |
89 shouldThrow('text.getCharNumAtPosition(null)'); | 89 shouldThrow('text.getCharNumAtPosition(null)'); |
90 | 90 |
91 </script> | 91 </script> |
OLD | NEW |