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

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

Issue 2672803002: [Telemetry refactor] Migrate clients to new JavaScript API (batch 3) (Closed)
Patch Set: add comment on tools/android Created 3 years, 10 months 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/screenshot_sync_integration_test.py
diff --git a/content/test/gpu/gpu_tests/screenshot_sync_integration_test.py b/content/test/gpu/gpu_tests/screenshot_sync_integration_test.py
index e6c1dc8735bc25cf3cd8307e3e264ff85058a617..76f1a6e33fc2fe9f06f3660a471748b8de961792 100644
--- a/content/test/gpu/gpu_tests/screenshot_sync_integration_test.py
+++ b/content/test/gpu/gpu_tests/screenshot_sync_integration_test.py
@@ -115,8 +115,9 @@ class ScreenshotSyncIntegrationTest(gpu_integration_test.GpuIntegrationTest):
random.randint(0, 255),
255)
tab = self.tab
- tab.EvaluateJavaScript("window.draw(%d, %d, %d);" % (
- canvasRGB.r, canvasRGB.g, canvasRGB.b))
+ tab.EvaluateJavaScript2(
+ "window.draw({{ red }}, {{ green }}, {{ blue }});",
+ red=canvasRGB.r, green=canvasRGB.g, blue=canvasRGB.b)
screenshot = tab.Screenshot(5)
start_x = 10
start_y = 0
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_integration_test.py ('k') | content/test/gpu/gpu_tests/trace_integration_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698