Package com.google.gwt.query.client.impl.research

Examples of com.google.gwt.query.client.impl.research.SelectorEngineXPath


    SelectorEngineImpl selEng = new SelectorEngineSizzleGwt();
    executeSelectorEngineTests(selEng);
  }

  public void testSelectorEngineXpath() {
    SelectorEngineImpl selEng = new SelectorEngineXPath();
    executeSelectorEngineTests(selEng);
  }
View Full Code Here


  private void executeSelectInAllImplementations(String selector, Element elem, Object... array) {
    SelectorEngineImpl selSizz = new SelectorEngineSizzle();
    SelectorEngineImpl selSizzGwt = new SelectorEngineSizzleGwt();
    SelectorEngineImpl selJS = new SelectorEngineJS();
    SelectorEngineImpl selXpath = new SelectorEngineXPath();
    SelectorEngineImpl selC2X = new SelectorEngineCssToXPath();
    SelectorEngineImpl selNative = new SelectorEngineNative();
    // FIXME: this fails when running in iframe since 2.5.0
//    assertArrayContains(selector + " - (selSizz)", selSizz.select(selector, elem).getLength(), array);
//    assertArrayContains(selector + " - (selSizzGwt) ", selSizzGwt.select(selector, elem).getLength(), array);
    assertArrayContains(selector + " - (selJS)", selJS.select(selector, elem).getLength(), array);
    if (hasNativeSelector()) {
      assertArrayContains(selector + " - (selNative)", selNative.select(selector, elem).getLength(), array);
    }
    assertArrayContains(selector + " - (selXpath)", selXpath.select(selector, elem).getLength(), array);
    assertArrayContains(selector + " - (selC2X)", selC2X.select(selector, elem).getLength(), array);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.query.client.impl.research.SelectorEngineXPath

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.