mirror of
https://github.com/nodejs/node.git
synced 2024-11-25 08:19:38 +01:00
767ee73486
Commit 3e1b1dd
missed a few files in test/parallel, this commit
rectifies that.
Only test/parallel/test-url.js still has a copyright header. I left
it in because the original author is neither an io.js contributor nor
a StrongLoop employee.
PR-URL: https://github.com/iojs/io.js/pull/527
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
16 lines
378 B
JavaScript
16 lines
378 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
var v8 = require('v8');
|
|
|
|
var s = v8.getHeapStatistics();
|
|
var keys = [
|
|
'heap_size_limit',
|
|
'total_heap_size',
|
|
'total_heap_size_executable',
|
|
'total_physical_size',
|
|
'used_heap_size'];
|
|
assert.deepEqual(Object.keys(s).sort(), keys);
|
|
keys.forEach(function(key) {
|
|
assert.equal(typeof s[key], 'number');
|
|
});
|