OLD | NEW |
1 <html> | 1 <html> |
2 <import src="../resources/mocha.sky" /> | |
3 <import src="../resources/chai.sky" /> | |
4 <foo /> | 2 <foo /> |
5 <script> | 3 <script> |
6 describe('Border', function() { | 4 import "../resources/third_party/unittest/unittest.dart"; |
7 it('should render', function() { | 5 import "../resources/unit.dart"; |
| 6 |
| 7 import "dart:sky"; |
| 8 |
| 9 void main() { |
| 10 initUnit(); |
| 11 |
| 12 test('should render', () { |
8 var foo = document.querySelector('foo'); | 13 var foo = document.querySelector('foo'); |
9 foo.setAttribute('style', 'border: 1px solid red'); | 14 foo.setAttribute('style', 'border: 1px solid red'); |
10 assert.equal(foo.style.border, '1px solid rgb(255, 0, 0)'); | 15 expect(foo.style.getPropertyValue("border"), equals('1px solid rgb(255, 0, 0
)')); |
11 }); | 16 }); |
12 }); | 17 } |
13 </script> | 18 </script> |
14 </html> | 19 </html> |
OLD | NEW |