| OLD | NEW |
| 1 #library('SVG1Test'); | 1 #library('SVG1Test'); |
| 2 #import('../../lib/unittest/unittest.dart'); | 2 #import('../../lib/unittest/unittest.dart'); |
| 3 #import('../../lib/unittest/html_config.dart'); | 3 #import('../../lib/unittest/html_config.dart'); |
| 4 #import('dart:html'); | 4 #import('dart:html'); |
| 5 | 5 |
| 6 // Test that SVG is present in dart:html API | 6 // Test that SVG is present in dart:html API |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 useHtmlConfiguration(); | 9 useHtmlConfiguration(); |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 Expect.isTrue(e != null); | 21 Expect.isTrue(e != null); |
| 22 | 22 |
| 23 SVGRectElement r = document.query('#rect1'); | 23 SVGRectElement r = document.query('#rect1'); |
| 24 Expect.equals(10, r.x.baseVal.value); | 24 Expect.equals(10, r.x.baseVal.value); |
| 25 Expect.equals(20, r.y.baseVal.value); | 25 Expect.equals(20, r.y.baseVal.value); |
| 26 Expect.equals(40, r.height.baseVal.value); | 26 Expect.equals(40, r.height.baseVal.value); |
| 27 Expect.equals(130, r.width.baseVal.value); | 27 Expect.equals(130, r.width.baseVal.value); |
| 28 Expect.equals(5, r.rx.baseVal.value); | 28 Expect.equals(5, r.rx.baseVal.value); |
| 29 }); | 29 }); |
| 30 } | 30 } |
| OLD | NEW |