OLD | NEW |
1 #library('HTMLElementTest'); | 1 #library('HTMLElementTest'); |
2 #import('../../../../lib/unittest/unittest.dart'); | 2 #import('../../lib/unittest/unittest.dart'); |
3 #import('../../../../lib/unittest/dom_config.dart'); | 3 #import('../../lib/unittest/dom_config.dart'); |
4 #import('dart:dom'); | 4 #import('dart:dom'); |
5 | 5 |
6 main() { | 6 main() { |
7 useDomConfiguration(); | 7 useDomConfiguration(); |
8 test('InnerHTML', () { | 8 test('InnerHTML', () { |
9 HTMLElement element = document.createElement('div'); | 9 HTMLElement element = document.createElement('div'); |
10 element.id = 'test'; | 10 element.id = 'test'; |
11 element.innerHTML = 'Hello World'; | 11 element.innerHTML = 'Hello World'; |
12 document.body.appendChild(element); | 12 document.body.appendChild(element); |
13 | 13 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 Expect.equals('foo-value', div.dataset.remove('foo')); | 83 Expect.equals('foo-value', div.dataset.remove('foo')); |
84 Expect.equals(1, div.dataset.length); | 84 Expect.equals(1, div.dataset.length); |
85 Expect.isFalse(div.dataset.isEmpty()); | 85 Expect.isFalse(div.dataset.isEmpty()); |
86 | 86 |
87 div.dataset.clear(); | 87 div.dataset.clear(); |
88 Expect.equals(0, div.dataset.length); | 88 Expect.equals(0, div.dataset.length); |
89 Expect.isTrue(div.dataset.isEmpty()); | 89 Expect.isTrue(div.dataset.isEmpty()); |
90 }); | 90 }); |
91 } | 91 } |
OLD | NEW |