blob: 7fa9f4d30648f475b9a27ecd47779e9e287c34a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!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>
<!-- Test JS file with encoded characters as well as custom protocol -->
<script>
//# sourceURL=foo://bar/%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89.js
</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>
<iframe src="iframe.html"></script>
</body>
</html>
|