From 18833137c03c5f83138e0c3b8ad864686c1b00d1 Mon Sep 17 00:00:00 2001 From: msridhar1 Date: Wed, 20 Apr 2011 20:55:57 +0000 Subject: [PATCH] Change Mozilla test cases to not pull in external JS files by default (for performance). In makeHTMLCG(), don't call dumpCG() by default. git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4127 f5eafffb-2e1d-0410-98e4-8ec43c5233c4 --- .../com/ibm/wala/cast/js/test/TestMozillaBugPages.java | 6 +++--- .../harness-src/com/ibm/wala/cast/js/test/Util.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestMozillaBugPages.java b/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestMozillaBugPages.java index 5b7df18ab..6c913be6a 100644 --- a/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestMozillaBugPages.java +++ b/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestMozillaBugPages.java @@ -31,21 +31,21 @@ public class TestMozillaBugPages extends TestJSCallGraphShape { } @Test public void testMozilla488233() throws IOException, IllegalArgumentException, CancelException { - URL url = getClass().getClassLoader().getResource("pages/mochitest/mozillaBug488233.html"); + URL url = getClass().getClassLoader().getResource("pages/mochitest/mozillaBug488233NoExtJS.html"); JSCFABuilder builder = Util.makeHTMLCGBuilder(url); CallGraph CG = builder.makeCallGraph(builder.getOptions()); Util.dumpCG(builder, CG); } @Test public void testMozilla490152() throws IOException, IllegalArgumentException, CancelException { - URL url = getClass().getClassLoader().getResource("pages/mochitest/mozillaBug490152.html"); + URL url = getClass().getClassLoader().getResource("pages/mochitest/mozillaBug490152NoExtJS.html"); JSCFABuilder builder = Util.makeHTMLCGBuilder(url); CallGraph CG = builder.makeCallGraph(builder.getOptions()); Util.dumpCG(builder, CG); } @Test public void testMozilla625562() throws IOException, IllegalArgumentException, CancelException { - URL url = getClass().getClassLoader().getResource("pages/mochitest/mozillaBug625562.html"); + URL url = getClass().getClassLoader().getResource("pages/mochitest/mozillaBug625562NoExtJS.html"); JSCFABuilder builder = Util.makeHTMLCGBuilder(url); CallGraph CG = builder.makeCallGraph(builder.getOptions()); Util.dumpCG(builder, CG); diff --git a/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/Util.java b/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/Util.java index e587c3f85..e2e3e9e0e 100644 --- a/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/Util.java +++ b/com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/Util.java @@ -91,7 +91,7 @@ public class Util extends com.ibm.wala.cast.js.ipa.callgraph.Util { public static CallGraph makeHTMLCG(URL url) throws IOException, IllegalArgumentException, CancelException { PropagationCallGraphBuilder b = makeHTMLCGBuilder(url); CallGraph CG = b.makeCallGraph(b.getOptions()); - dumpCG(b, CG); +// dumpCG(b, CG); return CG; }