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 4bcef4b347f6fad2d005842fafab2e78d9f04af4..90e9c2c1f6719d8e5dd6a158102ed1d85b6d4121 100644 |
--- a/content/test/gpu/gpu_tests/gpu_rasterization.py |
+++ b/content/test/gpu/gpu_tests/gpu_rasterization.py |
@@ -49,7 +49,7 @@ class _GpuRasterizationValidator(cloud_storage_test_base.ValidatorBase): |
device_pixel_ratio = tab.EvaluateJavaScript('window.devicePixelRatio') |
if hasattr(page, 'test_rect'): |
- test_rect = [x * device_pixel_ratio for x in page.test_rect] |
+ test_rect = [int(x * device_pixel_ratio) for x in page.test_rect] |
screenshot = screenshot.Crop( |
test_rect[0], test_rect[1], |
test_rect[2], test_rect[3]) |