Class DocumentDiffTest

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

public class DocumentDiffTest extends Object
Description of the Class
Author:
empty
  • Field Details

  • Constructor Details

    • DocumentDiffTest

      public DocumentDiffTest()
  • Method Details

    • runTests

      public void runTests(File dir, int width, int height) throws Exception
      Description of the Method
      Parameters:
      dir - PARAM
      width - PARAM
      height - PARAM
      Throws:
      Exception - Throws
    • generateDiffs

      public void generateDiffs(File dir, int width, int height) throws Exception
      Description of the Method
      Parameters:
      dir - PARAM
      width - PARAM
      height - PARAM
      Throws:
      Exception - Throws
    • generateTestFile

      public static void generateTestFile(String test, String diff, int width, int height) throws Exception
      Description of the Method
      Parameters:
      test - PARAM
      diff - PARAM
      width - PARAM
      height - PARAM
      Throws:
      Exception - Throws
    • xhtmlToDiff

      public static String xhtmlToDiff(String xhtml, int width, int height) throws Exception
      Description of the Method
      Parameters:
      xhtml - PARAM
      width - PARAM
      height - PARAM
      Returns:
      Returns
      Throws:
      Exception - Throws
    • compareTestFile

      public boolean compareTestFile(String test, String diff, int width, int height) throws Exception
      Description of the Method
      Parameters:
      test - PARAM
      diff - PARAM
      width - PARAM
      height - PARAM
      Returns:
      Returns
      Throws:
      Exception - Throws
    • getDiff

      public static void getDiff(StringBuffer sb, Box box, String tab)
      Gets the diff attribute of the DocumentDiffTest object
      Parameters:
      sb - PARAM
      box - PARAM
      tab - PARAM
    • main

      public static void main(String[] args) throws Exception
      The main program for the DocumentDiffTest class
      Parameters:
      args - The command line arguments
      Throws:
      Exception - Throws