-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished initial implementation of rules #102
- Loading branch information
1 parent
d1e03ff
commit 24d9755
Showing
7 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace AngleSharp.Css.Tests.Rules | ||
{ | ||
using AngleSharp.Dom; | ||
using NUnit.Framework; | ||
using static CssConstructionFunctions; | ||
|
||
[TestFixture] | ||
public class CssCounterStyleRuleTests | ||
{ | ||
[Test] | ||
public void CssCounterStyleThumbsIntroExample() | ||
{ | ||
var source = "@counter-style thumbs {\n system: cyclic;\n symbols: \"\"\\1F44D\"\";\n suffix: \"\" \"\";\n }"; | ||
var rule = ParseCounterStyleRule(source); | ||
Assert.AreEqual("thumbs", rule.StyleName); | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/AngleSharp.Css.Tests/Rules/CssFontFeatureValuesRule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace AngleSharp.Css.Tests.Rules | ||
{ | ||
using AngleSharp.Dom; | ||
using NUnit.Framework; | ||
using static CssConstructionFunctions; | ||
|
||
[TestFixture] | ||
public class CssFontFeatureValuesRuleTests | ||
{ | ||
[Test] | ||
public void CssFontFeaturesValuesForSomeIntroExample() | ||
{ | ||
var source = "@font-feature-values Font One {\n @styleset {\n nice-style: 12;\n }\n }"; | ||
var rule = ParseFontFeatureValuesRule(source); | ||
Assert.AreEqual("Font One", rule.FamilyName); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters