-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a html page for testing BiDi logEntryAdded events
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<html> | ||
|
||
<body> | ||
|
||
<h1>Long entry added events</h1> | ||
|
||
<button id="consoleLog" onclick="helloWorld()">Click me for console logs</button> | ||
|
||
<button id="jsException" onclick="createError()">Click me for jsException logs</button> | ||
|
||
<button id="logWithStacktrace" onclick="bar()">Click me to get an error with stacktrace</button> | ||
|
||
<script> | ||
function helloWorld() { | ||
console.log('Hello, world!') | ||
} | ||
|
||
function createError() { throw new Error('Not working') } | ||
|
||
function foo() { throw new Error('Not working'); } | ||
|
||
function bar() { foo(); } | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |