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 5265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5276 TEST_F(WebFrameTest, CreateChildFrameFailure) | 5276 TEST_F(WebFrameTest, CreateChildFrameFailure) |
5277 { | 5277 { |
5278 registerMockedHttpURLLoad("create_child_frame_fail.html"); | 5278 registerMockedHttpURLLoad("create_child_frame_fail.html"); |
5279 FailCreateChildFrame client; | 5279 FailCreateChildFrame client; |
5280 FrameTestHelpers::WebViewHelper webViewHelper; | 5280 FrameTestHelpers::WebViewHelper webViewHelper; |
5281 webViewHelper.initializeAndLoad(m_baseURL + "create_child_frame_fail.html",
true, &client); | 5281 webViewHelper.initializeAndLoad(m_baseURL + "create_child_frame_fail.html",
true, &client); |
5282 | 5282 |
5283 EXPECT_EQ(1, client.callCount()); | 5283 EXPECT_EQ(1, client.callCount()); |
5284 } | 5284 } |
5285 | 5285 |
5286 TEST_F(WebFrameTest, sizeChangeRepaint) | 5286 TEST_F(WebFrameTest, DISABLED_sizeChangeRepaint) |
5287 { | 5287 { |
5288 const char* kTests[] = { | 5288 const char* kTests[] = { |
5289 "repaint/size-change-repaint1.html", | 5289 "repaint/size-change-repaint1.html", |
5290 "repaint/size-change-repaint2.html", | 5290 "repaint/size-change-repaint2.html", |
5291 "repaint/size-change-repaint3.html", | 5291 "repaint/size-change-repaint3.html", |
5292 "repaint/size-change-repaint4.html", | 5292 "repaint/size-change-repaint4.html", |
5293 "repaint/size-change-repaint5.html", | 5293 "repaint/size-change-repaint5.html", |
5294 "repaint/size-change-repaint6.html", | 5294 "repaint/size-change-repaint6.html", |
5295 "repaint/size-change-repaint7.html", | 5295 "repaint/size-change-repaint7.html", |
5296 "repaint/size-change-repaint8.html", | 5296 "repaint/size-change-repaint8.html", |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5462 EXPECT_EQ(2U, container->percentHeightDescendants()->size()); | 5462 EXPECT_EQ(2U, container->percentHeightDescendants()->size()); |
5463 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA
nonymous)); | 5463 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA
nonymous)); |
5464 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir
ectChild)); | 5464 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir
ectChild)); |
5465 | 5465 |
5466 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB
lock(); | 5466 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB
lock(); |
5467 EXPECT_TRUE(anonymousBlock->isAnonymous()); | 5467 EXPECT_TRUE(anonymousBlock->isAnonymous()); |
5468 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants()); | 5468 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants()); |
5469 } | 5469 } |
5470 | 5470 |
5471 } // namespace | 5471 } // namespace |
OLD | NEW |