From 3f23bb022e7d8fbe9f7f490e42640a0430ae09f9 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Sat, 18 May 2019 14:05:28 +0300 Subject: [PATCH] test: add failing evaluation test with utf8 (#4444) References #4443 --- test/evaluation.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/evaluation.spec.js b/test/evaluation.spec.js index 6559662a9f8..5382353955f 100644 --- a/test/evaluation.spec.js +++ b/test/evaluation.spec.js @@ -85,6 +85,10 @@ module.exports.addTests = function({testRunner, expect}) { expect(await page.evaluate(a.sum, 1, 2)).toBe(3); expect(await page.evaluate(a.mult, 2, 4)).toBe(8); }); + xit('should work with unicode chars', async({page, server}) => { + const result = await page.evaluate(a => a['中文字符'], {'中文字符': 42}); + expect(result).toBe(42); + }); it('should throw when evaluation triggers reload', async({page, server}) => { let error = null; await page.evaluate(() => {