| OLD | NEW |
| 1 library SVG2Test; | 1 library SVG2Test; |
| 2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import '../../pkg/unittest/lib/unittest.dart'; |
| 3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import '../../pkg/unittest/lib/html_config.dart'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
| 6 | 6 |
| 7 // Test that SVG elements explicitly implement the IDL interfaces (is-checks | 7 // Test that SVG elements explicitly implement the IDL interfaces (is-checks |
| 8 // only, see SVGTest3 for behavioural tests). | 8 // only, see SVGTest3 for behavioural tests). |
| 9 | 9 |
| 10 main() { | 10 main() { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Direct inheritance chain | 47 // Direct inheritance chain |
| 48 expect(r, isSvgElement); | 48 expect(r, isSvgElement); |
| 49 expect(r, isElement); | 49 expect(r, isElement); |
| 50 expect(r, isNode); | 50 expect(r, isNode); |
| 51 | 51 |
| 52 // Other implemented interfaces. | 52 // Other implemented interfaces. |
| 53 expect(r, isSvgTests); | 53 expect(r, isSvgTests); |
| 54 expect(r, isSvgLangSpace); | 54 expect(r, isSvgLangSpace); |
| 55 expect(r, isSvgExternalResourcesRequired); | 55 expect(r, isSvgExternalResourcesRequired); |
| 56 expect(r, isSvgStylable); | |
| 57 expect(r, isSvgTransformable); | 56 expect(r, isSvgTransformable); |
| 58 expect(r, isSvgLocatable); | 57 expect(r, isSvgLocatable); |
| 59 | 58 |
| 60 // Interfaces not implemented. | 59 // Interfaces not implemented. |
| 61 expect(r, isNot(isSvgNumber)); | 60 expect(r, isNot(isSvgNumber)); |
| 62 expect(r, isNot(isSvgRect)); | 61 expect(r, isNot(isSvgRect)); |
| 63 expect(r, isNot(isSvgSvgElement)); | 62 expect(r, isNot(isSvgSvgElement)); |
| 64 | 63 |
| 65 div.remove(); | 64 div.remove(); |
| 66 }); | 65 }); |
| 67 } | 66 } |
| OLD | NEW |