public class DocumentDiffTest
extends java.lang.Object
Constructor and Description |
---|
DocumentDiffTest() |
Modifier and Type | Method and Description |
---|---|
boolean |
compareTestFile(java.lang.String test,
java.lang.String diff,
int width,
int height)
Description of the Method
|
void |
generateDiffs(java.io.File dir,
int width,
int height)
Description of the Method
|
static void |
generateTestFile(java.lang.String test,
java.lang.String diff,
int width,
int height)
Description of the Method
|
static void |
getDiff(java.lang.StringBuffer sb,
Box box,
java.lang.String tab)
Gets the diff attribute of the DocumentDiffTest object
|
static void |
main(java.lang.String[] args)
The main program for the DocumentDiffTest class
|
void |
runTests(java.io.File dir,
int width,
int height)
Description of the Method
|
static java.lang.String |
xhtmlToDiff(java.lang.String xhtml,
int width,
int height)
Description of the Method
|
public static final int width
public static final int height
public void runTests(java.io.File dir, int width, int height) throws java.lang.Exception
dir
- PARAMwidth
- PARAMheight
- PARAMjava.lang.Exception
- Throwspublic void generateDiffs(java.io.File dir, int width, int height) throws java.lang.Exception
dir
- PARAMwidth
- PARAMheight
- PARAMjava.lang.Exception
- Throwspublic static void generateTestFile(java.lang.String test, java.lang.String diff, int width, int height) throws java.lang.Exception
test
- PARAMdiff
- PARAMwidth
- PARAMheight
- PARAMjava.lang.Exception
- Throwspublic static java.lang.String xhtmlToDiff(java.lang.String xhtml, int width, int height) throws java.lang.Exception
xhtml
- PARAMwidth
- PARAMheight
- PARAMjava.lang.Exception
- Throwspublic boolean compareTestFile(java.lang.String test, java.lang.String diff, int width, int height) throws java.lang.Exception
test
- PARAMdiff
- PARAMwidth
- PARAMheight
- PARAMjava.lang.Exception
- Throwspublic static void getDiff(java.lang.StringBuffer sb, Box box, java.lang.String tab)
sb
- PARAMbox
- PARAMtab
- PARAMpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- Throws