| 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 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4914 TestWillInsertBodyWebFrameClient webFrameClient; | 4914 TestWillInsertBodyWebFrameClient webFrameClient; |
| 4915 FrameTestHelpers::WebViewHelper webViewHelper(this); | 4915 FrameTestHelpers::WebViewHelper webViewHelper(this); |
| 4916 webViewHelper.initializeAndLoad(m_baseURL + "clipped-body.html", false, &web
FrameClient); | 4916 webViewHelper.initializeAndLoad(m_baseURL + "clipped-body.html", false, &web
FrameClient); |
| 4917 | 4917 |
| 4918 EXPECT_TRUE(webFrameClient.m_didLoad); | 4918 EXPECT_TRUE(webFrameClient.m_didLoad); |
| 4919 EXPECT_EQ(1, webFrameClient.m_numBodies); | 4919 EXPECT_EQ(1, webFrameClient.m_numBodies); |
| 4920 } | 4920 } |
| 4921 | 4921 |
| 4922 TEST_P(ParameterizedWebFrameTest, EmptyDocument) | 4922 TEST_P(ParameterizedWebFrameTest, EmptyDocument) |
| 4923 { | 4923 { |
| 4924 registerMockedHttpURLLoad("pageserializer/green_rectangle.svg"); | 4924 registerMockedHttpURLLoad("pageserializer/svg/green_rectangle.svg"); |
| 4925 | 4925 |
| 4926 TestWillInsertBodyWebFrameClient webFrameClient; | 4926 TestWillInsertBodyWebFrameClient webFrameClient; |
| 4927 FrameTestHelpers::WebViewHelper webViewHelper(this); | 4927 FrameTestHelpers::WebViewHelper webViewHelper(this); |
| 4928 webViewHelper.initialize(false, &webFrameClient); | 4928 webViewHelper.initialize(false, &webFrameClient); |
| 4929 | 4929 |
| 4930 EXPECT_FALSE(webFrameClient.m_didLoad); | 4930 EXPECT_FALSE(webFrameClient.m_didLoad); |
| 4931 EXPECT_EQ(1, webFrameClient.m_numBodies); // The empty document that a new f
rame starts with triggers this. | 4931 EXPECT_EQ(1, webFrameClient.m_numBodies); // The empty document that a new f
rame starts with triggers this. |
| 4932 } | 4932 } |
| 4933 | 4933 |
| 4934 TEST_P(ParameterizedWebFrameTest, MoveCaretSelectionTowardsWindowPointWithNoSele
ction) | 4934 TEST_P(ParameterizedWebFrameTest, MoveCaretSelectionTowardsWindowPointWithNoSele
ction) |
| (...skipping 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7465 | 7465 |
| 7466 EXPECT_EQ(parent, firstFrame->parent()); | 7466 EXPECT_EQ(parent, firstFrame->parent()); |
| 7467 EXPECT_EQ(parent, secondFrame->parent()); | 7467 EXPECT_EQ(parent, secondFrame->parent()); |
| 7468 EXPECT_EQ(parent, thirdFrame->parent()); | 7468 EXPECT_EQ(parent, thirdFrame->parent()); |
| 7469 EXPECT_EQ(parent, fourthFrame->parent()); | 7469 EXPECT_EQ(parent, fourthFrame->parent()); |
| 7470 | 7470 |
| 7471 view->close(); | 7471 view->close(); |
| 7472 } | 7472 } |
| 7473 | 7473 |
| 7474 } // namespace blink | 7474 } // namespace blink |
| OLD | NEW |