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

Side by Side Diff: sky/tests/styles/border-parsing.sky

Issue 942553002: Make element.style["color"] work in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add back removeProperty 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
« no previous file with comments | « sky/tests/lowlevel/style-specificity.sky ('k') | sky/tests/styles/inline-style.sky » ('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 <foo /> 2 <foo />
3 <script> 3 <script>
4 import "../resources/third_party/unittest/unittest.dart"; 4 import "../resources/third_party/unittest/unittest.dart";
5 import "../resources/unit.dart"; 5 import "../resources/unit.dart";
6 6
7 import "dart:sky"; 7 import "dart:sky";
8 8
9 void main() { 9 void main() {
10 initUnit(); 10 initUnit();
11 11
12 test('should render', () { 12 test('should render', () {
13 var foo = document.querySelector('foo'); 13 var foo = document.querySelector('foo');
14 foo.setAttribute('style', 'border: 1px solid red'); 14 foo.setAttribute('style', 'border: 1px solid red');
15 expect(foo.style.getPropertyValue("border"), equals('1px solid rgb(255, 0, 0 )')); 15 expect(foo.style["border"], equals('1px solid rgb(255, 0, 0)'));
16 }); 16 });
17 } 17 }
18 </script> 18 </script>
19 </html> 19 </html>
OLDNEW
« no previous file with comments | « sky/tests/lowlevel/style-specificity.sky ('k') | sky/tests/styles/inline-style.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698