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

Unified Diff: content/test/gpu/gpu_tests/cloud_storage_test_base.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
Index: content/test/gpu/gpu_tests/cloud_storage_test_base.py
diff --git a/content/test/gpu/gpu_tests/cloud_storage_test_base.py b/content/test/gpu/gpu_tests/cloud_storage_test_base.py
index 77d2becf537701f878f9e0de6872c72e262c9f86..418d091c037b4a4ecf09ffc5052c486afb1fadfb 100644
--- a/content/test/gpu/gpu_tests/cloud_storage_test_base.py
+++ b/content/test/gpu/gpu_tests/cloud_storage_test_base.py
@@ -11,7 +11,7 @@ import re
import tempfile
from py_utils import cloud_storage
-from telemetry.page import page_test
+from telemetry.page import legacy_page_test
from telemetry.util import image_util
from telemetry.util import rgba_color
@@ -67,7 +67,7 @@ def _CompareScreenshotSamples(tab, screenshot, expectations, device_pixel_ratio,
for y in range(y0, y1):
if (x < 0 or y < 0 or x >= image_util.Width(screenshot) or
y >= image_util.Height(screenshot)):
- raise page_test.Failure(
+ raise legacy_page_test.Failure(
('Expected pixel location [%d, %d] is out of range on ' +
'[%d, %d] image') %
(x, y, image_util.Width(screenshot),
@@ -79,7 +79,7 @@ def _CompareScreenshotSamples(tab, screenshot, expectations, device_pixel_ratio,
expectation["color"][1],
expectation["color"][2])
if not actual_color.IsEqual(expected_color, expectation["tolerance"]):
- raise page_test.Failure('Expected pixel at ' + str(location) +
+ raise legacy_page_test.Failure('Expected pixel at ' + str(location) +
' (actual pixel (' + str(x) + ', ' + str(y) + ')) ' +
' to be ' +
str(expectation["color"]) + " but got [" +
@@ -262,7 +262,7 @@ class ValidatorBase(gpu_test_base.ValidatorBase):
_CompareScreenshotSamples(tab, screenshot, expectations,
device_pixel_ratio,
self.options.test_machine_name)
- except page_test.Failure:
+ except legacy_page_test.Failure:
image_name = self._UrlToImageName(url)
if self.options.test_machine_name:
self._UploadErrorImagesToCloudStorage(image_name, screenshot, None)
« no previous file with comments | « chrome/test/media_router/telemetry/benchmarks/media_router_measurements.py ('k') | content/test/gpu/gpu_tests/gpu_process.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698