Example #1
0
 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, '--send-events', '--png'])
     if self.gold_results:
         cmd_to_run.append('--md5')
     cmd_to_run.append(pdf_path)
     return common.RunCommandExtractHashedFiles(cmd_to_run)
Example #2
0
 def TestPixel(self, input_root, pdf_path):
   cmd_to_run = [self.pdfium_test_path, '--send-events', '--png']
   if self.gold_results:
     cmd_to_run.append('--md5')
   if self.oneshot_renderer:
     cmd_to_run.append('--render-oneshot')
   cmd_to_run.append(pdf_path)
   return common.RunCommandExtractHashedFiles(cmd_to_run)
Example #3
0
    def TestPixel(self, input_root, pdf_path, use_ahem):
        cmd_to_run = [self.pdfium_test_path, '--send-events', '--png', '--md5']

        if self.oneshot_renderer:
            cmd_to_run.append('--render-oneshot')

        if use_ahem:
            cmd_to_run.append('--font-dir=%s' % self.font_dir)

        cmd_to_run.append(pdf_path)
        return common.RunCommandExtractHashedFiles(cmd_to_run)
Example #4
0
  def TestPixel(self, input_root, pdf_path, use_ahem):
    cmd_to_run = [
        self.pdfium_test_path, '--send-events', '--png', '--md5',
        '--time=' + TEST_SEED_TIME
    ]

    if self.oneshot_renderer:
      cmd_to_run.append('--render-oneshot')

    if use_ahem:
      cmd_to_run.append('--font-dir=%s' % self.font_dir)

    if self.options.reverse_byte_order:
      cmd_to_run.append('--reverse-byte-order')

    cmd_to_run.append(pdf_path)
    return common.RunCommandExtractHashedFiles(cmd_to_run)