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

Side by Side Diff: sky/tests/lowlevel/style-specificity.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
« no previous file with comments | « sky/tests/lowlevel/style-basic.sky ('k') | sky/tests/lowlevel/style-specificity-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> 1 <html>
2 <import src="../resources/chai.sky" />
3 <import src="../resources/mocha.sky" />
4 <style> 2 <style>
5 #sandbox { color: red; } 3 #sandbox { color: red; }
6 .blue { color: blue; } 4 .blue { color: blue; }
7 </style> 5 </style>
8 <body> 6 <body>
9 <div id="sandbox" class="blue">This should be blue.</div> 7 <div id="sandbox" class="blue">This should be blue.</div>
10 <script> 8 <script>
11 describe('Specificity', function() { 9 import "../resources/third_party/unittest/unittest.dart";
12 it('should not exist', function() { 10 import "../resources/unit.dart";
11
12 import "dart:sky";
13
14 main() {
15 initUnit();
16
17 test('should not exist', () {
13 var sandbox = document.getElementById("sandbox"); 18 var sandbox = document.getElementById("sandbox");
14 assert.equal(getComputedStyle(sandbox).color, "rgb(0, 0, 255)"); 19 expect(window.getComputedStyle(sandbox).getPropertyValue("color"),
20 equals("rgb(0, 0, 255)"));
15 }); 21 });
16 }); 22 }
17 </script> 23 </script>
18 </body> 24 </body>
19 </html> 25 </html>
OLDNEW
« no previous file with comments | « sky/tests/lowlevel/style-basic.sky ('k') | sky/tests/lowlevel/style-specificity-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698