hjsmin 0.1.4.1 → 0.1.4.2
raw patch · 5 files changed
+17/−3 lines, 5 files
Files
- README.markdown +3/−1
- TODO.txt +1/−1
- Text/Jasmine/Pretty.hs +1/−0
- hjsmin.cabal +1/−1
- runtests.hs +11/−0
README.markdown view
@@ -30,11 +30,13 @@ Changes ------- +0.1.4.2 - minify octal literals too+ 0.1.4.1 - Bump upper bound for containers to < 0.6 for the tests as well as the library 0.1.4 - Include test assets in cabal to allow cabal test to pass. Courtesy of @snoyberg -0.1.3 - Update version ranges for GHC 7.6.1, courtesy of @mietek +0.1.3 - Update version ranges for GHC 7.6.1, courtesy of @mietek 0.1.2 - More general fix to the space after 'new' keyword, for issue #8 & #9
TODO.txt view
@@ -1,6 +1,6 @@ Testing: -The following Lint has a sctrict parser+The following Lint has a strict parser http://www.javascriptlint.com/online_lint.php This one does not
Text/Jasmine/Pretty.hs view
@@ -50,6 +50,7 @@ -- Terminals rn (JSIdentifier s) = text s rn (JSDecimal i) = text i+rn (JSOctal o) = text o rn (JSLiteral "new") = (text "new ") rn (JSLiteral l) = (text l)
hjsmin.cabal view
@@ -1,5 +1,5 @@ name: hjsmin-version: 0.1.4.1+version: 0.1.4.2 license: BSD3 license-file: LICENSE author: Alan Zimmerman <alan.zimm@gmail.com>
runtests.hs view
@@ -42,6 +42,7 @@ , testCase "BootstrapDropdown" caseBootstrapDropdown , testCase "Issue8" caseIssue8 , testCase "Issue9" caseIssue9+ , testCase "Issue14" caseIssue14 ] testSuiteMin :: Test@@ -70,6 +71,7 @@ , testCase "MinBootstrapDropdown" caseMinBootstrapDropdown , testCase "MinIssue8" caseMinIssue8 , testCase "MinIssue9" caseMinIssue9+ , testCase "MinIssue14" caseMinIssue14 ] @@ -323,6 +325,15 @@ @=? (showStrippedMaybe $ parseProgram srcIssue9) caseMinIssue9 = testMinify "var x=[new friend(5)]" srcIssue9+++srcIssue14 = "var settings = {start : new Date(2012, 01, 27)};"+caseIssue14 =+ "Right (JSSourceElementsTop [JSVariables JSLiteral \"var\" [JSVarDecl (JSIdentifier \"settings\") [JSLiteral \"=\",JSObjectLiteral [JSPropertyNameandValue (JSIdentifier \"start\") [JSLiteral \"new\",JSIdentifier \"Date\",JSArguments [JSDecimal \"2012\",JSLiteral \",\",JSOctal \"01\",JSLiteral \",\",JSDecimal \"27\"]]]]],JSLiteral \"\"])"+ @=? (showStrippedMaybe $ parseProgram srcIssue14)+caseMinIssue14 =+ testMinify "var settings={start:new Date(2012,01,27)}" srcIssue14+ -- --------------------------------------------------------------------- -- utilities