From cc0143ce38f3429cbc32d72b829664b4cf5795c0 Mon Sep 17 00:00:00 2001 From: Frank van Gemeren Date: Sun, 28 May 2017 02:47:20 +0200 Subject: [PATCH] Tests for #229 --- tests/all-rules.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/all-rules.js b/tests/all-rules.js index 681a1c5e..56a507e3 100644 --- a/tests/all-rules.js +++ b/tests/all-rules.js @@ -50,6 +50,11 @@ "Using a regular rule should not result in an error": function() { var result = CSSLint.verify("body { margin: 0; }", this.options); Assert.areEqual(0, result.messages.length); + }, + + "Using an unclosed function should not result in a system crash": function() { + CSSLint.verify("#test{width:calc(100% =", this.options); + Assert.pass(); } })); @@ -63,4 +68,3 @@ YUITest.TestRunner.add(suite); })(); -