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