blob: 354967e2b6088876a3ee37c5c7615b7b52863bdc [file] [log] [blame]
Simon Hunt7ac7be92015-01-06 10:47:56 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 ONOS GUI -- SVG -- Glyph Service - Unit Tests
Simon Hunt7ac7be92015-01-06 10:47:56 -080019 */
20describe('factory: fw/svg/glyph.js', function() {
Simon Huntc9b73162015-01-29 14:02:15 -080021 var $log, fs, gs, d3Elem, svg;
Simon Hunt7ac7be92015-01-06 10:47:56 -080022
Bri Prebilic Cole6ed04eb2015-04-27 16:26:03 -070023 var numBaseGlyphs = 38,
Simon Huntbc39f6d2015-01-06 17:34:28 -080024 vbBird = '352 224 113 112',
Simon Hunt6e459802015-01-06 15:05:42 -080025 vbGlyph = '0 0 110 110',
Simon Hunt58f23bb2015-01-16 16:32:24 -080026 vbBadge = '0 0 10 10',
Bri Prebilic Coledeca6e92015-03-19 12:03:14 -070027 longPrefix = 'M95.8,9.2H14.2c-2.8,0-5,2.2-5,5v81.5c0,2.8,2.2,5,5,' +
28 '5h81.5c2.8,0,5-2.2,5-5V14.2C100.8,11.5,98.5,9.2,95.8,9.2z ',
Simon Hunt58f23bb2015-01-16 16:32:24 -080029 prefixLookup = {
30 bird: 'M427.7,300.4',
31 unknown: 'M35,40a5',
32 node: 'M15,100a5',
33 switch: 'M10,20a10',
34 roadm: 'M10,35l25-',
35 endstation: 'M10,15a5,5',
36 router: 'M10,55A45,45',
37 bgpSpeaker: 'M10,40a45,35',
38 chain: 'M60.4,77.6c-',
39 crown: 'M99.5,21.6c0,',
Bri Prebilic Cole7c980512015-03-25 12:31:29 -070040 lock: 'M79.4,48.6h',
Bri Prebilic Cole6ed04eb2015-04-27 16:26:03 -070041 topo: 'M97.2,76.3H86.6',
42
43 // navigation specific glyphs
44 flowTable: 'M15.9,19.1h-8v-13h',
Bri Prebilic Cole7c980512015-03-25 12:31:29 -070045
46 // toolbar specific glyphs
Bri Prebilic Coledeca6e92015-03-19 12:03:14 -070047 summary: longPrefix + 'M16.7',
48 details: longPrefix + 'M16.9',
49 ports: 'M98,9.2H79.6c',
50 map: 'M95.8,9.2H14.2c-2.8,0-5,2.2-5,5v66',
Bri Prebilic Cole7c980512015-03-25 12:31:29 -070051 cycleLabels: 'M72.5,33.9c',
52 oblique: 'M80.9,30.2h',
Bri Prebilic Coleb5f2b152015-04-07 14:58:09 -070053 filters: 'M24.8,13.3L',
Bri Prebilic Cole7c980512015-03-25 12:31:29 -070054 resetZoom: 'M86,79.8L',
55 relatedIntents: 'M99.9,43.7',
Bri Prebilic Coledb4b87b2015-03-25 09:18:42 -070056 nextIntent: 'M88.1,55.7',
57 prevIntent: 'M22.5,55.6',
Bri Prebilic Cole7c980512015-03-25 12:31:29 -070058 intentTraffic: 'M14.7,71.5h',
59 allTraffic: 'M15.7,64.5h-7v',
60 flows: 'M93.8,46.1c',
Bri Prebilic Cole5a206bb2015-03-25 16:33:27 -070061 eqMaster: 'M100.1,46.9l',
Bri Prebilic Coledeca6e92015-03-19 12:03:14 -070062
Bri Prebilic Cole7c980512015-03-25 12:31:29 -070063 // badges
Simon Hunt58f23bb2015-01-16 16:32:24 -080064 uiAttached: 'M2,2.5a.5,.5',
Simon Huntaa26adf2015-01-20 10:32:49 -080065 checkMark: 'M2.6,4.5c0',
66 xMark: 'M9.0,7.2C8.2',
Bri Prebilic Cole1dc32e62015-02-03 09:44:33 -080067 triangleUp: 'M0.5,6.2c0',
68 triangleDown: 'M9.5,4.2c0',
Simon Hunt3074fb22015-03-31 15:06:25 -070069 plus: 'M4,2h2v2h2v2',
70 minus: 'M2,4h6v2',
71 play: 'M2.5,2l5.5,3',
72 stop: 'M2.5,2.5h5',
Simon Hunt58f23bb2015-01-16 16:32:24 -080073
Simon Hunt9c1c45e2015-04-10 13:38:27 -070074 cloud: 'M37.6,79.5c-6.9,8.7-20.4,8.6',
75
Simon Hunt58f23bb2015-01-16 16:32:24 -080076 // our test ones..
77 triangle: 'M.5,.2',
78 diamond: 'M.2,.5'
Simon Hunt3074fb22015-03-31 15:06:25 -070079 },
80 glyphIds = [
81 'unknown', 'node', 'switch', 'roadm', 'endstation', 'router',
Bri Prebilic Cole6ed04eb2015-04-27 16:26:03 -070082 'bgpSpeaker', 'chain', 'crown', 'lock', 'topo', 'flowTable',
Simon Hunt3074fb22015-03-31 15:06:25 -070083 'summary', 'details', 'ports', 'map', 'cycleLabels', 'oblique',
Bri Prebilic Coleb5f2b152015-04-07 14:58:09 -070084 'filters', 'resetZoom', 'relatedIntents', 'nextIntent',
85 'prevIntent', 'intentTraffic', 'allTraffic', 'flows', 'eqMaster'
Simon Hunt3074fb22015-03-31 15:06:25 -070086 ],
87 badgeIds = [
88 'uiAttached', 'checkMark', 'xMark', 'triangleUp', 'triangleDown',
89 'plus', 'minus', 'play', 'stop'
Simon Hunt9c1c45e2015-04-10 13:38:27 -070090 ],
91 spriteIds = [
92 'cloud'
Simon Hunt3074fb22015-03-31 15:06:25 -070093 ];
Simon Hunt6e459802015-01-06 15:05:42 -080094
Simon Hunt51fc40b2015-01-06 13:56:12 -080095 beforeEach(module('onosUtil', 'onosSvg'));
Simon Hunt7ac7be92015-01-06 10:47:56 -080096
Simon Hunt51fc40b2015-01-06 13:56:12 -080097 beforeEach(inject(function (_$log_, FnService, GlyphService) {
Simon Huntc9b73162015-01-29 14:02:15 -080098 var body = d3.select('body');
Simon Hunt51fc40b2015-01-06 13:56:12 -080099 $log = _$log_;
100 fs = FnService;
Simon Hunt7ac7be92015-01-06 10:47:56 -0800101 gs = GlyphService;
Simon Huntc9b73162015-01-29 14:02:15 -0800102 d3Elem = body.append('defs').attr('id', 'myDefs');
103 svg = body.append('svg').attr('id', 'mySvg');
Simon Hunt7ac7be92015-01-06 10:47:56 -0800104 }));
105
Simon Hunt670e8252015-01-06 18:31:30 -0800106 afterEach(function () {
Simon Huntc9b73162015-01-29 14:02:15 -0800107 d3.select('#mySvg').remove();
Simon Hunt670e8252015-01-06 18:31:30 -0800108 d3.select('#myDefs').remove();
Simon Huntcacce342015-01-07 16:13:05 -0800109 gs.clear();
Simon Hunt670e8252015-01-06 18:31:30 -0800110 });
111
Simon Hunt7ac7be92015-01-06 10:47:56 -0800112 it('should define GlyphService', function () {
113 expect(gs).toBeDefined();
114 });
115
Simon Hunt6e459802015-01-06 15:05:42 -0800116 it('should define api functions', function () {
Simon Hunt51fc40b2015-01-06 13:56:12 -0800117 expect(fs.areFunctions(gs, [
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700118 'clear', 'init', 'registerGlyphs', 'registerGlyphSet',
119 'ids', 'glyph', 'loadDefs', 'addGlyph'
120 ])).toBe(true);
Simon Hunt51fc40b2015-01-06 13:56:12 -0800121 });
122
Simon Hunt6e459802015-01-06 15:05:42 -0800123 it('should start with no glyphs loaded', function () {
124 expect(gs.ids()).toEqual([]);
125 });
126
Simon Hunt58f23bb2015-01-16 16:32:24 -0800127 it('should load the base set of glyphs into the cache', function () {
Simon Hunt6e459802015-01-06 15:05:42 -0800128 gs.init();
Simon Huntbc39f6d2015-01-06 17:34:28 -0800129 expect(gs.ids().length).toEqual(numBaseGlyphs);
Simon Hunt6e459802015-01-06 15:05:42 -0800130 });
131
Simon Hunt58f23bb2015-01-16 16:32:24 -0800132 it('should remove glyphs from the cache on clear', function () {
Simon Huntcacce342015-01-07 16:13:05 -0800133 gs.init();
134 expect(gs.ids().length).toEqual(numBaseGlyphs);
135 gs.clear();
136 expect(gs.ids().length).toEqual(0);
137 });
138
Simon Hunt58f23bb2015-01-16 16:32:24 -0800139 function verifyGlyphLoadedInCache(id, vbox, expPfxId) {
140 var pfxId = expPfxId || id,
141 glyph = gs.glyph(id),
142 prefix = prefixLookup[pfxId],
Simon Hunt6e459802015-01-06 15:05:42 -0800143 plen = prefix.length;
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700144 expect(fs.contains(gs.ids(), id)).toBe(true);
Simon Hunt6e459802015-01-06 15:05:42 -0800145 expect(glyph).toBeDefined();
146 expect(glyph.id).toEqual(id);
147 expect(glyph.vb).toEqual(vbox);
148 expect(glyph.d.slice(0, plen)).toEqual(prefix);
149 }
150
Simon Hunt3074fb22015-03-31 15:06:25 -0700151 it('should be configured with the correct number of glyphs', function () {
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700152 var nGlyphs = 1 + glyphIds.length + badgeIds.length + spriteIds.length;
153 expect(nGlyphs).toEqual(numBaseGlyphs);
Simon Hunt3074fb22015-03-31 15:06:25 -0700154 });
155
Simon Hunt6e459802015-01-06 15:05:42 -0800156 it('should load the bird glyph', function() {
157 gs.init();
Simon Hunt58f23bb2015-01-16 16:32:24 -0800158 verifyGlyphLoadedInCache('bird', vbBird);
Simon Hunt6e459802015-01-06 15:05:42 -0800159 });
Simon Hunt3074fb22015-03-31 15:06:25 -0700160
161 it('should load the regular glyphs', function () {
Simon Hunt6e459802015-01-06 15:05:42 -0800162 gs.init();
Simon Hunt3074fb22015-03-31 15:06:25 -0700163 glyphIds.forEach(function (id) {
164 verifyGlyphLoadedInCache(id, vbGlyph);
Bri Prebilic Cole94a856e2015-01-19 15:16:40 -0800165 });
Simon Hunt3074fb22015-03-31 15:06:25 -0700166 });
167
168 it('should load the badge glyphs', function () {
169 gs.init();
170 badgeIds.forEach(function (id) {
171 verifyGlyphLoadedInCache(id, vbBadge);
172 });
173 });
174
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700175 it('should load the sprites', function () {
176 gs.init();
177 spriteIds.forEach(function (id) {
178 verifyGlyphLoadedInCache(id, vbGlyph);
179 });
180 });
181
Simon Huntbc39f6d2015-01-06 17:34:28 -0800182
183 // define some glyphs that we want to install
184
185 var testVbox = '0 0 1 1',
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700186 triVbox = '0 0 12 12',
187 diaVbox = '0 0 15 15',
Simon Huntbc39f6d2015-01-06 17:34:28 -0800188 dTriangle = 'M.5,.2l.3,.6,h-.6z',
189 dDiamond = 'M.2,.5l.3,-.3l.3,.3l-.3,.3z',
190 newGlyphs = {
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700191 _viewbox: testVbox,
Simon Huntbc39f6d2015-01-06 17:34:28 -0800192 triangle: dTriangle,
193 diamond: dDiamond
194 },
195 dupGlyphs = {
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700196 _viewbox: testVbox,
Simon Huntbc39f6d2015-01-06 17:34:28 -0800197 router: dTriangle,
198 switch: dDiamond
199 },
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700200 altNewGlyphs = {
201 _triangle: triVbox,
202 triangle: dTriangle,
203 _diamond: diaVbox,
204 diamond: dDiamond
205 },
206 altDupGlyphs = {
207 _router: triVbox,
208 router: dTriangle,
209 _switch: diaVbox,
210 switch: dDiamond
211 },
212 badGlyphSet = {
213 triangle: dTriangle,
214 diamond: dDiamond
215 },
216 warnMsg = 'GlyphService.registerGlyphs(): ',
217 warnMsgSet = 'GlyphService.registerGlyphSet(): ',
218 idCollision = warnMsg + 'ID collision: ',
219 idCollisionSet = warnMsgSet + 'ID collision: ',
220 missVbSet = warnMsgSet + 'no "_viewbox" property found',
221 missVbCustom = warnMsg + 'Missing viewbox property: ',
222 missVbTri = missVbCustom + '"_triangle"',
223 missVbDia = missVbCustom + '"_diamond"';
Simon Huntbc39f6d2015-01-06 17:34:28 -0800224
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700225
226 it('should install new glyphs as a glyph-set', function () {
Simon Huntbc39f6d2015-01-06 17:34:28 -0800227 gs.init();
228 expect(gs.ids().length).toEqual(numBaseGlyphs);
229 spyOn($log, 'warn');
230
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700231 var ok = gs.registerGlyphSet(newGlyphs);
232 expect(ok).toBe(true);
Simon Huntbc39f6d2015-01-06 17:34:28 -0800233 expect($log.warn).not.toHaveBeenCalled();
234
235 expect(gs.ids().length).toEqual(numBaseGlyphs + 2);
Simon Hunt58f23bb2015-01-16 16:32:24 -0800236 verifyGlyphLoadedInCache('triangle', testVbox);
237 verifyGlyphLoadedInCache('diamond', testVbox);
Simon Huntbc39f6d2015-01-06 17:34:28 -0800238 });
239
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700240 it('should not overwrite glyphs (via glyph-set) with dup IDs', function () {
241 gs.init();
242 expect(gs.ids().length).toEqual(numBaseGlyphs);
243 spyOn($log, 'warn');
244
245 var ok = gs.registerGlyphSet(dupGlyphs);
246 expect(ok).toBe(false);
247 expect($log.warn).toHaveBeenCalledWith(idCollisionSet + '"switch"');
248 expect($log.warn).toHaveBeenCalledWith(idCollisionSet + '"router"');
249
250 expect(gs.ids().length).toEqual(numBaseGlyphs);
251 // verify original glyphs still exist...
252 verifyGlyphLoadedInCache('router', vbGlyph);
253 verifyGlyphLoadedInCache('switch', vbGlyph);
254 });
255
256 it('should replace glyphs (via glyph-set) if asked nicely', function () {
257 gs.init();
258 expect(gs.ids().length).toEqual(numBaseGlyphs);
259 spyOn($log, 'warn');
260
261 var ok = gs.registerGlyphSet(dupGlyphs, true);
262 expect(ok).toBe(true);
263 expect($log.warn).not.toHaveBeenCalled();
264
265 expect(gs.ids().length).toEqual(numBaseGlyphs);
266 // verify glyphs have been overwritten...
267 verifyGlyphLoadedInCache('router', testVbox, 'triangle');
268 verifyGlyphLoadedInCache('switch', testVbox, 'diamond');
269 });
270
271 it ('should complain if missing _viewbox in a glyph-set', function () {
272 gs.init();
273 expect(gs.ids().length).toEqual(numBaseGlyphs);
274 spyOn($log, 'warn');
275
276 var ok = gs.registerGlyphSet(badGlyphSet);
277 expect(ok).toBe(false);
278 expect($log.warn).toHaveBeenCalledWith(missVbSet);
279 expect(gs.ids().length).toEqual(numBaseGlyphs);
280 });
281
282 it('should install new glyphs', function () {
283 gs.init();
284 expect(gs.ids().length).toEqual(numBaseGlyphs);
285 spyOn($log, 'warn');
286
287 var ok = gs.registerGlyphs(altNewGlyphs);
288 expect(ok).toBe(true);
289 expect($log.warn).not.toHaveBeenCalled();
290
291 expect(gs.ids().length).toEqual(numBaseGlyphs + 2);
292 verifyGlyphLoadedInCache('triangle', triVbox);
293 verifyGlyphLoadedInCache('diamond', diaVbox);
294 });
295
Simon Huntbc39f6d2015-01-06 17:34:28 -0800296 it('should not overwrite glyphs with dup IDs', function () {
297 gs.init();
298 expect(gs.ids().length).toEqual(numBaseGlyphs);
299 spyOn($log, 'warn');
300
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700301 var ok = gs.registerGlyphs(altDupGlyphs);
302 expect(ok).toBe(false);
Simon Huntbc39f6d2015-01-06 17:34:28 -0800303 expect($log.warn).toHaveBeenCalledWith(idCollision + '"switch"');
304 expect($log.warn).toHaveBeenCalledWith(idCollision + '"router"');
305
306 expect(gs.ids().length).toEqual(numBaseGlyphs);
307 // verify original glyphs still exist...
Simon Hunt58f23bb2015-01-16 16:32:24 -0800308 verifyGlyphLoadedInCache('router', vbGlyph);
309 verifyGlyphLoadedInCache('switch', vbGlyph);
Simon Huntbc39f6d2015-01-06 17:34:28 -0800310 });
311
312 it('should replace glyphs if asked nicely', function () {
313 gs.init();
314 expect(gs.ids().length).toEqual(numBaseGlyphs);
315 spyOn($log, 'warn');
316
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700317 var ok = gs.registerGlyphs(altDupGlyphs, true);
318 expect(ok).toBe(true);
Simon Huntbc39f6d2015-01-06 17:34:28 -0800319 expect($log.warn).not.toHaveBeenCalled();
320
321 expect(gs.ids().length).toEqual(numBaseGlyphs);
322 // verify glyphs have been overwritten...
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700323 verifyGlyphLoadedInCache('router', triVbox, 'triangle');
324 verifyGlyphLoadedInCache('switch', diaVbox, 'diamond');
325 });
326
327 it ('should complain if missing custom viewbox', function () {
328 gs.init();
329 expect(gs.ids().length).toEqual(numBaseGlyphs);
330 spyOn($log, 'warn');
331
332 var ok = gs.registerGlyphs(badGlyphSet);
333 expect(ok).toBe(false);
334 expect($log.warn).toHaveBeenCalledWith(missVbTri);
335 expect($log.warn).toHaveBeenCalledWith(missVbDia);
336 expect(gs.ids().length).toEqual(numBaseGlyphs);
Simon Huntbc39f6d2015-01-06 17:34:28 -0800337 });
Simon Hunt670e8252015-01-06 18:31:30 -0800338
339 function verifyPathPrefix(elem, prefix) {
340 var plen = prefix.length,
341 d = elem.select('path').attr('d');
342 expect(d.slice(0, plen)).toEqual(prefix);
343 }
344
Simon Hunt58f23bb2015-01-16 16:32:24 -0800345 function verifyLoadedInDom(id, vb, expPfxId) {
346 var pfxId = expPfxId || id,
347 symbol = d3Elem.select('#' + id);
348 expect(symbol.size()).toEqual(1);
349 expect(symbol.attr('viewBox')).toEqual(vb);
350 verifyPathPrefix(symbol, prefixLookup[pfxId]);
351 }
352
Simon Hunt670e8252015-01-06 18:31:30 -0800353 it('should load base glyphs into the DOM', function () {
354 gs.init();
355 gs.loadDefs(d3Elem);
356 expect(d3Elem.selectAll('symbol').size()).toEqual(numBaseGlyphs);
Simon Hunt58f23bb2015-01-16 16:32:24 -0800357 verifyLoadedInDom('bgpSpeaker', vbGlyph);
Simon Hunt670e8252015-01-06 18:31:30 -0800358 });
359
360 it('should load custom glyphs into the DOM', function () {
361 gs.init();
Simon Hunt9c1c45e2015-04-10 13:38:27 -0700362 gs.registerGlyphSet(newGlyphs);
Simon Hunt670e8252015-01-06 18:31:30 -0800363 gs.loadDefs(d3Elem);
364 expect(d3Elem.selectAll('symbol').size()).toEqual(numBaseGlyphs + 2);
Simon Hunt58f23bb2015-01-16 16:32:24 -0800365 verifyLoadedInDom('diamond', testVbox);
366 });
Simon Hunt670e8252015-01-06 18:31:30 -0800367
Simon Hunt58f23bb2015-01-16 16:32:24 -0800368 it('should load only specified glyphs into the DOM', function () {
369 gs.init();
370 gs.loadDefs(d3Elem, ['crown', 'chain', 'node']);
371 expect(d3Elem.selectAll('symbol').size()).toEqual(3);
372 verifyLoadedInDom('crown', vbGlyph);
373 verifyLoadedInDom('chain', vbGlyph);
374 verifyLoadedInDom('node', vbGlyph);
Simon Hunt670e8252015-01-06 18:31:30 -0800375 });
Simon Huntc9b73162015-01-29 14:02:15 -0800376
377 it('should add a glyph with default size', function () {
378 gs.init();
Simon Hunt4b668592015-01-29 17:33:53 -0800379 var retval = gs.addGlyph(svg, 'crown');
Simon Huntc9b73162015-01-29 14:02:15 -0800380 var what = svg.selectAll('use');
381 expect(what.size()).toEqual(1);
382 expect(what.attr('width')).toEqual('40');
383 expect(what.attr('height')).toEqual('40');
384 expect(what.attr('xlink:href')).toEqual('#crown');
385 expect(what.classed('glyph')).toBeTruthy();
386 expect(what.classed('overlay')).toBeFalsy();
Simon Hunt4b668592015-01-29 17:33:53 -0800387
388 // check a couple on retval, which should be the same thing..
389 expect(retval.attr('xlink:href')).toEqual('#crown');
390 expect(retval.classed('glyph')).toBeTruthy();
Simon Huntc9b73162015-01-29 14:02:15 -0800391 });
392
393 it('should add a glyph with given size', function () {
394 gs.init();
395 gs.addGlyph(svg, 'crown', 37);
396 var what = svg.selectAll('use');
397 expect(what.size()).toEqual(1);
398 expect(what.attr('width')).toEqual('37');
399 expect(what.attr('height')).toEqual('37');
400 expect(what.attr('xlink:href')).toEqual('#crown');
401 expect(what.classed('glyph')).toBeTruthy();
402 expect(what.classed('overlay')).toBeFalsy();
403 });
404
405 it('should add a glyph marked as overlay', function () {
406 gs.init();
407 gs.addGlyph(svg, 'crown', 20, true);
408 var what = svg.selectAll('use');
409 expect(what.size()).toEqual(1);
410 expect(what.attr('width')).toEqual('20');
411 expect(what.attr('height')).toEqual('20');
412 expect(what.attr('xlink:href')).toEqual('#crown');
413 expect(what.classed('glyph')).toBeTruthy();
414 expect(what.classed('overlay')).toBeTruthy();
415 });
Simon Hunt7ac7be92015-01-06 10:47:56 -0800416});