Roll src/third_party/WebKit 605a979:06cb9e9 (svn 202556:202558)
[chromium-blink-merge.git] / ui / file_manager / image_loader / cache_unittest.js
blob5a54ebc58269ffdf338f73a1713f53a049c43ecf
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
3 // found in the LICENSE file.
5 'use strict';
7 function testCreateCacheKey() {
8 var key = ImageCache.createKey({url: 'http://example.com/image.jpg'});
9 assertTrue(!!key);
12 function testNotCreateCacheKey() {
13 var key = ImageCache.createKey({url: 'data:xxx'});
14 assertFalse(!!key);
16 var key = ImageCache.createKey({url: 'DaTa:xxx'});
17 assertFalse(!!key);