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

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

Issue 2811993003: Shrink OffscreenCanvas commit pixel tests' test rect dimension (Closed)
Patch Set: comment 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: content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html
diff --git a/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html b/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html
index feced12484dd411b8c7abcaed96ea544fe220549..0ceb819efbe7640e940d7d0216d1322e9d61d107 100644
--- a/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html
+++ b/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html
@@ -38,12 +38,12 @@ self.onmessage = function(e) {
function startTest() {
g_ctx1.fillStyle = "green";
- g_ctx1.fillRect(0, 0, 200, 200);
+ g_ctx1.fillRect(0, 0, 180, 200);
// The promise returned by this g_ctx1.commit() must be resolved at
// about the same time as the other g_ctx2.commit() below as they are in the
// same JS task.
g_ctx1.commit().then(function() {
- g_ctx2.fillRect(0, 0, 200, 200);
+ g_ctx2.fillRect(0, 0, 180, 200);
// This g_ctx2.commit() must happen after the other g_ctx2.commit() below.
g_ctx2.commit();
if (--g_asyncCallbackNumber == 0) self.postMessage("");
@@ -79,18 +79,18 @@ function startTest() {
// Do something complex to g_ctx2.
g_ctx2.fillStyle = "blue";
- g_ctx2.fillRect(0, 0, 200, 200);
- drawStar(g_ctx2, 100, 100, 25, 60, 40);
+ g_ctx2.fillRect(0, 0, 180, 200);
+ drawStar(g_ctx2, 90, 100, 25, 60, 40);
// This g_ctx2.commit() must be resolved at about the same time as the first
// g_ctx1.commit() above because they are in the same JS task, no matter how
// complex the drawing operation is.
g_ctx2.commit().then(function() {
- drawStar(g_ctx1, 80, 80, 7, 60, 30);
+ drawStar(g_ctx1, 70, 80, 7, 60, 30);
g_ctx1.commit();
// The following fill is never committed
g_ctx1.fillStyle = "red";
- g_ctx1.fillRect(0, 0, 200, 200);
+ g_ctx1.fillRect(0, 0, 180, 200);
if (--g_asyncCallbackNumber == 0) self.postMessage("");
});
@@ -135,11 +135,11 @@ function main()
</script>
</head>
<body onload="main()">
-<div style="position:relative; width:400px; height:200px; background-color:white">
+<div style="position:relative; width:360px; height:200px; background-color:white">
</div>
<div id="container" style="position:absolute; top:0px; left:0px">
-<canvas id="canvas1" width="200" height="200" class="nomargin"></canvas>
-<canvas id="canvas2" width="200" height="200" class="nomargin"></canvas>
+<canvas id="canvas1" width="180" height="200" class="nomargin"></canvas>
+<canvas id="canvas2" width="180" height="200" class="nomargin"></canvas>
</div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698