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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/filters/script-tests/filter-property.js

Issue 2055733002: Clean up script-tests in css3/filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix expectations for un-duped test Created 4 years, 6 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
OLDNEW
(Empty)
1 description("Test the parsing of the -webkit-filter property.");
2
3 var styleElement = document.createElement("style");
4 document.head.appendChild(styleElement);
5 var stylesheet = styleElement.sheet;
6
7 // add a -webkit-filter property to the start of the stylesheet
8 stylesheet.addRule("body", "-webkit-filter: url(#a) url(#b)", 0);
9
10 var cssRule = stylesheet.cssRules.item(0);
11
12 shouldBe("cssRule.type", "1");
13
14 var declaration = cssRule.style;
15 shouldBe("declaration.length", "1");
16 shouldBeEqualToString("declaration.getPropertyValue('-webkit-filter')", 'url("#a ") url("#b")');
17
18 successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698