mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL is just a search-and-replace. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/694423002
21 lines
512 B
Plaintext
21 lines
512 B
Plaintext
<html>
|
|
<import src="../resources/chai.sky" />
|
|
<import src="../resources/mocha.sky" />
|
|
<foo />
|
|
<script>
|
|
|
|
describe('Inline styles', function() {
|
|
it('should be settable using "style" attribute', function() {
|
|
var foo = document.querySelector('foo');
|
|
foo.setAttribute('style', 'color: red');
|
|
|
|
|
|
assert.equal(foo.getAttribute('style'), 'color: red');
|
|
assert.equal(foo.style.color, 'rgb(255, 0, 0)');
|
|
assert.equal(window.getComputedStyle(foo).color, 'rgb(255, 0, 0)');
|
|
});
|
|
});
|
|
|
|
</script>
|
|
</html>
|