mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -23,14 +23,15 @@
|
|||
|
||||
async_test(function (t) {
|
||||
var observer = new PerformanceObserver(
|
||||
t.step_func(function(entryList, obs) {
|
||||
checkEntries(entryList.getEntries(),
|
||||
[{ entryType: "mark", name: "mark1"}]);
|
||||
t.done();
|
||||
t.step_func(function (entryList, obs) {
|
||||
assert_unreached("This callback must not be invoked");
|
||||
})
|
||||
);
|
||||
observer.observe({entryTypes: ["mark"]});
|
||||
self.performance.mark("mark1");
|
||||
observer.disconnect();
|
||||
self.performance.mark("mark2");
|
||||
}, "An observer disconnected after a mark must receive the mark");
|
||||
t.step_timeout(function () {
|
||||
t.done();
|
||||
}, 2000);
|
||||
}, "An observer disconnected after a mark must not have its callback invoked");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue