| Index: client/tests/client/dom/SVG1Test.dart
|
| diff --git a/client/tests/client/dom/SVG1Test.dart b/client/tests/client/dom/SVG1Test.dart
|
| index dadd667f308b6afcd02075e97310be4a19e321e8..4c7689911c49462b771a90e83b4df1cd9746e92c 100644
|
| --- a/client/tests/client/dom/SVG1Test.dart
|
| +++ b/client/tests/client/dom/SVG1Test.dart
|
| @@ -1,26 +1,26 @@
|
| #library('SVG1Test');
|
| #import('../../../../lib/unittest/unittest.dart');
|
| -#import('../../../../lib/unittest/dom_config.dart');
|
| -#import('dart:dom');
|
| +#import('../../../../lib/unittest/html_config.dart');
|
| +#import('dart:html');
|
|
|
| -// Test that SVG is present in dart:dom API
|
| +// Test that SVG is present in dart:html API
|
|
|
| main() {
|
| - useDomConfiguration();
|
| + useHtmlConfiguration();
|
|
|
| test('simpleRect', () {
|
| - var div = document.createElement('div');
|
| - document.body.appendChild(div);
|
| + var div = new Element.tag('div');
|
| + document.body.nodes.add(div);
|
| div.innerHTML = @'''
|
| <svg id='svg1' width='200' height='100'>
|
| <rect id='rect1' x='10' y='20' width='130' height='40' rx='5'fill='blue'></rect>
|
| </svg>
|
| ''';
|
|
|
| - var e = document.getElementById('svg1');
|
| + var e = document.query('#svg1');
|
| Expect.isTrue(e != null);
|
|
|
| - SVGRectElement r = document.getElementById('rect1');
|
| + SVGRectElement r = document.query('#rect1');
|
| Expect.equals(10, r.x.baseVal.value);
|
| Expect.equals(20, r.y.baseVal.value);
|
| Expect.equals(40, r.height.baseVal.value);
|
|
|