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

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

Issue 252893004: Remove SVGElementInstanceList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add expected results Created 6 years, 7 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
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 <rect id="foo"></rect> 7 <rect id="foo"></rect>
8 <use xlink:href="#foo"></use> 8 <use xlink:href="#foo"></use>
9 </svg> 9 </svg>
10 <script> 10 <script>
(...skipping 12 matching lines...) Expand all
23 shouldThrow('animateElm.beginElementAt()'); 23 shouldThrow('animateElm.beginElementAt()');
24 shouldNotThrow('animateElm.beginElementAt(0)'); 24 shouldNotThrow('animateElm.beginElementAt(0)');
25 25
26 debug(''); 26 debug('');
27 debug('endElementAt(float offset)'); 27 debug('endElementAt(float offset)');
28 shouldThrow('animateElm.endElementAt()'); 28 shouldThrow('animateElm.endElementAt()');
29 shouldNotThrow('animateElm.endElementAt(0)'); 29 shouldNotThrow('animateElm.endElementAt(0)');
30 30
31 debug(''); 31 debug('');
32 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'); 33 debug('SVGFEDropShadowElement');
43 34
44 debug(''); 35 debug('');
45 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); 36 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)');
46 shouldThrow('dropShadow.setStdDeviation()'); 37 shouldThrow('dropShadow.setStdDeviation()');
47 shouldThrow('dropShadow.setStdDeviation(0)'); 38 shouldThrow('dropShadow.setStdDeviation(0)');
48 shouldNotThrow('dropShadow.setStdDeviation(0, 0)'); 39 shouldNotThrow('dropShadow.setStdDeviation(0, 0)');
49 40
50 debug(''); 41 debug('');
51 debug(''); 42 debug('');
52 debug('SVGFEGaussianBlurElement'); 43 debug('SVGFEGaussianBlurElement');
53 44
54 debug(''); 45 debug('');
55 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)'); 46 debug('setStdDeviation(float stdDeviationX, float stdDeviationY)');
56 shouldThrow('gaussian.setStdDeviation()'); 47 shouldThrow('gaussian.setStdDeviation()');
57 shouldThrow('gaussian.setStdDeviation(0)'); 48 shouldThrow('gaussian.setStdDeviation(0)');
58 shouldNotThrow('gaussian.setStdDeviation(0, 0)'); 49 shouldNotThrow('gaussian.setStdDeviation(0, 0)');
59 50
60 debug(''); 51 debug('');
61 debug(''); 52 debug('');
62 debug('SVGTests'); 53 debug('SVGTests');
63 54
64 debug(''); 55 debug('');
65 debug('hasExtension(DOMString extension)'); 56 debug('hasExtension(DOMString extension)');
66 shouldThrow('rect.hasExtension()'); 57 shouldThrow('rect.hasExtension()');
67 shouldNotThrow('rect.hasExtension("foo")'); 58 shouldNotThrow('rect.hasExtension("foo")');
68 59
69 </script> 60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698