Chromium Code Reviews| Index: chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js |
| diff --git a/chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js b/chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2a88fef94ee611f6a297b60522639cc1dfd3d298 |
| --- /dev/null |
| +++ b/chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js |
| @@ -0,0 +1,16 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// systeminfo.storage api test |
| +// browser_tests.exe --gtest_filter=SysteminfoStorageApiTest.Storage |
| +chrome.systemInfo = chrome.experimental.systemInfo; |
| + |
| +chrome.test.runTests([ |
| + function testGet() { |
| + chrome.systemInfo.storage.get(chrome.test.callbackPass(function(info) { |
| + // TODO: Need to check the value from Mock implementation |
|
Mihai Parparita -not on Chrome
2012/08/14 00:07:31
Put a username for this TODO.
Hongbo Min
2012/08/14 01:37:23
Done.
|
| + chrome.test.assertTrue(info.units.length > 0); |
| + })); |
| + } |
| +]); |