Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/basic-plumbing-main-to-worker.html

Issue 2499353002: Fix flakiness in v/t/fast/compositorworker/basic-plumbing-main-to-worker.html (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/basic-plumbing-main-to-worker.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/basic-plumbing-main-to-worker.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/basic-plumbing-main-to-worker.html
index adf005ae59ee43e350317be0c4c87d4b97ce77c3..109b8ac5d06ad5913f8017469d90cb87dac38a65 100644
--- a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/basic-plumbing-main-to-worker.html
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/basic-plumbing-main-to-worker.html
@@ -58,9 +58,12 @@ function updateElementAndVerify(e) {
test.done();
});
- // Delay posting to the compositor until we have had another frame (i.e. commit).
- requestAnimationFrame(function() {
- worker.postMessage({});
+ // Delay posting to the compositor until we have had two frames to ensure our change
+ // is activated on the compositor.
+ requestAnimationFrame(function(){
+ requestAnimationFrame(function() {
+ worker.postMessage({});
+ });
});
}
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698