| OLD | NEW |
| 1 library SVG1Test; | 1 library SVG1Test; |
| 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 is present in dart:html API | 7 // Test that SVG is present in dart:html API |
| 7 | 8 |
| 8 main() { | 9 main() { |
| 9 useHtmlConfiguration(); | 10 useHtmlConfiguration(); |
| 10 | 11 |
| 11 var isSVGElement = predicate((x) => x is SVGElement, 'is a SVGElement'); | 12 var isSVGElement = predicate((x) => x is SVGElement, 'is a SVGElement'); |
| 12 | 13 |
| 13 test('simpleRect', () { | 14 test('simpleRect', () { |
| 14 var div = new Element.tag('div'); | 15 var div = new Element.tag('div'); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 var logo = new SVGElement.svg(""" | 37 var logo = new SVGElement.svg(""" |
| 37 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> | 38 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> |
| 38 <path/> | 39 <path/> |
| 39 </svg> | 40 </svg> |
| 40 """); | 41 """); |
| 41 | 42 |
| 42 expect(logo, isSVGElement); | 43 expect(logo, isSVGElement); |
| 43 | 44 |
| 44 }); | 45 }); |
| 45 } | 46 } |
| OLD | NEW |