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
3 // found in the LICENSE file.
6 #include "platform/transforms/TransformationMatrix.h"
8 #include <gtest/gtest.h>
10 using namespace WebCore;
13 TEST(TransformationMatrixTest, NonInvertableBlendTest)
15 TransformationMatrix from;
16 TransformationMatrix to(2.7133590938, 0.0, 0.0, 0.0, 0.0, 2.4645137761, 0.0, 0.0, 0.0, 0.0, 0.00, 0.01, 0.02, 0.03, 0.04, 0.05);
17 TransformationMatrix result;
20 result.blend(from, 0.25);
21 EXPECT_TRUE(result == from);
24 result.blend(from, 0.75);
25 EXPECT_TRUE(result == to);