]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/tests/functional/testCommands.js
Import r6948 from upstream hg supporting Firefox up to 24.*
[dactyl.git] / common / tests / functional / testCommands.js
index 2f986259556b4c1d8333ab7b49dd262bbd444093..3382cd98b1dd2136a3d37adacc20d78bb4541be9 100644 (file)
@@ -985,9 +985,9 @@ function _runCommands(cmdName, testName, commands) {
     });
 }
 
-function runTest(message, test) {
+function runTest(message, test, ...args) {
     if (test)
-        var res = test.apply(null, Array.slice(arguments, runTest.length));
+        var res = test.apply(null, args);
     if (res !== undefined)
         jumlib.assert(res, message);
 }