diff options
Diffstat (limited to 'tests/test.rfb.js')
-rw-r--r-- | tests/test.rfb.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test.rfb.js b/tests/test.rfb.js index 0ac6622..bdca2f7 100644 --- a/tests/test.rfb.js +++ b/tests/test.rfb.js @@ -2260,12 +2260,7 @@ describe('Remote Frame Buffer Protocol Client', function () { }); it('should be able to handle large Provide messages', function () { - // repeat() is not supported in IE so a loop is needed instead - let expectedData = "hello"; - for (let i = 1; i <= 100000; i++) { - expectedData += "hello"; - } - + let expectedData = "hello".repeat(100000); let data = [3, 0, 0, 0]; const flags = [0x10, 0x00, 0x00, 0x01]; |