| 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'; |
| 5 | 6 |
| 6 // Test that SVG elements explicitly implement the IDL interfaces (is-checks | 7 // Test that SVG elements explicitly implement the IDL interfaces (is-checks |
| 7 // only, see SVGTest3 for behavioural tests). | 8 // only, see SVGTest3 for behavioural tests). |
| 8 | 9 |
| 9 main() { | 10 main() { |
| 10 | 11 |
| 11 insertTestDiv() { | 12 insertTestDiv() { |
| 12 var element = new Element.tag('div'); | 13 var element = new Element.tag('div'); |
| 13 element.innerHTML = r''' | 14 element.innerHTML = r''' |
| 14 <svg id='svg1' width='200' height='100'> | 15 <svg id='svg1' width='200' height='100'> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 expect(r, isSVGLocatable); | 57 expect(r, isSVGLocatable); |
| 57 | 58 |
| 58 // Interfaces not implemented. | 59 // Interfaces not implemented. |
| 59 expect(r, isNot(isSVGNumber)); | 60 expect(r, isNot(isSVGNumber)); |
| 60 expect(r, isNot(isSVGRect)); | 61 expect(r, isNot(isSVGRect)); |
| 61 expect(r, isNot(isSVGSVGElement)); | 62 expect(r, isNot(isSVGSVGElement)); |
| 62 | 63 |
| 63 div.remove(); | 64 div.remove(); |
| 64 }); | 65 }); |
| 65 } | 66 } |
| OLD | NEW |