test: failing test for setting JSON equal to null (#314)

This commit is contained in:
Joel Einbinder 2019-12-19 16:25:09 -08:00 committed by Yury Semikhatsky
parent d105f182fc
commit ce74a659e1

View File

@ -259,6 +259,11 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
})).catch(e => error = e); })).catch(e => error = e);
expect(error.message).toContain('Error in promise'); expect(error.message).toContain('Error in promise');
}); });
it.skip(FFOX || WEBKIT)('should work even when JSON is set to null', async({page, server}) => {
await page.evaluate(() => window.JSON = null);
const result = await page.evaluate(() => ({abc: 123}));
expect(result).toEqual({abc: 123});
})
}); });
describe('Page.evaluateOnNewDocument', function() { describe('Page.evaluateOnNewDocument', function() {