OLD | NEW |
1 #library('SVG2Test'); | 1 #library('SVG2Test'); |
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 explicitly implement the IDL interfaces (is-checks | 6 // Test that SVG elements explicitly implement the IDL interfaces (is-checks |
7 // only, see SVGTest3 for behavioural tests). | 7 // only, see SVGTest3 for behavioural tests). |
8 | 8 |
9 main() { | 9 main() { |
10 | 10 |
11 insertTestDiv() { | 11 insertTestDiv() { |
12 var element = new Element.tag('div'); | 12 var element = new Element.tag('div'); |
13 element.innerHTML = @''' | 13 element.innerHTML = @''' |
(...skipping 25 matching lines...) Expand all Loading... |
39 Expect.isTrue(r is SVGLocatable); | 39 Expect.isTrue(r is SVGLocatable); |
40 | 40 |
41 // Interfaces not implemented. | 41 // Interfaces not implemented. |
42 Expect.isFalse(r is SVGNumber); | 42 Expect.isFalse(r is SVGNumber); |
43 Expect.isFalse(r is SVGRect); | 43 Expect.isFalse(r is SVGRect); |
44 Expect.isFalse(r is SVGSVGElement); | 44 Expect.isFalse(r is SVGSVGElement); |
45 | 45 |
46 div.remove(); | 46 div.remove(); |
47 }); | 47 }); |
48 } | 48 } |
OLD | NEW |