Package org.xhtmlrenderer.test
Class DocumentDiffTest
- java.lang.Object
-
- org.xhtmlrenderer.test.DocumentDiffTest
-
public class DocumentDiffTest extends java.lang.ObjectDescription 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 booleancompareTestFile(java.lang.String test, java.lang.String diff, int width, int height)Description of the MethodvoidgenerateDiffs(java.io.File dir, int width, int height)Description of the Methodstatic voidgenerateTestFile(java.lang.String test, java.lang.String diff, int width, int height)Description of the Methodstatic voidgetDiff(java.lang.StringBuffer sb, Box box, java.lang.String tab)Gets the diff attribute of the DocumentDiffTest objectstatic voidmain(java.lang.String[] args)The main program for the DocumentDiffTest classvoidrunTests(java.io.File dir, int width, int height)Description of the Methodstatic java.lang.StringxhtmlToDiff(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.ExceptionDescription 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.ExceptionDescription 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.ExceptionDescription 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.ExceptionDescription 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.ExceptionDescription 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.ExceptionThe main program for the DocumentDiffTest class- Parameters:
args- The command line arguments- Throws:
java.lang.Exception- Throws
-
-