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

Unified Diff: third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp

Issue 2777803002: Revert of Add operator<< to StyleDifference for debug logging. (Closed)
Patch Set: resolve conflict Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleDifference.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp b/third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp
deleted file mode 100644
index 5fdb6ed3e2f05e90ca67746a60c479a6812bf1d9..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/style/StyleDifference.h"
-
-#include <sstream>
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace blink {
-
-TEST(StyleDifferenceTest, StreamOutputDefault) {
- std::stringstream stringStream;
- StyleDifference diff;
- stringStream << diff;
- EXPECT_EQ(
- "StyleDifference{layoutType=NoLayout, "
- "paintInvalidationType=NoPaintInvalidation, recomputeOverflow=0, "
- "visualRectUpdate=0, propertySpecificDifferences=}",
- stringStream.str());
-}
-
-TEST(StyleDifferenceTest, StreamOutputAllFieldsMutated) {
- std::stringstream stringStream;
- StyleDifference diff;
- diff.setNeedsPaintInvalidationObject();
- diff.setNeedsPositionedMovementLayout();
- diff.setNeedsRecomputeOverflow();
- diff.setNeedsVisualRectUpdate();
- diff.setTransformChanged();
- diff.setScrollAnchorDisablingPropertyChanged();
- stringStream << diff;
- EXPECT_EQ(
- "StyleDifference{layoutType=PositionedMovement, "
- "paintInvalidationType=PaintInvalidationObject, recomputeOverflow=1, "
- "visualRectUpdate=1, "
- "propertySpecificDifferences=TransformChanged|"
- "ScrollAnchorDisablingPropertyChanged|TransformChanged|"
- "ScrollAnchorDisablingPropertyChanged}",
- stringStream.str());
-}
-
-TEST(StyleDifferenceTest, StreamOutputSetAllProperties) {
- std::stringstream stringStream;
- StyleDifference diff;
- diff.setTransformChanged();
- diff.setOpacityChanged();
- diff.setZIndexChanged();
- diff.setFilterChanged();
- diff.setBackdropFilterChanged();
- diff.setCSSClipChanged();
- diff.setTextDecorationOrColorChanged();
- diff.setScrollAnchorDisablingPropertyChanged();
- stringStream << diff;
- EXPECT_EQ(
- "StyleDifference{layoutType=NoLayout, "
- "paintInvalidationType=NoPaintInvalidation, recomputeOverflow=0, "
- "visualRectUpdate=0, "
- "propertySpecificDifferences=TransformChanged|OpacityChanged|"
- "ZIndexChanged|FilterChanged|BackdropFilterChanged|CSSClipChanged|"
- "TextDecorationOrColorChanged|ScrollAnchorDisablingPropertyChanged|"
- "TransformChanged|OpacityChanged|ZIndexChanged|FilterChanged|"
- "BackdropFilterChanged|CSSClipChanged|TextDecorationOrColorChanged|"
- "ScrollAnchorDisablingPropertyChanged}",
- stringStream.str());
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleDifference.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698