| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 3639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3650 simulateDoubleTap(webViewHelper.webView(), doubleTapPoint, scale); | 3650 simulateDoubleTap(webViewHelper.webView(), doubleTapPoint, scale); |
| 3651 EXPECT_FLOAT_EQ(legibleScale, scale); | 3651 EXPECT_FLOAT_EQ(legibleScale, scale); |
| 3652 } | 3652 } |
| 3653 | 3653 |
| 3654 TEST_P(ParameterizedWebFrameTest, BlockBoundTest) { | 3654 TEST_P(ParameterizedWebFrameTest, BlockBoundTest) { |
| 3655 registerMockedHttpURLLoad("block_bound.html"); | 3655 registerMockedHttpURLLoad("block_bound.html"); |
| 3656 | 3656 |
| 3657 FrameTestHelpers::WebViewHelper webViewHelper; | 3657 FrameTestHelpers::WebViewHelper webViewHelper; |
| 3658 webViewHelper.initializeAndLoad(m_baseURL + "block_bound.html", false, | 3658 webViewHelper.initializeAndLoad(m_baseURL + "block_bound.html", false, |
| 3659 nullptr, nullptr, nullptr, configureAndroid); | 3659 nullptr, nullptr, nullptr, configureAndroid); |
| 3660 webViewHelper.resize(WebSize(300, 300)); |
| 3660 | 3661 |
| 3661 IntRect rectBack = IntRect(0, 0, 200, 200); | 3662 IntRect rectBack = IntRect(0, 0, 200, 200); |
| 3662 IntRect rectLeftTop = IntRect(10, 10, 80, 80); | 3663 IntRect rectLeftTop = IntRect(10, 10, 80, 80); |
| 3663 IntRect rectRightBottom = IntRect(110, 110, 80, 80); | 3664 IntRect rectRightBottom = IntRect(110, 110, 80, 80); |
| 3664 IntRect blockBound; | 3665 IntRect blockBound; |
| 3665 | 3666 |
| 3666 blockBound = | 3667 blockBound = |
| 3667 IntRect(webViewHelper.webView()->computeBlockBound(WebPoint(9, 9), true)); | 3668 IntRect(webViewHelper.webView()->computeBlockBound(WebPoint(9, 9), true)); |
| 3668 EXPECT_RECT_EQ(rectBack, blockBound); | 3669 EXPECT_RECT_EQ(rectBack, blockBound); |
| 3669 | 3670 |
| (...skipping 7598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11268 | 11269 |
| 11269 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); | 11270 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); |
| 11270 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); | 11271 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); |
| 11271 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); | 11272 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); |
| 11272 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); | 11273 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); |
| 11273 | 11274 |
| 11274 webViewHelper.reset(); | 11275 webViewHelper.reset(); |
| 11275 } | 11276 } |
| 11276 | 11277 |
| 11277 } // namespace blink | 11278 } // namespace blink |
| OLD | NEW |