Merge to XFA: Hook up show-config to testing scripts.

Review URL: https://codereview.chromium.org/1607923004 .
(cherry picked from commit d40e189ba1ab515ef9b3df7928e215be150df336)

TBR=ochang@chromium.org

Review URL: https://codereview.chromium.org/1607113002 .
diff --git a/testing/tools/run_javascript_tests.py b/testing/tools/run_javascript_tests.py
index 0c24017..b09ea49 100755
--- a/testing/tools/run_javascript_tests.py
+++ b/testing/tools/run_javascript_tests.py
@@ -63,6 +63,11 @@
   if not os.path.exists(working_dir):
     os.makedirs(working_dir)
 
+  feature_string = subprocess.check_output([pdfium_test_path, '--show-config'])
+  if "V8" not in feature_string.strip().split(","):
+    print "V8 not enabled, skipping."
+    return 0
+
   input_files = []
   if len(args):
     for file_name in args: