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

Unified Diff: tools/gpu/gpu_tools/first_paint_time_benchmark_unittest.py

Issue 10916227: More polish in prep for CrOS support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing Created 8 years, 3 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 | « tools/gpu/gpu_tools/first_paint_time_benchmark.py ('k') | tools/gpu/gpu_tools/multi_page_benchmark.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gpu/gpu_tools/first_paint_time_benchmark_unittest.py
diff --git a/tools/gpu/gpu_tools/first_paint_time_benchmark_unittest.py b/tools/gpu/gpu_tools/first_paint_time_benchmark_unittest.py
index 95e0b51c0be319023ce9546b2a43b11a0d4504dc..5ceb9bbf1fd23de8f5845385187e4234eb65138f 100644
--- a/tools/gpu/gpu_tools/first_paint_time_benchmark_unittest.py
+++ b/tools/gpu/gpu_tools/first_paint_time_benchmark_unittest.py
@@ -7,7 +7,7 @@ import multi_page_benchmark
class FirstPaintTimeBenchmarkUnitTest(
multi_page_benchmark.MultiPageBenchmarkUnitTest):
- def testBasicFunctionality(self):
+ def testFirstPaintTimeMeasurement(self):
ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html')
benchmark = first_paint_time_benchmark.FirstPaintTimeBenchmark()
@@ -21,4 +21,7 @@ class FirstPaintTimeBenchmarkUnitTest(
header)
self.assertEqual(1, len(results))
self.assertTrue('scrollable_page.html' in results[0][0])
+ if results[0][1] == "unsupported":
+ # This test can't run on content_shell.
+ return
self.assertTrue(results[0][1] > 0)
« no previous file with comments | « tools/gpu/gpu_tools/first_paint_time_benchmark.py ('k') | tools/gpu/gpu_tools/multi_page_benchmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698