Exemplo n.º 1
0
    def testSkpicturePrinter(self):
        ps = self.CreateStorySetFromFileInUnittestDataDir('blank.html')
        measurement = multipage_skpicture_printer.MultipageSkpicturePrinter(
            self._mskp_outdir)
        results = self.RunMeasurement(measurement, ps, options=self._options)

        # Picture printing is not supported on all platforms.
        if results.failures:
            assert 'not supported' in results.failures[0].exc_info[1].message
            return
 def testSkpicturePrinter(self):
     story_set = self.CreateStorySetFromFileInUnittestDataDir('blank.html')
     measurement = multipage_skpicture_printer.MultipageSkpicturePrinter(
         self._mskp_outdir)
     self.RunMeasurement(measurement, story_set, run_options=self._options)
Exemplo n.º 3
0
 def CreatePageTest(self, options):
     return multipage_skpicture_printer.MultipageSkpicturePrinter(
         options.mskp_outdir)
Exemplo n.º 4
0
 def testSkpicturePrinter(self):
     page_test = multipage_skpicture_printer.MultipageSkpicturePrinter(
         self.options.output_dir)
     self.RunPageTest(page_test, 'file://blank.html')