Skip to content

Commit

Permalink
Add a html page for testing BiDi logEntryAdded events
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Jun 3, 2022
1 parent 6d2a782 commit 34d593f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions common/src/web/bidi/logEntryAdded.html
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>

0 comments on commit 34d593f

Please sign in to comment.