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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage.html

Issue 1413583004: refractoring ImageBitmap class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix memory leak issue Created 5 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 | third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage.html
index 5f2325face4f508ca53019dd83a53eec7e8d5e0d..db24904b03d9a95ea16b6a839b0dd6efcf29d5ff 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage.html
@@ -32,43 +32,43 @@ function shouldNotBeCalled() {
function shouldBeRed(x, y) {
d = ctx.getImageData(x, y, 1, 1).data;
- shouldBeTrue("d[0] == 255");
- shouldBeTrue("d[1] == 0");
- shouldBeTrue("d[2] == 0");
- shouldBeTrue("d[3] == 255");
+ shouldBe("d[0]", "255");
+ shouldBe("d[1]", "0");
+ shouldBe("d[2]", "0");
+ shouldBe("d[3]", "255");
}
function shouldBeGreen(x, y) {
d = ctx.getImageData(x, y, 1, 1).data;
- shouldBeTrue("d[0] == 0");
- shouldBeTrue("d[1] == 255");
- shouldBeTrue("d[2] == 0");
- shouldBeTrue("d[3] == 255");
+ shouldBe("d[0]", "0");
+ shouldBe("d[1]", "255");
+ shouldBe("d[2]", "0");
+ shouldBe("d[3]", "255");
}
function shouldBeBlue(x, y) {
d = ctx.getImageData(x, y, 1, 1).data;
- shouldBeTrue("d[0] == 0");
- shouldBeTrue("d[1] == 0");
- shouldBeTrue("d[2] == 255");
- shouldBeTrue("d[3] == 255");
+ shouldBe("d[0]", "0");
+ shouldBe("d[1]", "0");
+ shouldBe("d[2]", "255");
+ shouldBe("d[3]", "255");
}
function shouldBeBlack(x, y) {
d = ctx.getImageData(x, y, 1, 1).data;
- shouldBeTrue("d[0] == 0");
- shouldBeTrue("d[1] == 0");
- shouldBeTrue("d[2] == 0");
- shouldBeTrue("d[3] == 255");
+ shouldBe("d[0]", "0");
+ shouldBe("d[1]", "0");
+ shouldBe("d[2]", "0");
+ shouldBe("d[3]", "255");
}
function shouldBeClear(x, y) {
// should be transparent black pixels
d = ctx.getImageData(x, y, 1, 1).data;
- shouldBeTrue("d[0] == 0");
- shouldBeTrue("d[1] == 0");
- shouldBeTrue("d[2] == 0");
- shouldBeTrue("d[3] == 0");
+ shouldBe("d[0]", "0");
+ shouldBe("d[1]", "0");
+ shouldBe("d[2]", "0");
+ shouldBe("d[3]", "0");
}
function drawPattern(ctx) {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698