add extra promise test for chrome-remote-interface

This commit is contained in:
Erik Krogh Kristensen
2020-03-10 12:24:16 +01:00
parent 69d8cf643d
commit 3ddfd7ba73

View File

@@ -60,6 +60,10 @@ var server = http.createServer(async function(req, res) {
var client = await CDP(options);
client.Page.navigate({url: tainted}); // NOT OK.
CDP(options).catch((ignored) => {}).then((client) => {
client.Page.navigate({url: tainted}); // NOT OK.
})
CDP(options, (client) => {
client.Page.navigate({url: tainted}); // NOT OK.
});