mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision e710d1d6bbe007a6a9344f79e17b445cf97cc623
This commit is contained in:
parent
ec408e9a57
commit
5a5336aaf0
1981 changed files with 64719 additions and 2377 deletions
|
@ -0,0 +1,25 @@
|
|||
function checkMeasureMemoryResultSummary(result) {
|
||||
assert_own_property(result, "total");
|
||||
assert_own_property(result.total, "jsMemoryEstimate");
|
||||
assert_own_property(result.total, "jsMemoryRange");
|
||||
assert_equals(result.total.jsMemoryRange.length, 2);
|
||||
assert_greater_than_equal(
|
||||
result.total.jsMemoryRange[1],
|
||||
result.total.jsMemoryRange[0]);
|
||||
assert_greater_than_equal(
|
||||
result.total.jsMemoryEstimate,
|
||||
result.total.jsMemoryRange[0]);
|
||||
assert_greater_than_equal(
|
||||
result.total.jsMemoryRange[1],
|
||||
result.total.jsMemoryEstimate);
|
||||
}
|
||||
|
||||
promise_test(async testCase => {
|
||||
let result = await performance.measureMemory();
|
||||
checkMeasureMemoryResultSummary(result);
|
||||
}, 'Well-formed result of performance.measureMemory with default arguments.');
|
||||
|
||||
promise_test(async testcase => {
|
||||
let result = await performance.measureMemory({detailed: false});
|
||||
checkMeasureMemoryResultSummary(result);
|
||||
}, 'well-formed result of performance.measurememory with detailed=false.');
|
Loading…
Add table
Add a link
Reference in a new issue