| Index: third_party/WebKit/Source/core/dom/DocumentTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/DocumentTest.cpp b/third_party/WebKit/Source/core/dom/DocumentTest.cpp
|
| index 6ebc46890eeef4d90d98152d69f39b9e2ec812a1..e36b19530bc49b20e03a2431116ac56a3bd9df4e 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentTest.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentTest.cpp
|
| @@ -294,11 +294,9 @@ class MockValidationMessageClient
|
| MockValidationMessageClient() { Reset(); }
|
| void Reset() {
|
| show_validation_message_was_called = false;
|
| - will_unload_document_was_called = false;
|
| document_detached_was_called = false;
|
| }
|
| bool show_validation_message_was_called;
|
| - bool will_unload_document_was_called;
|
| bool document_detached_was_called;
|
|
|
| // ValidationMessageClient functions.
|
| @@ -313,9 +311,6 @@ class MockValidationMessageClient
|
| bool IsValidationMessageVisible(const Element& anchor) override {
|
| return true;
|
| }
|
| - void WillUnloadDocument(const Document&) override {
|
| - will_unload_document_was_called = true;
|
| - }
|
| void DocumentDetached(const Document&) override {
|
| document_detached_was_called = true;
|
| }
|
| @@ -826,7 +821,6 @@ TEST_F(DocumentTest, ValidationMessageCleanup) {
|
|
|
| // prepareForCommit() unloads the document, and shutdown.
|
| GetDocument().GetFrame()->PrepareForCommit();
|
| - EXPECT_TRUE(mock_client->will_unload_document_was_called);
|
| EXPECT_TRUE(mock_client->document_detached_was_called);
|
| // Unload handler tried to show a validation message, but it should fail.
|
| EXPECT_FALSE(mock_client->show_validation_message_was_called);
|
|
|