test: remove irrelevant test (#1172)

Since the migration on lifecycle events, the websockets are no longer
taken into account to detect navigation success with networkidle events.
This commit is contained in:
Andrey Lushnikov
2017-10-27 02:14:25 -07:00
committed by GitHub
parent e11dbd7be6
commit d9acf1ead5
2 changed files with 0 additions and 61 deletions

View File

@@ -1,28 +0,0 @@
<script>
function createClient() {
const client = new WebSocket(`ws://${location.host}`);
client.addEventListener('open', () => console.log('opened'));
client.addEventListener('close', () => console.log('closed'));
return client;
}
function createAndDestroyClientAfterDelay(delay = 50) {
const client = createClient();
return new Promise(resolve => {
setTimeout(() => {
client.close();
resolve();
}, delay);
});
}
async function main() {
await createAndDestroyClientAfterDelay();
await createAndDestroyClientAfterDelay();
await createAndDestroyClientAfterDelay();
await createAndDestroyClientAfterDelay();
await fetch('fetch-request.js');
}
main().then(() => console.log('done!'));
</script>