Package com.crawljax.oraclecomparator.comparators

Examples of com.crawljax.oraclecomparator.comparators.ScriptComparator


          case regex:
            regexs.add(c.getExpression());
            break;
          case script:
            rules.addOracleComparator(new OracleComparator(c.getType().toString()
                    + c.getExpression(), new ScriptComparator()));
            break;
          case distance:
            rules.addOracleComparator(new OracleComparator(c.getType().toString()
                    + c.getExpression(), new EditDistanceComparator(Double
                    .parseDouble(c.getExpression()))));
View Full Code Here


  @Test
  public void testScriptComparator() {
    String control =
            "<HTML><head><script>JavaScript();</script><title>Test</title></head><body><script>JavaScript23();</script>test</body><HTML>";
    String test = "<HTML><head><title>Test</title></head><body>test</body><HTML>";
    compareTwoDomsWithComparatorEqual(control, test, new ScriptComparator());
  }
View Full Code Here

TOP

Related Classes of com.crawljax.oraclecomparator.comparators.ScriptComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.