| OLD | NEW |
| 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/transforms/TransformationMatrix.h" | 5 #include "platform/transforms/TransformationMatrix.h" |
| 6 | 6 |
| 7 #include "platform/wtf/text/WTFString.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "wtf/text/WTFString.h" | |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 TEST(TransformationMatrixTest, NonInvertableBlendTest) { | 12 TEST(TransformationMatrixTest, NonInvertableBlendTest) { |
| 13 TransformationMatrix from; | 13 TransformationMatrix from; |
| 14 TransformationMatrix to(2.7133590938, 0.0, 0.0, 0.0, 0.0, 2.4645137761, 0.0, | 14 TransformationMatrix to(2.7133590938, 0.0, 0.0, 0.0, 0.0, 2.4645137761, 0.0, |
| 15 0.0, 0.0, 0.0, 0.00, 0.01, 0.02, 0.03, 0.04, 0.05); | 15 0.0, 0.0, 0.0, 0.00, 0.01, 0.02, 0.03, 0.04, 0.05); |
| 16 TransformationMatrix result; | 16 TransformationMatrix result; |
| 17 | 17 |
| 18 result = to; | 18 result = to; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 8, 4, 4, 4, 9); | 123 8, 4, 4, 4, 9); |
| 124 // [ 1 2 3 4 ] | 124 // [ 1 2 3 4 ] |
| 125 // [ 1 2 3 4 ] | 125 // [ 1 2 3 4 ] |
| 126 // [ 1 0 3 4 ] | 126 // [ 1 0 3 4 ] |
| 127 // [ 6 7 8 9 ] | 127 // [ 6 7 8 9 ] |
| 128 EXPECT_EQ("[1,2,3,4,\n1,2,3,4,\n1,0,3,4,\n6,7,8,9]", | 128 EXPECT_EQ("[1,2,3,4,\n1,2,3,4,\n1,0,3,4,\n6,7,8,9]", |
| 129 columnMajorConstructor.toString(true)); | 129 columnMajorConstructor.toString(true)); |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace blink | 132 } // namespace blink |
| OLD | NEW |