Skip to content

Commit

Permalink
Adding setProperty and getPropertyPriority tests. Not tested on IE ye…
Browse files Browse the repository at this point in the history
…t, but otherwise, looks like a winner.
  • Loading branch information
lsmith committed Jan 11, 2010
1 parent cdb2df6 commit 94128ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/stylesheet/tests/manual/raw.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,18 @@ <h1>Tests</h1>
Assert.isTrue(
/text-align\s*:\s*right !\s*important/i.test(d.body.style.cssText),
"value containing !important did not update cssText with !important");
},

"test setProperty + getPropertyPriority": function () {
d.body.style.setProperty("color", "#555", "important");

Assert.areEqual("important", d.body.style.getPropertyPriority("color"));
},

"test style.prop = x + getPropertyPriority": function () {
d.body.style.paddingLeft = "3px !important";

Assert.areEqual("important", d.body.style.getPropertyPriority("padding-left"));
}
}));

Expand Down

0 comments on commit 94128ee

Please sign in to comment.