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

Side by Side Diff: tests/html/svg_3_test.dart

Issue 10947040: Take three of FooList to List<Foo> again. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 #library('SVG3Test'); 1 #library('SVG3Test');
2 #import('../../pkg/unittest/unittest.dart'); 2 #import('../../pkg/unittest/unittest.dart');
3 #import('../../pkg/unittest/html_config.dart'); 3 #import('../../pkg/unittest/html_config.dart');
4 #import('dart:html'); 4 #import('dart:html');
5 5
6 // Test that SVG elements have the operations advertised through all the IDL 6 // Test that SVG elements have the operations advertised through all the IDL
7 // interfaces. This is a 'duck typing' test, and does not explicitly use 'is' 7 // interfaces. This is a 'duck typing' test, and does not explicitly use 'is'
8 // checks on the expected interfaces (that is in SVGTest2). 8 // checks on the expected interfaces (that is in SVGTest2).
9 9
10 main() { 10 main() {
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 useHtmlConfiguration(); 23 useHtmlConfiguration();
24 24
25 /** 25 /**
26 * Verifies that [e] supports the operations on the SVGTests interface. 26 * Verifies that [e] supports the operations on the SVGTests interface.
27 */ 27 */
28 checkSVGTests(e) { 28 checkSVGTests(e) {
29 // Just check that the operations seem to exist. 29 // Just check that the operations seem to exist.
30 var rx = e.requiredExtensions; 30 var rx = e.requiredExtensions;
31 Expect.isTrue(rx is SVGStringList); 31 Expect.isTrue(rx is List<String>);
32 var rf = e.requiredFeatures; 32 var rf = e.requiredFeatures;
33 Expect.isTrue(rf is SVGStringList); 33 Expect.isTrue(rf is List<String>);
34 var sl = e.systemLanguage; 34 var sl = e.systemLanguage;
35 Expect.isTrue(sl is SVGStringList); 35 Expect.isTrue(sl is List<String>);
36 36
37 bool hasDoDo = e.hasExtension("DoDo"); 37 bool hasDoDo = e.hasExtension("DoDo");
38 Expect.isFalse(hasDoDo); 38 Expect.isFalse(hasDoDo);
39 } 39 }
40 40
41 /** 41 /**
42 * Verifies that [e] supports the operations on the SVGLangSpace interface. 42 * Verifies that [e] supports the operations on the SVGLangSpace interface.
43 */ 43 */
44 checkSVGLangSpace(e) { 44 checkSVGLangSpace(e) {
45 // Just check that the attribtes seem to exist. 45 // Just check that the attribtes seem to exist.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 testRect('rect_SVGTests', checkSVGTests); 120 testRect('rect_SVGTests', checkSVGTests);
121 testRect('rect_SVGLangSpace', checkSVGLangSpace); 121 testRect('rect_SVGLangSpace', checkSVGLangSpace);
122 testRect('rect_SVGExternalResourcesRequired', 122 testRect('rect_SVGExternalResourcesRequired',
123 checkSVGExternalResourcesRequired); 123 checkSVGExternalResourcesRequired);
124 testRect('rect_SVGStylable', checkSVGStylable); 124 testRect('rect_SVGStylable', checkSVGStylable);
125 testRect('rect_SVGLocatable', checkSVGLocatable); 125 testRect('rect_SVGLocatable', checkSVGLocatable);
126 testRect('rect_SVGTransformable', checkSVGTransformable); 126 testRect('rect_SVGTransformable', checkSVGTransformable);
127 127
128 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698