| Index: Source/web/tests/PageSerializerTest.cpp
|
| diff --git a/Source/web/tests/PageSerializerTest.cpp b/Source/web/tests/PageSerializerTest.cpp
|
| index fd40e165186ce49b73c6b7a36af71b3476cacfa3..f0e3caed744d5cd1fc6020899e71164959f151ff 100644
|
| --- a/Source/web/tests/PageSerializerTest.cpp
|
| +++ b/Source/web/tests/PageSerializerTest.cpp
|
| @@ -29,11 +29,11 @@
|
| */
|
|
|
| #include "config.h"
|
| +#include "core/page/PageSerializer.h"
|
|
|
| #include "bindings/core/v8/V8Binding.h"
|
| #include "bindings/core/v8/V8BindingForTesting.h"
|
| #include "core/page/Page.h"
|
| -#include "core/page/PageSerializer.h"
|
| #include "platform/SerializedResource.h"
|
| #include "platform/testing/URLTestHelpers.h"
|
| #include "public/platform/Platform.h"
|
| @@ -220,4 +220,18 @@ TEST_F(PageSerializerTest, Font)
|
| EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream"));
|
| }
|
|
|
| +TEST_F(PageSerializerTest, DontIncludeErrorImage)
|
| +{
|
| + setBaseFolder("pageserializer/image/");
|
| +
|
| + registerURL("page_with_img_error.html", "text/html");
|
| + registerURL("error_image.png", "image/png");
|
| +
|
| + serialize("page_with_img_error.html");
|
| +
|
| + EXPECT_EQ(1U, getResources().size());
|
| + EXPECT_TRUE(isSerialized("page_with_img_error.html", "text/html"));
|
| + EXPECT_FALSE(isSerialized("error_image.png", "image/png"));
|
| +}
|
| +
|
| }
|
|
|