| 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 for(var i = 0; i < 20; ++i) { | |
| 13 chrome.systemInfo.cpu.get(chrome.test.callbackPass(function(result) { | |
| 14 chrome.test.assertEq(4, result.numOfProcessors); | |
| 15 chrome.test.assertEq("x86", result.archName); | |
| 16 chrome.test.assertEq("unknown", result.modelName); | |
| 17 })); | |
| 18 } | |
| 19 }, | |
| 20 ]); | |
| 21 | |
| OLD | NEW |