Source code

Revision control

Copy as Markdown

Other Tools

<!-- Any copyright is dedicated to the Public Domain.
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Empty test page 1</title>
</head>
<body>
<!-- A simple inline script, that helps to cover breakable lines/columns -->
<!-- Have them define first, so that we avoid shifting lines when adding new scripts later in the html -->
<script>
// Comment
console.log('breakable-line');
</script>
<!-- A second inline script, that helps cover bugs when having two distinct inline scripts -->
<!-- And also covers inline script with column indexes being offseted by the HTML content -->
<script>console.log("second inline script");</script>
<!-- Covers column index being shifted only for the first line and normal for the subsequent ones -->
<script>console.log("third inline script");
eval(`
function nameLessEval() {
console.log("name-less-eval");
}
`);
eval(`
function namedEval() {
console.log("named-eval");
}
//# sourceURL=named-eval.js
`);
</script>
<script>
const logWorker = new Worker("log-worker.js");
function invokeLogWorker() {
logWorker.postMessage({yo: 'yo'})
}
</script>
<!-- Test JS file with encoded characters as well as custom protocol -->
<script>
</script>
<!-- A simple script -->
<script src="script.js"></script>
<!-- A script whose URL is shared by many other sources -->
<script src="same-url.sjs"></script>
<!-- A script running some various code on page load -->
<script src="onload.js"></script>
<!-- Another script containing helper functions trigerred by the tests -->
<script src="test-functions.js"></script>
<!-- Scripts with query strings -->
<!-- * same file, distinct query -->
<script src="query.js?x=1"></script>
<script src="query.js?x=2"></script>
<!-- * unique file -->
<script src="query2.js?y=3"></script>
<!-- A javascript: URL, which should not be shown in the SourceTree -->
<script src="javascript:console.log('foo')"></script>
<!-- A bundle/generated source that contains original.js -->
<script src="bundle.js"></script>
<!-- A bundle/generated source that contains original-with-no-update.js -->
<script src="bundle-with-another-original.js"></script>
<!-- Another bundle/generated source that contains removed-original.js -->
<script src="replaced-bundle.js"></script>
<!-- A script that looks like a react module -->
<script src="react-component-module.js"></script>
<iframe src="iframe.html"></script>
</body>
</html>