Class DocumentDiffTest

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

public class DocumentDiffTest extends Object
  • Field Details

  • Constructor Details

    • DocumentDiffTest

      public DocumentDiffTest()
  • Method Details

    • runTests

      public void runTests(File dir, int width, int height)
    • generateDiffs

      public void generateDiffs(File dir, int width, int height) throws Exception
      Throws:
      Exception
    • generateTestFile

      public static void generateTestFile(String test, String diff, int width, int height) throws Exception
      Throws:
      Exception
    • xhtmlToDiff

      public static String xhtmlToDiff(String xhtml, int width, int height) throws Exception
      Throws:
      Exception
    • compareTestFile

      public boolean compareTestFile(String test, String diff, int width, int height) throws Exception
      Throws:
      Exception
    • getDiff

      public static void getDiff(StringBuilder sb, Box box, String tab)
      Gets the diff attribute of the DocumentDiffTest object
    • main

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