Files
cypress/system-tests/projects/e2e/js_errors.html
Jessica Sachs a045e4f59a chore: move server e2e tests to system-tests (#16354)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-18 19:53:14 +00:00

46 lines
1.2 KiB
HTML

<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>App Errors</title>
<link rel="icon" href="data:;base64,=">
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript">
$(function(){
$("button.ref").click(function(e){
e.preventDefault()
// generate ReferenceError
foo.bar()
})
$("button.xhr").click(function(e){
e.preventDefault()
$.get("/foo", function(data){
$("#results").html("data is " + data)
bar.baz()
})
})
$("button.sync-error").click(function () {
qux.bar()
})
$("button.async-error").click(function () {
setTimeout(function () {
qax.bar()
})
})
})
</script>
</head>
<body>
<button type="button" class="ref">reference err</button>
<button type="button" class="xhr">xhr err</button>
<button type="button" class="sync-error">sync err</button>
<button type="button" class="async-error">async err</button>
<div id="results"></div>
</body>
</html>