OLD | NEW |
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 var chrome = { | 7 var chrome = { |
8 metricsPrivate: { | 8 metricsPrivate: { |
| 9 MetricTypeType: { |
| 10 HISTOGRAM_LOG: 'histogram-log', |
| 11 HISTOGRAM_LINEAR: 'histogram-linear' |
| 12 }, |
9 recordPercentage: function() {}, | 13 recordPercentage: function() {}, |
10 recordValue: function() {} | 14 recordValue: function() {} |
11 }, | 15 }, |
12 i18n: { | 16 i18n: { |
13 getMessage: function() {} | 17 getMessage: function() {} |
14 } | 18 } |
15 }; | 19 }; |
16 | 20 |
17 /** | 21 /** |
18 * Lets the client to load URL and returns the local cache (not caches in the | 22 * Lets the client to load URL and returns the local cache (not caches in the |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 loadAndCheckCacheUsed(client, 'data:URI', {cache: true}). | 81 loadAndCheckCacheUsed(client, 'data:URI', {cache: true}). |
78 then(function(cacheUsed) { | 82 then(function(cacheUsed) { |
79 assertFalse(cacheUsed); | 83 assertFalse(cacheUsed); |
80 return loadAndCheckCacheUsed(client, 'data:URI', {cache: true}); | 84 return loadAndCheckCacheUsed(client, 'data:URI', {cache: true}); |
81 }). | 85 }). |
82 then(function(cacheUsed) { | 86 then(function(cacheUsed) { |
83 assertFalse(cacheUsed); | 87 assertFalse(cacheUsed); |
84 }), | 88 }), |
85 callback); | 89 callback); |
86 } | 90 } |
OLD | NEW |