From 10b01bf44695ce9a354660b16f607da70727a846 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 4 May 2016 12:52:42 -0700 Subject: Fix event sending in pdfium_test. Passing bad args in pdfium_test -- all void* pointers look alike. Make output less verbose while we're here. Turn on event sending mode for corups tests. No effect until .evt files added to corpus. Review-Url: https://codereview.chromium.org/1946873004 --- testing/tools/run_corpus_tests.py | 3 +-- testing/tools/test_runner.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testing') diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py index 2c3c191c88..41d3c12a3b 100755 --- a/testing/tools/run_corpus_tests.py +++ b/testing/tools/run_corpus_tests.py @@ -42,8 +42,7 @@ def test_one_file(input_filename, source_dir, working_dir, # remove .pdf suffix cmd_to_run = common.DrMemoryWrapper(drmem_wrapper, os.path.splitext(input_filename)[0]) - cmd_to_run.extend([pdfium_test_path, '--png', pdf_path]) - # run test + cmd_to_run.extend([pdfium_test_path, '--send-events', '--png', pdf_path]) error = common.RunCommand(cmd_to_run) if error: print "FAILURE: " + input_filename + "; " + str(error) diff --git a/testing/tools/test_runner.py b/testing/tools/test_runner.py index 6bd2d72474..bc4ad053e8 100644 --- a/testing/tools/test_runner.py +++ b/testing/tools/test_runner.py @@ -91,7 +91,8 @@ class TestRunner: def TestPixel(self, input_root, pdf_path): cmd_to_run = common.DrMemoryWrapper(self.drmem_wrapper, input_root) - cmd_to_run.extend([self.pdfium_test_path, '--png', pdf_path]) + cmd_to_run.extend([self.pdfium_test_path, '--send-events', '--png', + pdf_path]) return common.RunCommand(cmd_to_run) -- cgit v1.2.3