mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Update web-platform-tests to revision 55be31752d6d8ae224f4922689e6cdc75576e1e2
This commit is contained in:
parent
2efc2e2880
commit
8e4409345a
109 changed files with 769 additions and 420 deletions
|
@ -9,10 +9,10 @@ function indexOfEmptyEntry(result) {
|
|||
|
||||
assert_true(self.crossOriginIsolated);
|
||||
promise_test(async testCase => {
|
||||
const initial = await performance.measureMemory();
|
||||
const initial = await performance.measureUserAgentSpecificMemory();
|
||||
let observed_different_order = false;
|
||||
for (let i = 0; i < 100; ++i) {
|
||||
const current = await performance.measureMemory();
|
||||
const current = await performance.measureUserAgentSpecificMemory();
|
||||
if (indexOfEmptyEntry(initial) != indexOfEmptyEntry(current)) {
|
||||
observed_different_order = true;
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ promise_test(async testCase => {
|
|||
// the probability of at most 2^-100 since there are at least two
|
||||
// entries in the breakdown.
|
||||
assert_true(observed_different_order);
|
||||
}, 'Well-formed result of performance.measureMemory.');
|
||||
}, 'Well-formed result of performance.measureUserAgentSpecificMemory.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue