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 5395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5406 ASSERT_TRUE(container->hasPercentHeightDescendants()); | 5406 ASSERT_TRUE(container->hasPercentHeightDescendants()); |
5407 EXPECT_EQ(2U, container->percentHeightDescendants()->size()); | 5407 EXPECT_EQ(2U, container->percentHeightDescendants()->size()); |
5408 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA
nonymous)); | 5408 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA
nonymous)); |
5409 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir
ectChild)); | 5409 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir
ectChild)); |
5410 | 5410 |
5411 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB
lock(); | 5411 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB
lock(); |
5412 EXPECT_TRUE(anonymousBlock->isAnonymous()); | 5412 EXPECT_TRUE(anonymousBlock->isAnonymous()); |
5413 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants()); | 5413 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants()); |
5414 } | 5414 } |
5415 | 5415 |
| 5416 class ManifestChangeWebFrameClient : public FrameTestHelpers::TestWebFrameClient
{ |
| 5417 public: |
| 5418 ManifestChangeWebFrameClient() : m_manifestChangeCount(0) { } |
| 5419 virtual void didChangeManifest(WebLocalFrame*) OVERRIDE |
| 5420 { |
| 5421 ++m_manifestChangeCount; |
| 5422 } |
| 5423 |
| 5424 int manifestChangeCount() { return m_manifestChangeCount; } |
| 5425 |
| 5426 private: |
| 5427 int m_manifestChangeCount; |
| 5428 }; |
| 5429 |
| 5430 TEST_F(WebFrameTest, NotifyManifestChange) |
| 5431 { |
| 5432 registerMockedHttpURLLoad("link-manifest-change.html"); |
| 5433 |
| 5434 ManifestChangeWebFrameClient webFrameClient; |
| 5435 FrameTestHelpers::WebViewHelper webViewHelper; |
| 5436 webViewHelper.initializeAndLoad(m_baseURL + "link-manifest-change.html", tru
e, &webFrameClient); |
| 5437 |
| 5438 EXPECT_EQ(9, webFrameClient.manifestChangeCount()); |
| 5439 } |
| 5440 |
5416 } // namespace | 5441 } // namespace |
OLD | NEW |