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

Unified Diff: content/test/gpu/gpu_tests/gpu_rasterization.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/gpu_process.py ('k') | content/test/gpu/gpu_tests/gpu_test_base.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/gpu_rasterization.py
diff --git a/content/test/gpu/gpu_tests/gpu_rasterization.py b/content/test/gpu/gpu_tests/gpu_rasterization.py
index c92390ca187ad70d85e652289309551ca14d5f00..03aea17cd97ce176cf9d274359792295b129b8f1 100644
--- a/content/test/gpu/gpu_tests/gpu_rasterization.py
+++ b/content/test/gpu/gpu_tests/gpu_rasterization.py
@@ -6,7 +6,7 @@ from gpu_tests import cloud_storage_test_base
from gpu_tests import gpu_rasterization_expectations
import page_sets
-from telemetry.page import page_test
+from telemetry.page import legacy_page_test
from telemetry.util import image_util
@@ -39,17 +39,18 @@ class GpuRasterizationValidator(cloud_storage_test_base.ValidatorBase):
def ValidateAndMeasurePage(self, page, tab, results):
if not _DidTestSucceed(tab):
- raise page_test.Failure('Page indicated a failure')
+ raise legacy_page_test.Failure('Page indicated a failure')
if not hasattr(page, 'expectations') or not page.expectations:
- raise page_test.Failure('Expectations not specified')
+ raise legacy_page_test.Failure('Expectations not specified')
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')
screenshot = tab.Screenshot()
if screenshot is None:
- raise page_test.Failure('Could not capture screenshot')
+ raise legacy_page_test.Failure('Could not capture screenshot')
device_pixel_ratio = tab.EvaluateJavaScript('window.devicePixelRatio')
if hasattr(page, 'test_rect'):
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_process.py ('k') | content/test/gpu/gpu_tests/gpu_test_base.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698