示例#1
0
 public virtual void ImgSemantics()
 {
     iText.StyledXmlParser.Jsoup.Parser.Tag img = iText.StyledXmlParser.Jsoup.Parser.Tag.ValueOf("img");
     NUnit.Framework.Assert.IsTrue(img.IsInline());
     NUnit.Framework.Assert.IsTrue(img.IsSelfClosing());
     NUnit.Framework.Assert.IsFalse(img.IsBlock());
 }
示例#2
0
 public virtual void DefaultSemantics()
 {
     iText.StyledXmlParser.Jsoup.Parser.Tag foo = iText.StyledXmlParser.Jsoup.Parser.Tag.ValueOf("foo");
     // not defined
     iText.StyledXmlParser.Jsoup.Parser.Tag foo2 = iText.StyledXmlParser.Jsoup.Parser.Tag.ValueOf("FOO");
     NUnit.Framework.Assert.AreEqual(foo, foo2);
     NUnit.Framework.Assert.IsTrue(foo.IsInline());
     NUnit.Framework.Assert.IsTrue(foo.FormatAsBlock());
 }