Auto merge of #18233 - ferjm:paint.timing.intermitent, r=jdm

Buffer perf notifications in paint timing test

Paint timing notifications may be fired before the observer starts observing, so we need to buffer these notifications.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #18219

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18233)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-08-28 12:28:59 -05:00 committed by GitHub
commit 3b11145ef7
2 changed files with 2 additions and 2 deletions

View file

@ -27532,7 +27532,7 @@
"testharness"
],
"mozilla/paint_timing.html": [
"8cf0400c36168b57c386253d647b61013896d325",
"fb1100bdf9a5a3516f40fbb36e89714fe860830b",
"testharness"
],
"mozilla/parentNode_querySelector.html": [

View file

@ -14,5 +14,5 @@ var observer = new PerformanceObserver(t.step_func_done(list => {
assert_equals(entry.duration, 0, "Duration is 0");
});
}));
observer.observe({entryTypes: ['paint']});
observer.observe({entryTypes: ['paint'], buffered: true});
</script>