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

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

Issue 931583003: Add TypeChecking=Unrestricted to SVGElements where applicable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
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 <feDropShadow id=dropshadow></feDropShadow> 4 <feDropShadow id=dropshadow></feDropShadow>
5 <feGaussianBlur id=gaussian></feGaussianBlur> 5 <feGaussianBlur id=gaussian></feGaussianBlur>
6 <animate></animate> 6 <animate></animate>
7 </svg> 7 </svg>
8 <script> 8 <script>
9 description('Check that invalid values of arguments throw TypeError.'); 9 description('Check that invalid values of arguments throw TypeError.');
10 10
(...skipping 15 matching lines...) Expand all
26 shouldThrow('animateElm.endElementAt(NaN)'); 26 shouldThrow('animateElm.endElementAt(NaN)');
27 shouldThrow('animateElm.endElementAt(Infinity)'); 27 shouldThrow('animateElm.endElementAt(Infinity)');
28 28
29 debug(''); 29 debug('');
30 debug(''); 30 debug('');
31 debug('SVGFEDropShadowElement'); 31 debug('SVGFEDropShadowElement');
32 32
33 debug(''); 33 debug('');
34 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); 34 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)');
35 shouldNotThrow('dropShadow.setStdDeviation(0, 0)'); 35 shouldNotThrow('dropShadow.setStdDeviation(0, 0)');
36 shouldThrow('dropShadow.setStdDeviation(NaN, NaN)'); 36 shouldThrow('dropShadow.setStdDeviation(NaN, 1)');
37 shouldThrow('dropShadow.setStdDeviation(Infinity, Infinity)'); 37 shouldThrow('dropShadow.setStdDeviation(Infinity, 1)');
38 shouldThrow('dropShadow.setStdDeviation(1, NaN)');
39 shouldThrow('dropShadow.setStdDeviation(1, Infinity)');
38 40
39 debug(''); 41 debug('');
40 debug(''); 42 debug('');
41 debug('SVGFEGaussianBlurElement'); 43 debug('SVGFEGaussianBlurElement');
42 44
43 debug(''); 45 debug('');
44 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); 46 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)');
45 shouldNotThrow('gaussian.setStdDeviation(0, 0)'); 47 shouldNotThrow('gaussian.setStdDeviation(0, 0)');
46 shouldThrow('gaussian.setStdDeviation(NaN, NaN)'); 48 shouldThrow('gaussian.setStdDeviation(NaN, 1)');
47 shouldThrow('gaussian.setStdDeviation(Infinity, Infinity)'); 49 shouldThrow('gaussian.setStdDeviation(Infinity, 1)');
50 shouldThrow('gaussian.setStdDeviation(1, NaN)');
51 shouldThrow('gaussian.setStdDeviation(1, Infinity)');
48 52
49 </script> 53 </script>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/elementTimeControl-nan-crash.html ('k') | LayoutTests/svg/dom/method-argument-typechecks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698