mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
test: failing test for setting JSON equal to null (#314)
This commit is contained in:
parent
d105f182fc
commit
ce74a659e1
@ -259,6 +259,11 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
|
||||
})).catch(e => error = e);
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user