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

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

Issue 10830240: Add the implementation skeleton for systeminfo.cpu API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated patch 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..94fbe6ac52f47dbda3410afc5d18cefbf8d90134
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js
@@ -0,0 +1,19 @@
+// 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.cpu api test
+// browser_tests.exe --gtest_filter=SysteminfoCpuApiTest.*
+
+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);
+ }));
+ },
+]);
+

Powered by Google App Engine
This is Rietveld 408576698