File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
itext.tests/itext.html2pdf.tests/itext/html2pdf/css Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -38,30 +38,26 @@ disclosing the source code of your own applications.
38
38
source product.
39
39
40
40
For more information, please contact iText Software Corp. at this
41
-
41
+
42
+ */
42
43
using System ;
43
44
using System . IO ;
44
45
using iText . IO . Util ;
45
- using System . Collections . Generic ;
46
- using System . Reflection ;
47
- using System . IO ;
48
- using Versions . Attributes ;
49
- using iText . Kernel ;
50
- using iText . Test ;
51
- using iText . StyledXmlParser . Css . Parse ;
52
46
using iText . StyledXmlParser . Css ;
47
+ using iText . StyledXmlParser . Css . Parse ;
48
+ using iText . Test ;
53
49
54
50
namespace iText . Html2pdf . Css {
55
51
public class CssStyleSheetParserTest : ExtendedITextTest {
56
- private static readonly String sourceFolder = TestUtil . GetParentProjectDirectory ( NUnit . Framework . TestContext . CurrentContext . TestDirectory ) + "/resources/itext/html2pdf/css/CssStyleSheetParserTest/" ;
52
+ private static readonly String sourceFolder = iText . Test . TestUtil . GetParentProjectDirectory ( NUnit . Framework . TestContext
53
+ . CurrentContext . TestDirectory ) + "/resources/itext/html2pdf/css/CssStyleSheetParserTest/" ;
57
54
58
55
private const String DEFAULT_CSS_PATH = "iText.Html2Pdf.default.css" ;
59
-
60
56
61
57
[ NUnit . Framework . Test ]
62
58
public virtual void TestDefaultCss ( ) {
63
59
String cmpFile = sourceFolder + "cmp_default.css" ;
64
- CssStyleSheet styleSheet = CssStyleSheetParser . Parse ( ResourceUtil . GetResourceStream ( DEFAULT_CSS_PATH , typeof ( HtmlConverter ) ) ) ;
60
+ CssStyleSheet styleSheet = CssStyleSheetParser . Parse ( ResourceUtil . GetResourceStream ( DEFAULT_CSS_PATH ) ) ;
65
61
NUnit . Framework . Assert . AreEqual ( GetCssFileContents ( cmpFile ) , styleSheet . ToString ( ) ) ;
66
62
}
67
63
You can’t perform that action at this time.
0 commit comments