Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6384)

Unified Diff: chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js

Issue 10831353: Add a generic template for system info provider (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code polishment Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js
diff --git a/chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js b/chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js
index fe2bb28069c6dd5c4b44664ddc140c15a606a9e2..5bf45546269da4cb26ce5cbeeb9ae53168c63b16 100644
--- a/chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js
+++ b/chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js
@@ -9,11 +9,16 @@ chrome.systemInfo = chrome.experimental.systemInfo;
chrome.test.runTests([
function testGet() {
- chrome.systemInfo.cpu.get(chrome.test.callbackPass(function(result){
- chrome.test.assertTrue(result.cores.length == 1);
- var core = result.cores[0];
- chrome.test.assertTrue(core.load == 53);
- }));
+ for(var i = 0; i < 20; ++i) {
+ chrome.systemInfo.cpu.get(chrome.test.callbackPass(function(result) {
+ chrome.test.assertTrue(result.cores.length == 4);
+ var core;
+ for (var i = 0; i < result.cores.length; ++i) {
+ core = result.cores[i];
+ chrome.test.assertTrue(core.load == i*10);
+ }
+ }));
+ }
},
]);
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698