| OLD | NEW |
| 1 #library('ElementTest'); | 1 #library('ElementTest'); |
| 2 #import('../../pkg/unittest/lib/unittest.dart'); | 2 #import('../../pkg/unittest/unittest.dart'); |
| 3 #import('../../pkg/unittest/lib/html_config.dart'); | 3 #import('../../pkg/unittest/html_config.dart'); |
| 4 #import('dart:html'); | 4 #import('dart:html'); |
| 5 | 5 |
| 6 main() { | 6 main() { |
| 7 useHtmlConfiguration(); | 7 useHtmlConfiguration(); |
| 8 test('InnerHTML', () { | 8 test('InnerHTML', () { |
| 9 Element element = new Element.tag('div'); | 9 Element element = new Element.tag('div'); |
| 10 element.id = 'test'; | 10 element.id = 'test'; |
| 11 element.innerHTML = 'Hello World'; | 11 element.innerHTML = 'Hello World'; |
| 12 document.body.nodes.add(element); | 12 document.body.nodes.add(element); |
| 13 | 13 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 Expect.equals('foo-value', div.dataAttributes.remove('foo')); | 83 Expect.equals('foo-value', div.dataAttributes.remove('foo')); |
| 84 Expect.equals(1, div.dataAttributes.length); | 84 Expect.equals(1, div.dataAttributes.length); |
| 85 Expect.isFalse(div.dataAttributes.isEmpty()); | 85 Expect.isFalse(div.dataAttributes.isEmpty()); |
| 86 | 86 |
| 87 div.dataAttributes.clear(); | 87 div.dataAttributes.clear(); |
| 88 Expect.equals(0, div.dataAttributes.length); | 88 Expect.equals(0, div.dataAttributes.length); |
| 89 Expect.isTrue(div.dataAttributes.isEmpty()); | 89 Expect.isTrue(div.dataAttributes.isEmpty()); |
| 90 }); | 90 }); |
| 91 } | 91 } |
| OLD | NEW |