- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / system / memory / test_memory_api.js
1 // Copyright 2013 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 // system.memory api test
6 // browser_tests --gtest_filter=SystemMemoryApiTest.*
7
8 chrome.test.runTests([
9   function testGet() {
10     for(var i = 0; i < 10; ++i) {
11       chrome.system.memory.getInfo(chrome.test.callbackPass(function(result) {
12         chrome.test.assertEq(4096, result.capacity);
13         chrome.test.assertEq(1024, result.availableCapacity);
14       }));
15     }
16   }
17 ]);
18