OLD | NEW |
1 #library('SVG3Test'); | 1 library SVG3Test; |
2 #import('../../pkg/unittest/unittest.dart'); | 2 import '../../pkg/unittest/lib/unittest.dart'; |
3 #import('../../pkg/unittest/html_config.dart'); | 3 import '../../pkg/unittest/lib/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() { |
11 | 11 |
12 var isString = predicate((x) => x is String, 'is a String'); | 12 var isString = predicate((x) => x is String, 'is a String'); |
13 var isStringList = predicate((x) => x is List<String>, 'is a List<String>'); | 13 var isStringList = predicate((x) => x is List<String>, 'is a List<String>'); |
14 var isSVGMatrix = predicate((x) => x is SVGMatrix, 'is a SVGMatrix'); | 14 var isSVGMatrix = predicate((x) => x is SVGMatrix, 'is a SVGMatrix'); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 testRect('rect_SVGTests', checkSVGTests); | 135 testRect('rect_SVGTests', checkSVGTests); |
136 testRect('rect_SVGLangSpace', checkSVGLangSpace); | 136 testRect('rect_SVGLangSpace', checkSVGLangSpace); |
137 testRect('rect_SVGExternalResourcesRequired', | 137 testRect('rect_SVGExternalResourcesRequired', |
138 checkSVGExternalResourcesRequired); | 138 checkSVGExternalResourcesRequired); |
139 testRect('rect_SVGStylable', checkSVGStylable); | 139 testRect('rect_SVGStylable', checkSVGStylable); |
140 testRect('rect_SVGLocatable', checkSVGLocatable); | 140 testRect('rect_SVGLocatable', checkSVGLocatable); |
141 testRect('rect_SVGTransformable', checkSVGTransformable); | 141 testRect('rect_SVGTransformable', checkSVGTransformable); |
142 | 142 |
143 } | 143 } |
OLD | NEW |