Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp

Issue 2319283002: Fix PaintControllerUnderInvalidationTest.MoreDrawing on official builds (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "platform/graphics/paint/PaintController.h" 5 #include "platform/graphics/paint/PaintController.h"
6 6
7 #include "platform/RuntimeEnabledFeatures.h" 7 #include "platform/RuntimeEnabledFeatures.h"
8 #include "platform/graphics/GraphicsContext.h" 8 #include "platform/graphics/GraphicsContext.h"
9 #include "platform/graphics/paint/ClipPathDisplayItem.h" 9 #include "platform/graphics/paint/ClipPathDisplayItem.h"
10 #include "platform/graphics/paint/ClipPathRecorder.h" 10 #include "platform/graphics/paint/ClipPathRecorder.h"
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 } 1696 }
1697 }; 1697 };
1698 1698
1699 TEST_F(PaintControllerUnderInvalidationTest, ChangeDrawing) 1699 TEST_F(PaintControllerUnderInvalidationTest, ChangeDrawing)
1700 { 1700 {
1701 EXPECT_DEATH(testChangeDrawing(), "under-invalidation: display item changed" ); 1701 EXPECT_DEATH(testChangeDrawing(), "under-invalidation: display item changed" );
1702 } 1702 }
1703 1703
1704 TEST_F(PaintControllerUnderInvalidationTest, MoreDrawing) 1704 TEST_F(PaintControllerUnderInvalidationTest, MoreDrawing)
1705 { 1705 {
1706 EXPECT_DEATH(testMoreDrawing(), "Can't find cached display item"); 1706 EXPECT_DEATH(testMoreDrawing(), "");
1707 } 1707 }
1708 1708
1709 TEST_F(PaintControllerUnderInvalidationTest, LessDrawing) 1709 TEST_F(PaintControllerUnderInvalidationTest, LessDrawing)
1710 { 1710 {
1711 // We don't detect under-invalidation in this case, and PaintController can also handle the case gracefully. 1711 // We don't detect under-invalidation in this case, and PaintController can also handle the case gracefully.
1712 // However, less-drawing at a time often means more-drawing at another time so eventually we'll detect 1712 // However, less-drawing at a time often means more-drawing at another time so eventually we'll detect
1713 // such under-invalidations. 1713 // such under-invalidations.
1714 testLessDrawing(); 1714 testLessDrawing();
1715 } 1715 }
1716 1716
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 } 1748 }
1749 1749
1750 TEST_F(PaintControllerUnderInvalidationTest, FoldCompositingDrawingInSubsequence ) 1750 TEST_F(PaintControllerUnderInvalidationTest, FoldCompositingDrawingInSubsequence )
1751 { 1751 {
1752 testFoldCompositingDrawingInSubsequence(); 1752 testFoldCompositingDrawingInSubsequence();
1753 } 1753 }
1754 1754
1755 #endif // defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID) 1755 #endif // defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID)
1756 1756
1757 } // namespace blink 1757 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698