From 75595d939230506b5819f9ceed4a8b22a5661921 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 3 May 2011 21:27:49 +0000 Subject: [PATCH] update git-svn-id: http://skia.googlecode.com/svn/trunk@1232 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/ColorTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ColorTest.cpp b/tests/ColorTest.cpp index c10897f..ef4b0b6 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); + } } } } -- 2.7.4