OLD | NEW |
1 #library('SVG2Test'); | 1 #library('SVG2Test'); |
2 #import('../../../testing/unittest/unittest.dart'); | 2 #import('../../../testing/unittest/unittest_dom.dart'); |
3 #import('dart:dom'); | 3 #import('dart:dom'); |
4 | 4 |
5 // Test that SVG elements explicitly implement the IDL interfaces (is-checks | 5 // Test that SVG elements explicitly implement the IDL interfaces (is-checks |
6 // only, see SVGTest3 for behavioural tests). | 6 // only, see SVGTest3 for behavioural tests). |
7 | 7 |
8 main() { | 8 main() { |
9 | 9 |
10 insertTestDiv() { | 10 insertTestDiv() { |
11 var element = document.createElement('div'); | 11 var element = document.createElement('div'); |
12 element.innerHTML = @''' | 12 element.innerHTML = @''' |
(...skipping 25 matching lines...) Expand all Loading... |
38 Expect.isTrue(r is SVGLocatable); | 38 Expect.isTrue(r is SVGLocatable); |
39 | 39 |
40 // Interfaces not implemented. | 40 // Interfaces not implemented. |
41 Expect.isFalse(r is SVGNumber); | 41 Expect.isFalse(r is SVGNumber); |
42 Expect.isFalse(r is SVGRect); | 42 Expect.isFalse(r is SVGRect); |
43 Expect.isFalse(r is SVGSVGElement); | 43 Expect.isFalse(r is SVGSVGElement); |
44 | 44 |
45 document.body.removeChild(div); | 45 document.body.removeChild(div); |
46 }); | 46 }); |
47 } | 47 } |
OLD | NEW |