mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
20 lines
529 B
HTML
20 lines
529 B
HTML
<html>
|
|
<link rel="import" href="../resources/chai.html" />
|
|
<link rel="import" href="../resources/mocha.html" />
|
|
<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>
|