aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/DrawTextTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/DrawTextTest.cpp')
-rw-r--r--tests/DrawTextTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/DrawTextTest.cpp b/tests/DrawTextTest.cpp
index a98b36f321..2f8fe056eb 100644
--- a/tests/DrawTextTest.cpp
+++ b/tests/DrawTextTest.cpp
@@ -120,11 +120,11 @@ DEF_TEST(DrawText_weirdCoordinates, r) {
SkScalar oddballs[] = { 0.0f, (float)INFINITY, (float)NAN, 34359738368.0f };
for (auto x : oddballs) {
- canvas->drawText("a", 1, +x, 0.0f, SkPaint());
- canvas->drawText("a", 1, -x, 0.0f, SkPaint());
+ canvas->drawString("a", +x, 0.0f, SkPaint());
+ canvas->drawString("a", -x, 0.0f, SkPaint());
}
for (auto y : oddballs) {
- canvas->drawText("a", 1, 0.0f, +y, SkPaint());
- canvas->drawText("a", 1, 0.0f, -y, SkPaint());
+ canvas->drawString("a", 0.0f, +y, SkPaint());
+ canvas->drawString("a", 0.0f, -y, SkPaint());
}
}