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

Side by Side Diff: skia_tools.js

Issue 12440022: Creating global_variables_2.json to get around the caching issue (Closed) Base URL: http://skia.googlecode.com/svn/buildbot/
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « site_config/global_variables_2.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * @license Copyright 2012 Google Inc. 2 * @license Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 /** 8 /**
9 * @fileoverview Tools used by the Skia buildbot dashboards, including 9 * @fileoverview Tools used by the Skia buildbot dashboards, including
10 * facilities for retrieving data from the buildbot master. 10 * facilities for retrieving data from the buildbot master.
11 */ 11 */
12 12
13 "use strict"; 13 "use strict";
14 14
15 var skiaTools = { 15 var skiaTools = {
16 16
17 /** 17 /**
18 * getVariable 18 * getVariable
19 * 19 *
20 * @return The value for the requested variable, as defined in the global 20 * @return The value for the requested variable, as defined in the global
21 * variables file. 21 * variables file.
22 */ 22 */
23 getVariable: function(varName) { 23 getVariable: function(varName) {
24 var url = "http://skia.googlecode.com/svn/buildbot/site_config/global_variable s.json"; 24 var url = "http://skia.googlecode.com/svn/buildbot/site_config/global_variable s_2.json";
25 try { 25 try {
26 var request = new XMLHttpRequest(); 26 var request = new XMLHttpRequest();
27 } catch (error) { 27 } catch (error) {
28 alert(error); 28 alert(error);
29 } 29 }
30 request.open("GET", url, false); 30 request.open("GET", url, false);
31 request.send(); 31 request.send();
32 return eval("(" + request.responseText + ")")[varName].value; 32 return eval("(" + request.responseText + ")")[varName].value;
33 }, 33 },
34 34
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 slaveData["connected"], 536 slaveData["connected"],
537 currentBuilds, 537 currentBuilds,
538 slaveData["host"], 538 slaveData["host"],
539 slaveData["name"], 539 slaveData["name"],
540 slaveData["version"])); 540 slaveData["version"]));
541 } 541 }
542 return slaves; 542 return slaves;
543 }, 543 },
544 544
545 }; 545 };
OLDNEW
« no previous file with comments | « site_config/global_variables_2.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698