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

Unified Diff: dashboard/dashboard/list_tests.py

Issue 2588203002: Added in a revision picker with dummy data (Closed)
Patch Set: figuring out what is on this branch Created 3 years, 11 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 | « dashboard/dashboard/elements/test-picker.html ('k') | dashboard/dashboard/speed_releasing.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/list_tests.py
diff --git a/dashboard/dashboard/list_tests.py b/dashboard/dashboard/list_tests.py
index 7dfe3e8d2620acb58075a251c2eb5440274a0aaf..24d44a2b695d69cc23985711d3f4bbe1d4245e31 100644
--- a/dashboard/dashboard/list_tests.py
+++ b/dashboard/dashboard/list_tests.py
@@ -37,6 +37,16 @@ class ListTestsHandler(request_handler.RequestHandler):
A data structure with test names in JSON format, or nothing.
"""
self.response.headers.add_header('Access-Control-Allow-Origin', '*')
+
+ speed_releasing = self.request.get('speed_releasing')
+ if speed_releasing == 'true':
+ tests = {}
+ tests['memory:chrome:all_processes:reported_by_chrome:gpu:effective_size_avg'] = {}
+ tests['memory:chrome:all_processes:reported_by_chrome:gpu:effective_size_avg'] = {'has_rows': True, 'sub_tests': {}}
+
+ self.response.out.write(json.dumps(tests))
+ return
+
list_type = self.request.get('type')
# TODO(qyearsley): Separate these into two different handlers.
« no previous file with comments | « dashboard/dashboard/elements/test-picker.html ('k') | dashboard/dashboard/speed_releasing.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698