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

Side by Side Diff: LayoutTests/svg/dom/method-argument-aritychecks.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
« no previous file with comments | « no previous file | LayoutTests/svg/dom/method-argument-aritychecks-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dom/method-argument-aritychecks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698