another failing test
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4187 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
da183699ae
commit
91628b4d1b
|
@ -26,29 +26,38 @@ public class TestSimpleCallGraphShapeRhino extends TestSimpleCallGraphShape {
|
|||
justThisTest(TestSimpleCallGraphShapeRhino.class);
|
||||
}
|
||||
|
||||
@Before
|
||||
@Before
|
||||
public void setUp() {
|
||||
com.ibm.wala.cast.js.ipa.callgraph.Util.setTranslatorFactory(new CAstRhinoTranslatorFactory());
|
||||
com.ibm.wala.cast.js.ipa.callgraph.Util.setTranslatorFactory(new CAstRhinoTranslatorFactory());
|
||||
}
|
||||
|
||||
@Test public void test214631() throws IOException, IllegalArgumentException, CancelException {
|
||||
JSCFABuilder b = Util.makeScriptCGBuilder("tests", "214631.js");
|
||||
b.makeCallGraph(b.getOptions());
|
||||
PointerAnalysis PA = b.getPointerAnalysis();
|
||||
// just make sure this does not crash
|
||||
computeIkIdToVns(PA);
|
||||
}
|
||||
@Test
|
||||
public void test214631() throws IOException, IllegalArgumentException, CancelException {
|
||||
JSCFABuilder b = Util.makeScriptCGBuilder("tests", "214631.js");
|
||||
b.makeCallGraph(b.getOptions());
|
||||
PointerAnalysis PA = b.getPointerAnalysis();
|
||||
// just make sure this does not crash
|
||||
computeIkIdToVns(PA);
|
||||
}
|
||||
|
||||
@Test public void testRewriterDoesNotChangeLablesBug() throws IOException, IllegalArgumentException, CancelException {
|
||||
Util.makeScriptCG("tests", "rewrite_does_not_change_lables_bug.js");
|
||||
// all we need is for it to finish building CG successfully.
|
||||
@Test
|
||||
public void testRewriterDoesNotChangeLablesBug() throws IOException, IllegalArgumentException, CancelException {
|
||||
Util.makeScriptCG("tests", "rewrite_does_not_change_lables_bug.js");
|
||||
// all we need is for it to finish building CG successfully.
|
||||
}
|
||||
|
||||
@Test public void testRepr() throws IllegalArgumentException, IOException, CancelException {
|
||||
Util.makeScriptCG("tests", "repr.js");
|
||||
|
||||
@Test
|
||||
public void testRepr() throws IllegalArgumentException, IOException, CancelException {
|
||||
Util.makeScriptCG("tests", "repr.js");
|
||||
}
|
||||
|
||||
@Test public void testTranslateToCAstCrash1() throws IllegalArgumentException, IOException, CancelException {
|
||||
|
||||
@Test
|
||||
public void testTranslateToCAstCrash1() throws IllegalArgumentException, IOException, CancelException {
|
||||
Util.makeScriptCG("tests", "rhino_crash1.js");
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTranslateToCAstCrash2() throws IllegalArgumentException, IOException, CancelException {
|
||||
Util.makeScriptCG("tests", "rhino_crash2.js");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
if (window.addEventListener) {
|
||||
Event.prototype = window.Event.prototype || document.createEvent('HTMLEvents').__proto__;
|
||||
Object.extend(Event.prototype, methods);
|
||||
}
|
Loading…
Reference in New Issue