From 84645e3c679581d191406b2d7ab93c3f6c5e3a63 Mon Sep 17 00:00:00 2001 From: Ethan Nicholas Date: Thu, 9 Feb 2017 13:57:14 -0500 Subject: re-land of skslc type constructor cleanups BUG=skia: Change-Id: I953be07e2389dd4a9e7dcce0ddfd7505b309bda1 Reviewed-on: https://skia-review.googlesource.com/8265 Reviewed-by: Ethan Nicholas Commit-Queue: Ethan Nicholas --- tests/SkSLErrorTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/SkSLErrorTest.cpp') diff --git a/tests/SkSLErrorTest.cpp b/tests/SkSLErrorTest.cpp index a33e6f16e6..9c34ab41fb 100644 --- a/tests/SkSLErrorTest.cpp +++ b/tests/SkSLErrorTest.cpp @@ -134,7 +134,10 @@ DEF_TEST(SkSLConstructorArgumentCount, r) { "void main() { vec3 x = vec3(1.0, 2.0); }", "error: 1: invalid arguments to 'vec3' constructor (expected 3 scalars, but " "found 2)\n1 error\n"); - test_success(r, "void main() { vec3 x = vec3(1.0, 2.0, 3.0, 4.0); }"); + test_failure(r, + "void main() { vec3 x = vec3(1.0, 2.0, 3.0, 4.0); }", + "error: 1: invalid arguments to 'vec3' constructor (expected 3 scalars, but found " + "4)\n1 error\n"); } DEF_TEST(SkSLSwizzleScalar, r) { -- cgit v1.2.3