aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ColorTest.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-03 21:27:49 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-03 21:27:49 +0000
commit75595d939230506b5819f9ceed4a8b22a5661921 (patch)
treeccbe7f40c5c29882708d201d20123fbb0eae2178 /tests/ColorTest.cpp
parentacd471f47ccfb97cf2f2f00dc01cd1fd45bc1ef2 (diff)
update
git-svn-id: http://skia.googlecode.com/svn/trunk@1232 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/ColorTest.cpp')
-rw-r--r--tests/ColorTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ColorTest.cpp b/tests/ColorTest.cpp
index c10897f173..ef4b0b6a48 100644
--- a/tests/ColorTest.cpp
+++ b/tests/ColorTest.cpp
@@ -14,6 +14,11 @@ static void test_premul(skiatest::Reporter* reporter) {
// we can't promise that c0 == c1, since c0 -> p0 is a many to one
// function, however, we can promise that p0 -> c1 -> p1 : p0 == p1
REPORTER_ASSERT(reporter, p0 == p1);
+
+ {
+ int ax = SkMulDiv255Ceiling(x, a);
+ REPORTER_ASSERT(reporter, ax <= a);
+ }
}
}
}