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

Side by Side Diff: ui/file_manager/image_loader/cache_unittest.js

Issue 1148563004: Fix all compiler errors found by the new compiler version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 | « ui/file_manager/image_loader/cache.js ('k') | ui/file_manager/image_loader/image_loader.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 function testCreateCacheKey() { 7 function testCreateCacheKey() {
8 var key = Cache.createKey({url: 'http://example.com/image.jpg'}); 8 var key = ImageCache.createKey({url: 'http://example.com/image.jpg'});
9 assertTrue(!!key); 9 assertTrue(!!key);
10 } 10 }
11 11
12 function testNotCreateCacheKey() { 12 function testNotCreateCacheKey() {
13 var key = Cache.createKey({url: 'data:xxx'}); 13 var key = ImageCache.createKey({url: 'data:xxx'});
14 assertFalse(!!key); 14 assertFalse(!!key);
15 15
16 var key = Cache.createKey({url: 'DaTa:xxx'}); 16 var key = ImageCache.createKey({url: 'DaTa:xxx'});
17 assertFalse(!!key); 17 assertFalse(!!key);
18 } 18 }
OLDNEW
« no previous file with comments | « ui/file_manager/image_loader/cache.js ('k') | ui/file_manager/image_loader/image_loader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698