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

Side by Side Diff: sky/tests/styles/inline_style.dart

Issue 1212163009: Port remaining Sky tests to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: add Created 5 years, 5 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
« no previous file with comments | « sky/tests/styles/inline-style-expected.txt ('k') | sky/tests/styles/inline_style-expected.txt » ('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>
2 <foo />
3 <script>
4 import "../resources/third_party/unittest/unittest.dart"; 1 import "../resources/third_party/unittest/unittest.dart";
5 import "../resources/unit.dart"; 2 import "../resources/unit.dart";
6 3
7 import "dart:sky"; 4 import "dart:sky";
8 5
9 void main() { 6 void main() {
10 initUnit(); 7 initUnit();
11 8
12 test('should be settable using "style" attribute', () { 9 test('should be settable using "style" attribute', () {
13 var foo = document.querySelector('foo'); 10 LayoutRoot layoutRoot = new LayoutRoot();
11 var document = new Document();
12 var foo = document.createElement('foo');
13 layoutRoot.rootElement = foo;
14
14 foo.setAttribute('style', 'color: red'); 15 foo.setAttribute('style', 'color: red');
15 16
16
17 expect(foo.getAttribute('style'), equals('color: red')); 17 expect(foo.getAttribute('style'), equals('color: red'));
18 expect(foo.style["color"], equals('rgb(255, 0, 0)')); 18 expect(foo.style["color"], equals('rgb(255, 0, 0)'));
19 expect(window.getComputedStyle(foo)["color"], equals('rgb(255, 0, 0)'));
20 }); 19 });
21 } 20 }
22 </script>
23 </html>
OLDNEW
« no previous file with comments | « sky/tests/styles/inline-style-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