def _MapsExpectationToPixelExpectation(self, url, expected_colors, tolerance): page = pixel_test_pages.PixelTestPage( url=url, name=('Maps_maps'), # Exact test_rect is arbitrary, just needs to encapsulate all pixels # that are tested. test_rect=[0, 0, 600, 400], tolerance=tolerance, expected_colors=expected_colors) return page
def _GetMapsPageForUrl(url, expected_colors): page = pixel_test_pages.PixelTestPage( url=url, name=_TEST_NAME, # Exact test_rect is arbitrary, just needs to encapsulate all pixels # that are tested. test_rect=[0, 0, 1000, 800], tolerance=10, expected_colors=expected_colors) return page
def _GetMapsPageForUrl(url): page = pixel_test_pages.PixelTestPage( url=url, name=_TEST_NAME, # Exact test_rect is arbitrary, just needs to encapsulate all pixels # that are tested. test_rect=[0, 0, 1000, 800], grace_period_end=datetime.date(2020, 6, 22), matching_algorithm=pixel_test_pages.VERY_PERMISSIVE_SOBEL_ALGO) return page