OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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. |
| 4 |
| 5 // systeminfo.cpu api test |
| 6 // browser_tests.exe --gtest_filter=SystemInfoCpuApiTest.* |
| 7 |
| 8 chrome.systemInfo = chrome.experimental.systemInfo; |
| 9 |
| 10 chrome.test.runTests([ |
| 11 function testGet() { |
| 12 chrome.systemInfo.cpu.get(chrome.test.callbackPass(function(result){ |
| 13 chrome.test.assertTrue(result.cores.length == 1); |
| 14 var core = result.cores[0]; |
| 15 chrome.test.assertTrue(core.load == 53); |
| 16 })); |
| 17 }, |
| 18 ]); |
| 19 |
OLD | NEW |