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

Unified Diff: gm/rebaseline_server/static/loader.js

Issue 24274003: Create HTTP-based GM results viewer. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: svn_py Created 7 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
Index: gm/rebaseline_server/static/loader.js
===================================================================
--- gm/rebaseline_server/static/loader.js (revision 0)
+++ gm/rebaseline_server/static/loader.js (revision 0)
@@ -0,0 +1,22 @@
+/*
+ * Loader:
+ * Reads GM result reports written out by results_loader.py, and imports
+ * their data into $scope.results .
+ */
+var Loader = angular.module(
+ 'Loader',
+ []
+);
+Loader.controller(
+ 'Loader.Controller',
+ function($scope, $http) {
+ $scope.changeResultType = function() {
+ $http.get("/results/" + $scope.resultType).then(
+ function(response) {
+ $scope.results = response.data;
+ $scope.sortColumn = 'test';
+ }
+ );
+ }
+ }
+);

Powered by Google App Engine
This is Rietveld 408576698