| OLD | NEW |
| 1 #library('SVG3Test'); | 1 #library('SVG3Test'); |
| 2 #import('../../pkg/unittest/unittest.dart'); | 2 #import('../../pkg/unittest/unittest.dart'); |
| 3 #import('../../pkg/unittest/html_config.dart'); | 3 #import('../../pkg/unittest/html_config.dart'); |
| 4 #import('dart:html'); | 4 #import('dart:html'); |
| 5 | 5 |
| 6 // Test that SVG elements have the operations advertised through all the IDL | 6 // Test that SVG elements have the operations advertised through all the IDL |
| 7 // interfaces. This is a 'duck typing' test, and does not explicitly use 'is' | 7 // interfaces. This is a 'duck typing' test, and does not explicitly use 'is' |
| 8 // checks on the expected interfaces (that is in SVGTest2). | 8 // checks on the expected interfaces (that is in SVGTest2). |
| 9 | 9 |
| 10 main() { | 10 main() { |
| 11 | 11 |
| 12 insertTestDiv() { | 12 insertTestDiv() { |
| 13 var element = new Element.tag('div'); | 13 var element = new Element.tag('div'); |
| 14 element.innerHTML = @''' | 14 element.innerHTML = r''' |
| 15 <svg id='svg1' width='200' height='100'> | 15 <svg id='svg1' width='200' height='100'> |
| 16 <rect id='rect1' x='10' y='20' width='130' height='40' rx='5'fill='blue'></rect> | 16 <rect id='rect1' x='10' y='20' width='130' height='40' rx='5'fill='blue'></rect> |
| 17 </svg> | 17 </svg> |
| 18 '''; | 18 '''; |
| 19 document.body.nodes.add(element); | 19 document.body.nodes.add(element); |
| 20 return element; | 20 return element; |
| 21 } | 21 } |
| 22 | 22 |
| 23 useHtmlConfiguration(); | 23 useHtmlConfiguration(); |
| 24 | 24 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 testRect('rect_SVGTests', checkSVGTests); | 120 testRect('rect_SVGTests', checkSVGTests); |
| 121 testRect('rect_SVGLangSpace', checkSVGLangSpace); | 121 testRect('rect_SVGLangSpace', checkSVGLangSpace); |
| 122 testRect('rect_SVGExternalResourcesRequired', | 122 testRect('rect_SVGExternalResourcesRequired', |
| 123 checkSVGExternalResourcesRequired); | 123 checkSVGExternalResourcesRequired); |
| 124 testRect('rect_SVGStylable', checkSVGStylable); | 124 testRect('rect_SVGStylable', checkSVGStylable); |
| 125 testRect('rect_SVGLocatable', checkSVGLocatable); | 125 testRect('rect_SVGLocatable', checkSVGLocatable); |
| 126 testRect('rect_SVGTransformable', checkSVGTransformable); | 126 testRect('rect_SVGTransformable', checkSVGTransformable); |
| 127 | 127 |
| 128 } | 128 } |
| OLD | NEW |