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

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

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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
OLDNEW
1 <html> 1 <html>
2 <import src="../resources/chai.sky" />
3 <import src="../resources/mocha.sky" />
4 <foo /> 2 <foo />
5 <script> 3 <script>
4 import "../resources/third_party/unittest/unittest.dart";
5 import "../resources/unit.dart";
6 6
7 describe('Inline styles', function() { 7 import "dart:sky";
8 it('should be settable using "style" attribute', function() { 8
9 void main() {
10 initUnit();
11
12 test('should be settable using "style" attribute', () {
9 var foo = document.querySelector('foo'); 13 var foo = document.querySelector('foo');
10 foo.setAttribute('style', 'color: red'); 14 foo.setAttribute('style', 'color: red');
11 15
12 16
13 assert.equal(foo.getAttribute('style'), 'color: red'); 17 expect(foo.getAttribute('style'), equals('color: red'));
14 assert.equal(foo.style.color, 'rgb(255, 0, 0)'); 18 expect(foo.style.getPropertyValue("color"), equals('rgb(255, 0, 0)'));
15 assert.equal(window.getComputedStyle(foo).color, 'rgb(255, 0, 0)'); 19 expect(window.getComputedStyle(foo).getPropertyValue("color"),
20 equals('rgb(255, 0, 0)'));
16 }); 21 });
17 }); 22 }
18
19 </script> 23 </script>
20 </html> 24 </html>
OLDNEW
« no previous file with comments | « sky/tests/styles/border-parsing-expected.txt ('k') | sky/tests/styles/inline-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698