diff --git a/include/websock.js b/include/websock.js index 782a1194..9d6a3060 100644 --- a/include/websock.js +++ b/include/websock.js @@ -371,8 +371,9 @@ function close() { // Override internal functions for testing // Takes a send function, returns reference to recv function -function testMode(override_send) { +function testMode(override_send, data_mode) { test_mode = true; + mode = data_mode; api.send = override_send; api.close = function () {}; return recv_message; diff --git a/tests/vnc_perf.html b/tests/vnc_perf.html index d75394ec..10c89717 100644 --- a/tests/vnc_perf.html +++ b/tests/vnc_perf.html @@ -2,7 +2,6 @@