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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-frameless-doc.html

Issue 2738773004: No longer clamp setTimeout(..., 0) to 1ms. (Closed)
Patch Set: update webgl2 conformance expectations as well Created 3 years, 8 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
Index: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-frameless-doc.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-frameless-doc.html b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-frameless-doc.html
index 10542b104c4ec607a5ba51fcbfc7e6fbe1ab70d0..76f518278296e5ef143236aedf2062d629275f18 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-frameless-doc.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-frameless-doc.html
@@ -41,13 +41,17 @@ async_test(function(t) {
c.width = 50;
c.height = 50;
var ctx2 = c.getContext("2d");
+ // TODO(junov): Use the Promise returned by commit to schedule after the
+ // commit. (crbug.com/709484)
setTimeout(function() {
- ctx2.drawImage(canvas, 0, 0);
- var pixels = ctx2.getImageData(0, 0, 1, 1).data;
- t.step(function() {
- assert_array_equals(pixels, [0, 0, 255, 255]);
- });
- t.done();
+ setTimeout(function() {
+ ctx2.drawImage(canvas, 0, 0);
+ var pixels = ctx2.getImageData(0, 0, 1, 1).data;
+ t.step(function() {
+ assert_array_equals(pixels, [0, 0, 255, 255]);
+ });
+ t.done();
+ }, 0);
}, 0);
}, "Verify that the placeholder canvas can be used as an image source");
</script>

Powered by Google App Engine
This is Rietveld 408576698