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

Unified Diff: tools/telemetry/telemetry/core/tab_unittest.py

Issue 19114006: Remove dwm function because it is going away in windows 8.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing telemetry test Created 7 years, 5 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/tab_unittest.py
diff --git a/tools/telemetry/telemetry/core/tab_unittest.py b/tools/telemetry/telemetry/core/tab_unittest.py
index 5627bf4491fad53ffa932c5b2b9d977b69202852..156c935a7879887b6711b1dfc1aff710d94cb234 100644
--- a/tools/telemetry/telemetry/core/tab_unittest.py
+++ b/tools/telemetry/telemetry/core/tab_unittest.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import logging
import os
+import time
from telemetry.core import util
from telemetry.core import exceptions
@@ -71,6 +72,8 @@ class GpuTabTest(tab_test_case.TabTestCase):
self._tab.WaitForDocumentReadyStateToBeComplete()
pixel_ratio = self._tab.EvaluateJavaScript('window.devicePixelRatio || 1')
+ # TODO(bajones): Sleep for a bit to counter BUG 260878.
+ time.sleep(0.5)
screenshot = self._tab.Screenshot(5)
assert screenshot
screenshot.GetPixelColor(0 * pixel_ratio, 0 * pixel_ratio).AssertIsRGB(
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698