Package org.xhtmlrenderer.test
Class DocumentDiffTest
java.lang.Object
org.xhtmlrenderer.test.DocumentDiffTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompareTestFile(String test, String diff, int width, int height) voidgenerateDiffs(File dir, int width, int height) static voidgenerateTestFile(String test, String diff, int width, int height) static voidgetDiff(StringBuilder sb, Box box, String tab) Gets the diff attribute of the DocumentDiffTest objectstatic voidThe main program for the DocumentDiffTest classvoidstatic StringxhtmlToDiff(String xhtml, int width, int height)
-
Field Details
-
width
public static final int width- See Also:
-
height
public static final int height- See Also:
-
-
Constructor Details
-
DocumentDiffTest
public DocumentDiffTest()
-
-
Method Details
-
runTests
-
generateDiffs
- Throws:
Exception
-
generateTestFile
public static void generateTestFile(String test, String diff, int width, int height) throws Exception - Throws:
Exception
-
xhtmlToDiff
- Throws:
Exception
-
compareTestFile
- Throws:
Exception
-
getDiff
Gets the diff attribute of the DocumentDiffTest object -
main
The main program for the DocumentDiffTest class- Parameters:
args- The command line arguments- Throws:
Exception
-