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

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

Issue 2774423006: Shrink the reference image dimension in OffscreenCanvas tests (Closed)
Patch Set: update reference count Created 3 years, 9 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 | content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/pixel_offscreenCanvas_2d_commit_main.html
diff --git a/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_main.html b/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_main.html
index 837c64f5769289ce0ad58187ff527241392b2122..193d1cd33fd89c6e38ef2d975935648bf1729065 100644
--- a/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_main.html
+++ b/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_main.html
@@ -16,11 +16,11 @@ that the baseline images are regenerated on the next run.
</style>
</head>
<body onload="main()">
-<div style="position:relative; width:600px; height:300px; background-color:white">
+<div style="position:relative; width:400px; height:200px; background-color:white">
</div>
<div id="container" style="position:absolute; top:0px; left:0px">
-<canvas id="canvas1" width="300" height="300" class="nomargin"></canvas>
-<canvas id="canvas2" width="300" height="300" class="nomargin"></canvas>
+<canvas id="canvas1" width="200" height="200" class="nomargin"></canvas>
+<canvas id="canvas2" width="200" height="200" class="nomargin"></canvas>
</div>
<script>
/* This pixel test checks the following:
@@ -47,12 +47,12 @@ function startTest() {
var ctx2 = getOffscreenContext("canvas2");
ctx1.fillStyle = "green";
- ctx1.fillRect(0, 0, 300, 300);
+ ctx1.fillRect(0, 0, 200, 200);
// The promise returned by this ctx1.commit() must be resolved at
// about the same time as the other ctx2.commit() below as they are in the
// same JS task.
ctx1.commit().then(function() {
- ctx2.fillRect(0, 0, 300, 300);
+ ctx2.fillRect(0, 0, 200, 200);
// This ctx2.commit() must happen after the other ctx2.commit() below.
ctx2.commit();
if (--g_asyncCallbackNumber == 0) waitForFinish();
@@ -88,13 +88,13 @@ function startTest() {
// Do something complex to ctx2.
ctx2.fillStyle = "blue";
- ctx2.fillRect(0, 0, 300, 300);
- drawStar(ctx2, 150, 150, 25, 80, 60);
+ ctx2.fillRect(0, 0, 200, 200);
+ drawStar(ctx2, 100, 100, 25, 60, 40);
// This ctx2.commit() must be resolved at about the same time as the first
// ctx1.commit() above because they are in the same JS task, no matter how
// complex the drawing operation is.
ctx2.commit().then(function() {
- drawStar(ctx1, 100, 100, 7, 80, 30);
+ drawStar(ctx1, 80, 80, 7, 60, 30);
ctx1.commit();
// The following fill is never committed
« no previous file with comments | « no previous file | content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698