<html> | |
<import src="../resources/chai.sky" /> | |
<import src="../resources/mocha.sky" /> | |
<style> | |
#sandbox { color: red; } | |
.blue { color: blue; } | |
</style> | |
<body> | |
<div id="sandbox" class="blue">This should be blue.</div> | |
<script> | |
describe('Specificity', function() { | |
it('should not exist', function() { | |
var sandbox = document.getElementById("sandbox"); | |
assert.equal(getComputedStyle(sandbox).color, "rgb(0, 0, 255)"); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |