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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.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
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html
index 2f946e936f838a244f9deeb6012274a0d8cffb65..92beba443a4b64180bc74165badff5c67d8f7e96 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video.html
@@ -27,16 +27,16 @@ function shouldBeType(expression, className)
function shouldBeOpaque(x, y) {
d = ctx.getImageData(x, y, 1, 1).data;
- shouldBeTrue("d[3] == 255");
+ 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 clearContext() {

Powered by Google App Engine
This is Rietveld 408576698