Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfe0647f authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Fix unit test that failed due to incorrect refactor.

Test: hwui unit tests
Change-Id: I88b962718086ff1ca3df1999b2040fb1007b6f33
parent 112a5b62
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -201,8 +201,16 @@ OPENGL_PIPELINE_TEST(RecordingCanvas, drawGlyphs_strikeThruAndUnderline) {
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                uint32_t flags = paint.getFlags();
                if (i != 0) flags |= SkPaint::kUnderlineText_ReserveFlag;
                if (j != 0) flags |= SkPaint::kStrikeThruText_ReserveFlag;
                if (i != 0) {
                    flags |= SkPaint::kUnderlineText_ReserveFlag;
                } else {
                    flags &= ~SkPaint::kUnderlineText_ReserveFlag;
                }
                if (j != 0) {
                    flags |= SkPaint::kStrikeThruText_ReserveFlag;
                } else {
                    flags &= ~SkPaint::kStrikeThruText_ReserveFlag;
                }
                paint.setFlags(flags);
                TestUtils::drawUtf8ToCanvas(&canvas, "test text", paint, 25, 25);
            }