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

Unified Diff: content/test/data/gpu/pixel_offscreenCanvas_2d_resize_on_worker.html

Issue 2690663002: Improve Pixel_OffscreenCanvas2DResizeOnWorker test (Closed)
Patch Set: Created 3 years, 10 months 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: content/test/data/gpu/pixel_offscreenCanvas_2d_resize_on_worker.html
diff --git a/content/test/data/gpu/pixel_offscreenCanvas_2d_resize_on_worker.html b/content/test/data/gpu/pixel_offscreenCanvas_2d_resize_on_worker.html
index 91efd142d231984632ac16ff73fbea91426468cd..87cd85d90789fd4d475aed53d878416129393675 100644
--- a/content/test/data/gpu/pixel_offscreenCanvas_2d_resize_on_worker.html
+++ b/content/test/data/gpu/pixel_offscreenCanvas_2d_resize_on_worker.html
@@ -29,9 +29,9 @@ self.onmessage = function(e) {
ctx2d.fillRect(0, 0, transfered.width, transfered.height);
ctx2d.fillStyle = "red";
ctx2d.fillRect(10, 10, 20, 20);
- ctx2d.commit();
-
- self.postMessage("");
+ ctx2d.commit().then(function() {
+ self.postMessage("");
+ });
};
</script>
<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