2011-04-13 16:27:15 +00:00
|
|
|
package com.ibm.wala.cast.js.test;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.net.URL;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
import com.ibm.wala.cast.js.html.IHtmlParser;
|
|
|
|
import com.ibm.wala.cast.js.html.jericho.JerichoHtmlParser;
|
|
|
|
import com.ibm.wala.ipa.callgraph.CallGraph;
|
|
|
|
import com.ibm.wala.util.CancelException;
|
|
|
|
|
|
|
|
|
|
|
|
public class TestSimplePageCallGraphShapeRhinoJericho extends TestSimplePageCallGraphShapeRhino {
|
|
|
|
|
|
|
|
@Test public void testCrawl() throws IOException, IllegalArgumentException, CancelException {
|
|
|
|
URL url = getClass().getClassLoader().getResource("pages/crawl.html");
|
2012-02-17 20:21:59 +00:00
|
|
|
CallGraph CG = JSCallGraphBuilderUtil.makeHTMLCG(url);
|
2011-04-13 16:27:15 +00:00
|
|
|
verifyGraphAssertions(CG, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
justThisTest(TestSimplePageCallGraphShapeRhinoJericho.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected IHtmlParser getParser() {
|
|
|
|
return new JerichoHtmlParser();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|