summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DEPS2
-rw-r--r--skia/ext/vector_canvas_unittest.cc28
-rw-r--r--webkit/tools/layout_tests/test_expectations.txt3
3 files changed, 22 insertions, 11 deletions
diff --git a/DEPS b/DEPS
index d7b216f..bd3ed70 100644
--- a/DEPS
+++ b/DEPS
@@ -1,7 +1,7 @@
vars = {
"webkit_trunk":
"http://svn.webkit.org/repository/webkit/trunk",
- "webkit_revision": "44544",
+ "webkit_revision": "44571",
}
diff --git a/skia/ext/vector_canvas_unittest.cc b/skia/ext/vector_canvas_unittest.cc
index 0d63b00..5dbd17f 100644
--- a/skia/ext/vector_canvas_unittest.cc
+++ b/skia/ext/vector_canvas_unittest.cc
@@ -317,14 +317,16 @@ void Premultiply(SkBitmap bitmap) {
}
}
-void LoadPngFileToSkBitmap(const std::wstring& filename, SkBitmap* bitmap) {
+void LoadPngFileToSkBitmap(const std::wstring& filename,
+ SkBitmap* bitmap,
+ bool is_opaque) {
Vector<char> compressed;
ReadFileToVector(filename, &compressed);
EXPECT_TRUE(compressed.size());
WebCore::PNGImageDecoder decoder;
decoder.setData(WebCore::SharedBuffer::adoptVector(compressed).get(), true);
*bitmap = decoder.frameBufferAtIndex(0)->bitmap();
- EXPECT_FALSE(bitmap->isOpaque());
+ EXPECT_EQ(is_opaque, bitmap->isOpaque());
Premultiply(*bitmap);
}
@@ -793,7 +795,7 @@ TEST_F(VectorCanvasTest, PathEffects) {
TEST_F(VectorCanvasTest, Bitmaps) {
{
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"bitmap_opaque.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"bitmap_opaque.png"), &bitmap, true);
vcanvas_->drawBitmap(bitmap, 13, 3, NULL);
pcanvas_->drawBitmap(bitmap, 13, 3, NULL);
EXPECT_EQ(0., ProcessImage(L"opaque"));
@@ -801,7 +803,7 @@ TEST_F(VectorCanvasTest, Bitmaps) {
{
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"bitmap_alpha.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"bitmap_alpha.png"), &bitmap, false);
vcanvas_->drawBitmap(bitmap, 5, 15, NULL);
pcanvas_->drawBitmap(bitmap, 5, 15, NULL);
EXPECT_EQ(0., ProcessImage(L"alpha"));
@@ -810,7 +812,8 @@ TEST_F(VectorCanvasTest, Bitmaps) {
TEST_F(VectorCanvasTest, ClippingRect) {
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
+ true);
SkRect rect;
rect.fLeft = 2;
rect.fTop = 2;
@@ -826,7 +829,8 @@ TEST_F(VectorCanvasTest, ClippingRect) {
TEST_F(VectorCanvasTest, ClippingPath) {
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
+ true);
SkPath path;
path.addCircle(20, 20, 10);
vcanvas_->clipPath(path);
@@ -839,7 +843,8 @@ TEST_F(VectorCanvasTest, ClippingPath) {
TEST_F(VectorCanvasTest, ClippingCombined) {
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
+ true);
SkRect rect;
rect.fLeft = 2;
@@ -860,7 +865,8 @@ TEST_F(VectorCanvasTest, ClippingCombined) {
TEST_F(VectorCanvasTest, ClippingIntersect) {
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
+ true);
SkRect rect;
rect.fLeft = 2;
@@ -881,7 +887,8 @@ TEST_F(VectorCanvasTest, ClippingIntersect) {
TEST_F(VectorCanvasTest, ClippingClean) {
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
+ true);
{
SkRegion old_region(pcanvas_->getTotalClip());
SkRect rect;
@@ -908,7 +915,8 @@ TEST_F(VectorCanvasTest, ClippingClean) {
TEST_F(VectorCanvasTest, DISABLED_Matrix) {
SkBitmap bitmap;
- LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap);
+ LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
+ true);
{
vcanvas_->translate(15, 3);
pcanvas_->translate(15, 3);
diff --git a/webkit/tools/layout_tests/test_expectations.txt b/webkit/tools/layout_tests/test_expectations.txt
index 72d28e9..777bf58 100644
--- a/webkit/tools/layout_tests/test_expectations.txt
+++ b/webkit/tools/layout_tests/test_expectations.txt
@@ -2698,3 +2698,6 @@ BUG13721 LINUX : LayoutTests/fast/dynamic/positioned-movement-with-positioned-ch
// We seem to be missing a line-break in the results for this first test.
BUG13728 WIN LINUX : LayoutTests/editing/deleting/4866671.html = FAIL
+
+// New test added in WebKit 44550:
+BUG13767 : LayoutTests/fast/js/JSON-stringify.html = FAIL