Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <sky> | |
|
ojan
2014/12/09 23:31:16
I don't like this file naming scheme. It was alway
| |
| 2 <import src="../resources/mocha.sky" /> | |
| 3 <import src="../resources/chai.sky" /> | |
| 4 <style> | |
| 5 div { width: 100px; height: 100px; background-color: red; } | |
| 6 div.wide { width: 200px; } | |
| 7 div#high { height: 200px; } | |
| 8 </style> | |
| 9 <div></div> | |
| 10 <div></div> | |
| 11 <script> | |
| 12 | |
| 13 describe("Div width", function() { | |
| 14 it("should grow width to 200px", function() { | |
| 15 var target = document.querySelector('div'); | |
| 16 | |
| 17 target.classList.add("wide"); | |
| 18 assert.equal(getComputedStyle(target).width, "200px"); | |
| 19 }); | |
| 20 | |
| 21 it("should grow height to 200px", function() { | |
| 22 var target = document.querySelectorAll('div')[1]; | |
| 23 | |
| 24 target.id = 'high'; | |
| 25 assert.equal(getComputedStyle(target).height, "200px"); | |
| 26 }); | |
| 27 }); | |
| 28 </script> | |
| 29 </sky> | |
| OLD | NEW |