test: fix typo
authorHermet Park <chuneon.park@samsung.com>
Wed, 16 Sep 2020 12:01:43 +0000 (21:01 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 17 Sep 2020 03:10:48 +0000 (12:10 +0900)
dash size must be 2, not 4.

Change-Id: Iefaa241bb330ca0a83401518d0415a9480197727

test/testStrokeLine.cpp

index 8cc16d0..2acbda0 100644 (file)
@@ -83,8 +83,8 @@ void tvgDrawCmds(tvg::Canvas* canvas)
     shape5->stroke(tvg::StrokeJoin::Bevel);
     shape5->stroke(tvg::StrokeCap::Butt);
 
-    float dashPattern2[4] = {10, 10};
-    shape5->stroke(dashPattern2, 4);
+    float dashPattern2[2] = {10, 10};
+    shape5->stroke(dashPattern2, 2);
     if (canvas->push(move(shape5)) != tvg::Result::Success) return;
 
     auto shape6 = tvg::Shape::gen();