Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: LayoutTests/svg/dom/method-argument-typechecks.html

Issue 231143002: Iron out some kinks in SVG IDL files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests; Drop feMorphology change. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698