OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/dom/Document.h" | 5 #include "core/dom/Document.h" |
6 #include "platform/testing/UnitTestHelpers.h" | 6 #include "platform/testing/UnitTestHelpers.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "web/tests/sim/SimCompositor.h" | 8 #include "web/tests/sim/SimCompositor.h" |
9 #include "web/tests/sim/SimDisplayItemList.h" | 9 #include "web/tests/sim/SimDisplayItemList.h" |
10 #include "web/tests/sim/SimRequest.h" | 10 #include "web/tests/sim/SimRequest.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Pump the message loop to process the iframe loading task. | 167 // Pump the message loop to process the iframe loading task. |
168 testing::runPendingTasks(); | 168 testing::runPendingTasks(); |
169 | 169 |
170 compositor().beginFrame(); | 170 compositor().beginFrame(); |
171 | 171 |
172 EXPECT_EQ(1, webViewClient().visuallyNonEmptyLayoutCount()); | 172 EXPECT_EQ(1, webViewClient().visuallyNonEmptyLayoutCount()); |
173 EXPECT_EQ(1, webViewClient().finishedParsingLayoutCount()); | 173 EXPECT_EQ(1, webViewClient().finishedParsingLayoutCount()); |
174 EXPECT_EQ(1, webViewClient().finishedLoadingLayoutCount()); | 174 EXPECT_EQ(1, webViewClient().finishedLoadingLayoutCount()); |
175 } | 175 } |
176 | 176 |
177 } | 177 } // namespace blink |
OLD | NEW |