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

Unified Diff: tools/telemetry/telemetry/testing/test_page_test_results.py

Issue 1238393003: [IndexedDB] Adding traces, perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot to start the old test Created 5 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/perf/page_sets/indexeddb_perf/perf_test.js ('k') | tools/telemetry/telemetry/timeline/counter.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/testing/test_page_test_results.py
diff --git a/tools/telemetry/telemetry/testing/test_page_test_results.py b/tools/telemetry/telemetry/testing/test_page_test_results.py
index 82e72a71e063131fd697344c2f5fcfabd23cfb95..3770c72dd60237e6daa873ed4ddb61cc18584102 100644
--- a/tools/telemetry/telemetry/testing/test_page_test_results.py
+++ b/tools/telemetry/telemetry/testing/test_page_test_results.py
@@ -4,6 +4,7 @@
from telemetry.internal.results import page_test_results
from telemetry.page import page as page_module
+from telemetry.value import list_of_scalar_values
from telemetry.value import scalar
@@ -27,5 +28,13 @@ class TestPageTestResults(
self.test.assertTrue(isinstance(value, scalar.ScalarValue))
self.test.assertEquals(expected_value, value.value)
+ def AssertHasPageSpecificListOfScalarValues(self, name, units,
+ expected_values):
+ value = self.GetPageSpecificValueNamed(name)
+ self.test.assertEquals(units, value.units)
+ self.test.assertTrue(
+ isinstance(value, list_of_scalar_values.ListOfScalarValues))
+ self.test.assertItemsEqual(expected_values, value.values)
+
def __str__(self):
return '\n'.join([repr(x) for x in self.all_page_specific_values])
« no previous file with comments | « tools/perf/page_sets/indexeddb_perf/perf_test.js ('k') | tools/telemetry/telemetry/timeline/counter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698