| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // system.storage api test | 5 // system.storage api test |
| 6 // app_shell_browsertests --gtest_filter=SystemStorageApiTest.Storage | 6 // extensions_browsertests --gtest_filter=SystemStorageApiTest.Storage |
| 7 | 7 |
| 8 // Testing data should be the same as |kTestingData| in | 8 // Testing data should be the same as |kTestingData| in |
| 9 // system_storage_apitest.cc. | 9 // system_storage_apitest.cc. |
| 10 var testData = [ | 10 var testData = [ |
| 11 { id:"", name: "0xbeaf", type: "removable", capacity: 4098, | 11 { id:"", name: "0xbeaf", type: "removable", capacity: 4098, |
| 12 availableCapacity: 1}, | 12 availableCapacity: 1}, |
| 13 { id:"", name: "/home", type: "fixed", capacity: 4098, | 13 { id:"", name: "/home", type: "fixed", capacity: 4098, |
| 14 availableCapacity: 2}, | 14 availableCapacity: 2}, |
| 15 { id:"", name: "/data", type: "fixed", capacity: 10000, | 15 { id:"", name: "/data", type: "fixed", capacity: 10000, |
| 16 availableCapacity: 3} | 16 availableCapacity: 3} |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 if (info.id == testData[j].id) { | 40 if (info.id == testData[j].id) { |
| 41 chrome.test.assertEq(testData[j].availableCapacity, | 41 chrome.test.assertEq(testData[j].availableCapacity, |
| 42 info.availableCapacity); | 42 info.availableCapacity); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 }); | 45 }); |
| 46 } | 46 } |
| 47 })); | 47 })); |
| 48 } | 48 } |
| 49 ]); | 49 ]); |
| OLD | NEW |