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

Unified Diff: trunk/src/ui/compositor/test/test_utils.cc

Issue 23809002: Revert 220479 "Add support for inverse transform animations." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
Index: trunk/src/ui/compositor/test/test_utils.cc
===================================================================
--- trunk/src/ui/compositor/test/test_utils.cc (revision 220491)
+++ trunk/src/ui/compositor/test/test_utils.cc (working copy)
@@ -10,22 +10,13 @@
namespace ui {
-//TODO(avallee): Make this into a predicate and add some matrix pretty printing.
void CheckApproximatelyEqual(const gfx::Transform& lhs,
const gfx::Transform& rhs) {
for (int i = 0; i < 4; ++i) {
for (int j = 0; j < 4; ++j) {
- EXPECT_FLOAT_EQ(lhs.matrix().get(i, j), rhs.matrix().get(i, j))
- << "(i, j) = (" << i << ", " << j <<")";
+ EXPECT_FLOAT_EQ(lhs.matrix().get(i, j), rhs.matrix().get(i, j));
}
}
-
- if (::testing::Test::HasFailure()) {
- ADD_FAILURE() << "Expected matrix:\n"
- << lhs.ToString() << "\n"
- << "Actual matrix:\n"
- << rhs.ToString();
- }
}
void CheckApproximatelyEqual(const gfx::Rect& lhs, const gfx::Rect& rhs) {

Powered by Google App Engine
This is Rietveld 408576698