Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.test
Class DocumentDiffTest

java.lang.Object
  extended by org.xhtmlrenderer.test.DocumentDiffTest

public class DocumentDiffTest
extends java.lang.Object

Description of the Class

Author:
empty

Field Summary
static int height
           
static int width
           
 
Constructor Summary
DocumentDiffTest()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

public static final int width
See Also:
Constant Field Values

height

public static final int height
See Also:
Constant Field Values
Constructor Detail

DocumentDiffTest

public DocumentDiffTest()
Method Detail

runTests

public void runTests(java.io.File dir,
                     int width,
                     int height)
              throws java.lang.Exception
Description of the Method

Parameters:
dir - PARAM
width - PARAM
height - 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 - PARAM
width - PARAM
height - 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 - PARAM
diff - PARAM
width - PARAM
height - 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 - PARAM
width - PARAM
height - 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 - PARAM
diff - PARAM
width - PARAM
height - 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 - PARAM
box - PARAM
tab - 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

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home