Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1050)

Unified Diff: content/test/gpu/gpu_tests/screenshot_sync.py

Issue 2539973004: Update reference to page_test module to use legacy_page_test module (Closed)
Patch Set: update Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/maps.py ('k') | content/test/gpu/gpu_tests/trace_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/screenshot_sync.py
diff --git a/content/test/gpu/gpu_tests/screenshot_sync.py b/content/test/gpu/gpu_tests/screenshot_sync.py
index 306d90a441a24d9166a576693cca72f76e317c3d..4423107e459a21b4d375872835e5e0b2d2eb85f8 100644
--- a/content/test/gpu/gpu_tests/screenshot_sync.py
+++ b/content/test/gpu/gpu_tests/screenshot_sync.py
@@ -8,7 +8,7 @@ from gpu_tests import gpu_test_base
from gpu_tests import path_util
from gpu_tests import screenshot_sync_expectations
-from telemetry.page import page_test
+from telemetry.page import legacy_page_test
from telemetry.story import story_set as story_set_module
from telemetry.util import image_util
from telemetry.util import rgba_color
@@ -41,7 +41,8 @@ class ScreenshotSyncValidator(gpu_test_base.ValidatorBase):
def ValidateAndMeasurePage(self, page, tab, results):
if not tab.screenshot_supported:
- raise page_test.Failure('Browser does not support screenshot capture')
+ raise legacy_page_test.Failure(
+ 'Browser does not support screenshot capture')
def CheckColorMatchAtLocation(expectedRGB, screenshot, x, y):
pixel_value = image_util.GetPixelColor(screenshot, x, y)
@@ -50,7 +51,7 @@ class ScreenshotSyncValidator(gpu_test_base.ValidatorBase):
'got (%d, %d, %d)') % (
x, y, expectedRGB.r, expectedRGB.g, expectedRGB.b,
pixel_value.r, pixel_value.g, pixel_value.b)
- raise page_test.Failure(error_message)
+ raise legacy_page_test.Failure(error_message)
def CheckScreenshot():
canvasRGB = rgba_color.RgbaColor(random.randint(0, 255),
« no previous file with comments | « content/test/gpu/gpu_tests/maps.py ('k') | content/test/gpu/gpu_tests/trace_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698