Permalink
Browse files

added failing test cases for the for statement

  • Loading branch information...
1 parent 5b01fc9 commit 71f49403aca4a2a0202f6a5fa1882d1ace8cc5af @duilio duilio committed May 7, 2012
Showing with 9 additions and 0 deletions.
  1. +6 −0 src/slimit/tests/test_ecmavisitor.py
  2. +3 −0 src/slimit/tests/test_minifier.py
@@ -425,6 +425,12 @@ def setUp(self):
# typeof
'typeof second.length === "number";',
+
+ """
+ for (o(); i < 3; i++) {
+
+ }
+ """
]
def make_test_function(input, expected):
@@ -376,6 +376,9 @@ def assertMinified(self, source, expected):
}(jQuery));
""",
"(function($){$.hello='world';}(jQuery));"),
+
+ # another issue
+ ('for(o();i<3;i++){}', 'for(o();i<3;i++){}'),
]

0 comments on commit 71f4940

Please sign in to comment.