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

Side by Side Diff: Source/platform/transforms/TransformationMatrixTest.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "config.h" 5 #include "config.h"
6 #include "platform/transforms/TransformationMatrix.h" 6 #include "platform/transforms/TransformationMatrix.h"
7 7
8 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
9 9
10 using namespace WebCore; 10 using namespace blink;
11 namespace { 11 namespace {
12 12
13 TEST(TransformationMatrixTest, NonInvertableBlendTest) 13 TEST(TransformationMatrixTest, NonInvertableBlendTest)
14 { 14 {
15 TransformationMatrix from; 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); 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; 17 TransformationMatrix result;
18 18
19 result = to; 19 result = to;
20 result.blend(from, 0.25); 20 result.blend(from, 0.25);
21 EXPECT_TRUE(result == from); 21 EXPECT_TRUE(result == from);
22 22
23 result = to; 23 result = to;
24 result.blend(from, 0.75); 24 result.blend(from, 0.75);
25 EXPECT_TRUE(result == to); 25 EXPECT_TRUE(result == to);
26 } 26 }
27 27
28 } // namespace 28 } // namespace
OLDNEW
« no previous file with comments | « Source/platform/transforms/TransformationMatrix.cpp ('k') | Source/platform/transforms/TranslateTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698