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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/styles/inline-style.sky
diff --git a/sky/tests/styles/inline-style.sky b/sky/tests/styles/inline-style.sky
index 429a37061e413f01be50014eeead3735df689215..fb1a5d1b3ed44d424bea301aa2572bdff44c9cb2 100644
--- a/sky/tests/styles/inline-style.sky
+++ b/sky/tests/styles/inline-style.sky
@@ -1,20 +1,24 @@
<html>
-<import src="../resources/chai.sky" />
-<import src="../resources/mocha.sky" />
<foo />
<script>
+import "../resources/third_party/unittest/unittest.dart";
+import "../resources/unit.dart";
-describe('Inline styles', function() {
- it('should be settable using "style" attribute', function() {
+import "dart:sky";
+
+void main() {
+ initUnit();
+
+ test('should be settable using "style" attribute', () {
var foo = document.querySelector('foo');
foo.setAttribute('style', 'color: red');
- assert.equal(foo.getAttribute('style'), 'color: red');
- assert.equal(foo.style.color, 'rgb(255, 0, 0)');
- assert.equal(window.getComputedStyle(foo).color, 'rgb(255, 0, 0)');
+ expect(foo.getAttribute('style'), equals('color: red'));
+ expect(foo.style.getPropertyValue("color"), equals('rgb(255, 0, 0)'));
+ expect(window.getComputedStyle(foo).getPropertyValue("color"),
+ equals('rgb(255, 0, 0)'));
});
-});
-
+}
</script>
</html>
« 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