| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <link rel="import" href="../resources/chai.html" /> | |
| 3 <link rel="import" href="../resources/mocha.html" /> | |
| 4 <foo /> | |
| 5 <script> | |
| 6 | |
| 7 describe('Inline styles', function() { | |
| 8 it('should be settable using "style" attribute', function() { | |
| 9 var foo = document.querySelector('foo'); | |
| 10 foo.setAttribute('style', 'color: red'); | |
| 11 | |
| 12 | |
| 13 assert.equal(foo.getAttribute('style'), 'color: red'); | |
| 14 assert.equal(foo.style.color, 'rgb(255, 0, 0)'); | |
| 15 assert.equal(window.getComputedStyle(foo).color, 'rgb(255, 0, 0)'); | |
| 16 }); | |
| 17 }); | |
| 18 | |
| 19 </script> | |
| 20 </html> | |
| OLD | NEW |