Test for border parsing I failed to include in my last change.

https://codereview.chromium.org/673073002/

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/654393004
This commit is contained in:
Eric Seidel
2014-10-24 10:16:36 -07:00
parent 1a25166c33
commit 5a3423ff3d
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Running 1 tests
ok 1 Border should render
1 tests
1 pass
0 fail

View File

@@ -0,0 +1,14 @@
<html>
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.html" />
<foo />
<script>
describe('Border', function() {
it('should render', function() {
var foo = document.querySelector('foo');
foo.setAttribute('style', 'border: 1px solid red');
assert.equal(foo.style.border, '1px solid rgb(255, 0, 0)');
});
});
</script>
</html>