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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/lowlevel/style-specificity.sky
diff --git a/sky/tests/lowlevel/style-specificity.sky b/sky/tests/lowlevel/style-specificity.sky
index e9b559064bd2b9a8083b1c71acd7e2b07dcc02d8..2aebe9ebf84028ee8b81bdb8122ddb154411edca 100644
--- a/sky/tests/lowlevel/style-specificity.sky
+++ b/sky/tests/lowlevel/style-specificity.sky
@@ -1,6 +1,4 @@
<html>
-<import src="../resources/chai.sky" />
-<import src="../resources/mocha.sky" />
<style>
#sandbox { color: red; }
.blue { color: blue; }
@@ -8,12 +6,20 @@
<body>
<div id="sandbox" class="blue">This should be blue.</div>
<script>
- describe('Specificity', function() {
- it('should not exist', function() {
+ import "../resources/third_party/unittest/unittest.dart";
+ import "../resources/unit.dart";
+
+ import "dart:sky";
+
+ main() {
+ initUnit();
+
+ test('should not exist', () {
var sandbox = document.getElementById("sandbox");
- assert.equal(getComputedStyle(sandbox).color, "rgb(0, 0, 255)");
+ expect(window.getComputedStyle(sandbox).getPropertyValue("color"),
+ equals("rgb(0, 0, 255)"));
});
- });
+ }
</script>
</body>
</html>
« 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