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

Unified Diff: sky/tests/lowlevel/classlist.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tests/lowlevel/bug-438036.sky ('k') | sky/tests/lowlevel/style-basic.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/lowlevel/classlist.sky
diff --git a/sky/tests/lowlevel/classlist.sky b/sky/tests/lowlevel/classlist.sky
index 98fe3a5c053089e59303613c4388ecebe90f5af7..2ebf68462a11487cba4071fdc58172bebafa7c1f 100644
--- a/sky/tests/lowlevel/classlist.sky
+++ b/sky/tests/lowlevel/classlist.sky
@@ -102,23 +102,23 @@ main() {
});
test("should dynamically update style", () {
- expect(window.getComputedStyle(target).getPropertyValue("font-size"),
+ expect(window.getComputedStyle(target)["font-size"],
equals("5px"));
target.classList.add("font-10");
target.classList.add("font-12");
- expect(window.getComputedStyle(target).getPropertyValue("font-size"),
+ expect(window.getComputedStyle(target)["font-size"],
equals("12px"));
target.classList.add("font-24");
- expect(window.getComputedStyle(target).getPropertyValue("font-size"),
+ expect(window.getComputedStyle(target)["font-size"],
equals("24px"));
target.classList.remove("font-12");
- expect(window.getComputedStyle(target).getPropertyValue("font-size"),
+ expect(window.getComputedStyle(target)["font-size"],
equals("24px"));
target.classList.remove("font-24");
- expect(window.getComputedStyle(target).getPropertyValue("font-size"),
+ expect(window.getComputedStyle(target)["font-size"],
equals("10px"));
target.classList.remove("font-10");
- expect(window.getComputedStyle(target).getPropertyValue("font-size"),
+ expect(window.getComputedStyle(target)["font-size"],
equals("5px"));
});
}
« no previous file with comments | « sky/tests/lowlevel/bug-438036.sky ('k') | sky/tests/lowlevel/style-basic.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698