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

Side by Side Diff: appengine/swarming/elements/res/js/alias.js

Issue 2338823002: Fix small glitches in bot-page and task-list (Closed) Base URL: git@github.com:luci/luci-py@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « appengine/swarming/elements/res/imp/tasklist/task-list.html ('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 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 // TODO(kjlubick): add tests for this code 5 // TODO(kjlubick): add tests for this code
6 6
7 this.swarming = this.swarming || {}; 7 this.swarming = this.swarming || {};
8 this.swarming.alias = this.swarming.alias || (function(){ 8 this.swarming.alias = this.swarming.alias || (function(){
9 var ANDROID_ALIASES = { 9 var ANDROID_ALIASES = {
10 "angler": "Nexus 6p",
10 "bullhead": "Nexus 5X", 11 "bullhead": "Nexus 5X",
11 "flo": "Nexus 7 (2013)", 12 "flo": "Nexus 7 (2013)",
12 "flounder": "Nexus 9", 13 "flounder": "Nexus 9",
13 "foster": "NVIDIA Shield", 14 "foster": "NVIDIA Shield",
14 "fugu": "Nexus Player", 15 "fugu": "Nexus Player",
15 "grouper": "Nexus 7 (2012)", 16 "grouper": "Nexus 7 (2012)",
16 "hammerhead": "Nexus 5", 17 "hammerhead": "Nexus 5",
18 "heroqlteatt": "Galaxy S7",
17 "m0": "Galaxy S3", 19 "m0": "Galaxy S3",
18 "mako": "Nexus 4", 20 "mako": "Nexus 4",
19 "manta": "Nexus 10", 21 "manta": "Nexus 10",
20 "shamu": "Nexus 6", 22 "shamu": "Nexus 6",
21 "sprout": "Android One", 23 "sprout": "Android One",
22 }; 24 };
23 25
24 var UNKNOWN = "unknown"; 26 var UNKNOWN = "unknown";
25 27
26 var GPU_ALIASES = { 28 var GPU_ALIASES = {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 return str; 96 return str;
95 }; 97 };
96 98
97 var aliasMap = { 99 var aliasMap = {
98 "device_type": alias.android, 100 "device_type": alias.android,
99 "gpu": alias.gpu, 101 "gpu": alias.gpu,
100 } 102 }
101 103
102 return alias; 104 return alias;
103 })(); 105 })();
OLDNEW
« no previous file with comments | « appengine/swarming/elements/res/imp/tasklist/task-list.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698