aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Matrix44Test.cpp
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-06 02:01:25 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-06 02:01:25 +0000
commit0264fb4543b0d8cebe00f1ee32433784f4ceb074 (patch)
tree1bfdf9d97600948055e84a79437df7927534dff9 /tests/Matrix44Test.cpp
parent170bd792e17469769d145b7dc15dea6cd01b7966 (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6687 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/Matrix44Test.cpp')
-rw-r--r--tests/Matrix44Test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Matrix44Test.cpp b/tests/Matrix44Test.cpp
index 1458dfefad..9dc77c2b5d 100644
--- a/tests/Matrix44Test.cpp
+++ b/tests/Matrix44Test.cpp
@@ -86,7 +86,7 @@ static void test_translate(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kTranslate_Mask));
REPORTER_ASSERT(reporter, mat.invert(&inverse));
REPORTER_ASSERT(reporter, bits_isonly(inverse.getType(), SkMatrix44::kTranslate_Mask));
-
+
SkMatrix44 a, b, c;
a.set3x3(1, 2, 3, 4, 5, 6, 7, 8, 9);
b.setTranslate(10, 11, 12);
@@ -104,7 +104,7 @@ static void test_translate(skiatest::Reporter* reporter) {
static void test_scale(skiatest::Reporter* reporter) {
SkMatrix44 mat, inverse;
-
+
mat.setScale(1, 1, 1);
REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask));
mat.setScale(1, 2, 3);
@@ -115,12 +115,12 @@ static void test_scale(skiatest::Reporter* reporter) {
SkMatrix44 a, b, c;
a.set3x3(1, 2, 3, 4, 5, 6, 7, 8, 9);
b.setScale(10, 11, 12);
-
+
c.setConcat(a, b);
mat = a;
mat.preScale(10, 11, 12);
REPORTER_ASSERT(reporter, mat == c);
-
+
c.setConcat(b, a);
mat = a;
mat.postScale(10, 11, 12);
@@ -163,7 +163,7 @@ static void test_map2(skiatest::Reporter* reporter, const SkMatrix44& mat) {
mat.map2(src2, 1, dstA);
mat.mapMScalars(src4, dstB);
-
+
for (int i = 0; i < 4; ++i) {
REPORTER_ASSERT(reporter, dstA[i] == dstB[i]);
}