Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: sky/tests/styles/inline-style.sky

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/tests/styles/inline-style.html ('k') | sky/tools/skydb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <link rel="import" href="../resources/chai.html" /> 2 <link rel="import" href="../resources/chai.sky" />
3 <link rel="import" href="../resources/mocha.html" /> 3 <link rel="import" href="../resources/mocha.sky" />
4 <foo /> 4 <foo />
5 <script> 5 <script>
6 6
7 describe('Inline styles', function() { 7 describe('Inline styles', function() {
8 it('should be settable using "style" attribute', function() { 8 it('should be settable using "style" attribute', function() {
9 var foo = document.querySelector('foo'); 9 var foo = document.querySelector('foo');
10 foo.setAttribute('style', 'color: red'); 10 foo.setAttribute('style', 'color: red');
11 11
12 12
13 assert.equal(foo.getAttribute('style'), 'color: red'); 13 assert.equal(foo.getAttribute('style'), 'color: red');
14 assert.equal(foo.style.color, 'rgb(255, 0, 0)'); 14 assert.equal(foo.style.color, 'rgb(255, 0, 0)');
15 assert.equal(window.getComputedStyle(foo).color, 'rgb(255, 0, 0)'); 15 assert.equal(window.getComputedStyle(foo).color, 'rgb(255, 0, 0)');
16 }); 16 });
17 }); 17 });
18 18
19 </script> 19 </script>
20 </html> 20 </html>
OLDNEW
« no previous file with comments | « sky/tests/styles/inline-style.html ('k') | sky/tools/skydb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698