[Pkg-javascript-commits] [uglifyjs] 136/190: Add base54.reset() to compress tests

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 187a0caf9d2b283387b57b71dea6aa133b266638
Author: Richard van Velzen <rvanvelzen at experty.com>
Date:   Tue Apr 12 20:08:09 2016 +0200

    Add base54.reset() to compress tests
    
    Without this reset, char counts bleed to next tests. One test had a bad expect clause.
---
 test/compress/issue-976.js | 2 +-
 test/run-tests.js          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/compress/issue-976.js b/test/compress/issue-976.js
index dea3070..06e11f4 100644
--- a/test/compress/issue-976.js
+++ b/test/compress/issue-976.js
@@ -84,5 +84,5 @@ eval_mangle: {
             return a + eval('c');
         }
     }
-    expect_exact: 'function f1(n,c,e,a,o){return n("c")+c}function f2(a,b,c,d,e){return a+eval("c")}function f3(a,eval,c,d,e){return a+eval("c")}'
+    expect_exact: 'function f1(n,c,e,a,f){return n("c")+c}function f2(a,b,c,d,e){return a+eval("c")}function f3(a,eval,c,d,e){return a+eval("c")}'
 }
diff --git a/test/run-tests.js b/test/run-tests.js
index b4333b7..e9ce3bb 100755
--- a/test/run-tests.js
+++ b/test/run-tests.js
@@ -85,6 +85,7 @@ function run_compress_tests() {
         log_start_file(file);
         function test_case(test) {
             log_test(test.name);
+            U.base54.reset();
             var options = U.defaults(test.options, {
                 warnings: false
             });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list