Package org.xhtmlrenderer.test
Class DocumentDiffTest
- java.lang.Object
-
- org.xhtmlrenderer.test.DocumentDiffTest
-
public class DocumentDiffTest extends java.lang.Object
Description of the Class- Author:
- empty
-
-
Constructor Summary
Constructors Constructor Description DocumentDiffTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compareTestFile(java.lang.String test, java.lang.String diff, int width, int height)
Description of the Methodvoid
generateDiffs(java.io.File dir, int width, int height)
Description of the Methodstatic void
generateTestFile(java.lang.String test, java.lang.String diff, int width, int height)
Description of the Methodstatic void
getDiff(java.lang.StringBuffer sb, Box box, java.lang.String tab)
Gets the diff attribute of the DocumentDiffTest objectstatic void
main(java.lang.String[] args)
The main program for the DocumentDiffTest classvoid
runTests(java.io.File dir, int width, int height)
Description of the Methodstatic java.lang.String
xhtmlToDiff(java.lang.String xhtml, int width, int height)
Description of the Method
-
-
-
Field Detail
-
width
public static final int width
- See Also:
- Constant Field Values
-
height
public static final int height
- See Also:
- Constant Field Values
-
-
Method Detail
-
runTests
public void runTests(java.io.File dir, int width, int height) throws java.lang.Exception
Description of the Method- Parameters:
dir
- PARAMwidth
- PARAMheight
- PARAM- Throws:
java.lang.Exception
- Throws
-
generateDiffs
public void generateDiffs(java.io.File dir, int width, int height) throws java.lang.Exception
Description of the Method- Parameters:
dir
- PARAMwidth
- PARAMheight
- PARAM- Throws:
java.lang.Exception
- Throws
-
generateTestFile
public static void generateTestFile(java.lang.String test, java.lang.String diff, int width, int height) throws java.lang.Exception
Description of the Method- Parameters:
test
- PARAMdiff
- PARAMwidth
- PARAMheight
- PARAM- Throws:
java.lang.Exception
- Throws
-
xhtmlToDiff
public static java.lang.String xhtmlToDiff(java.lang.String xhtml, int width, int height) throws java.lang.Exception
Description of the Method- Parameters:
xhtml
- PARAMwidth
- PARAMheight
- PARAM- Returns:
- Returns
- Throws:
java.lang.Exception
- Throws
-
compareTestFile
public boolean compareTestFile(java.lang.String test, java.lang.String diff, int width, int height) throws java.lang.Exception
Description of the Method- Parameters:
test
- PARAMdiff
- PARAMwidth
- PARAMheight
- PARAM- Returns:
- Returns
- Throws:
java.lang.Exception
- Throws
-
getDiff
public static void getDiff(java.lang.StringBuffer sb, Box box, java.lang.String tab)
Gets the diff attribute of the DocumentDiffTest object- Parameters:
sb
- PARAMbox
- PARAMtab
- PARAM
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
The main program for the DocumentDiffTest class- Parameters:
args
- The command line arguments- Throws:
java.lang.Exception
- Throws
-
-