Welcome Guest Search | Active Topics | Sign In | Register

Crash Testing Options
James
Posted: Tuesday, January 16, 2018 12:18:27 PM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2015
Posts: 122
I'm attempting to construct crash recovery features similar to what chrome provides when a tab fails.

I have an implementation that I think will work, but I'm struggling to test it reliably.

Are there any methods I can use to force a crash to trigger my recovery tools?
James
Posted: Tuesday, January 16, 2018 2:04:57 PM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2015
Posts: 122
I found I was able to crash the browser by setting up this code and executing self.Crash from a button.

var self = this;
self.Crash = function () {
for(i = 0; i < 100; i++){
setTimeout(self.Crash, 1);
}
};
return self;
eo_support
Posted: Tuesday, January 16, 2018 2:37:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

You can also call eoapi.crash() in your JavaScript to simulate an immediate crash.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.