index.html (2827B)
1 <!-- Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ --> 3 <!doctype html> 4 5 <html> 6 <head> 7 <meta charset="utf-8"/> 8 <title>Empty test page 1</title> 9 </head> 10 11 <body> 12 <!-- A simple inline script, that helps to cover breakable lines/columns --> 13 <!-- Have them define first, so that we avoid shifting lines when adding new scripts later in the html --> 14 <script> 15 // Comment 16 console.log('breakable-line'); 17 </script> 18 19 <!-- A second inline script, that helps cover bugs when having two distinct inline scripts --> 20 <!-- And also covers inline script with column indexes being offseted by the HTML content --> 21 <script>console.log("second inline script");</script> 22 23 <!-- Covers column index being shifted only for the first line and normal for the subsequent ones --> 24 <script>console.log("third inline script"); 25 eval(` 26 function nameLessEval() { 27 console.log("name-less-eval"); 28 } 29 `); 30 eval(` 31 function namedEval() { 32 console.log("named-eval"); 33 } 34 //# sourceURL=named-eval.js 35 `); 36 </script> 37 38 <script> 39 const logWorker = new Worker("log-worker.js"); 40 function invokeLogWorker() { 41 logWorker.postMessage({yo: 'yo'}) 42 } 43 </script> 44 45 <!-- Test JS file with encoded characters as well as custom protocol --> 46 <script> 47 //# sourceURL=foo://bar/%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89.js 48 </script> 49 50 <!-- A simple script --> 51 <script src="script.js"></script> 52 <!-- A script whose URL is shared by many other sources --> 53 <script src="same-url.sjs"></script> 54 <!-- A script running some various code on page load --> 55 <script src="onload.js"></script> 56 <!-- Another script containing helper functions trigerred by the tests --> 57 <script src="test-functions.js"></script> 58 59 <!-- Scripts with query strings --> 60 <!-- * same file, distinct query --> 61 <script src="query.js?x=1"></script> 62 <script src="query.js?x=2"></script> 63 <!-- * unique file --> 64 <script src="query2.js?y=3"></script> 65 66 <!-- A javascript: URL, which should not be shown in the SourceTree --> 67 <script src="javascript:console.log('foo')"></script> 68 69 <!-- A bundle/generated source that contains original.js --> 70 <script src="bundle.js"></script> 71 72 <!-- A bundle/generated source that contains original-with-no-update.js --> 73 <script src="bundle-with-another-original.js"></script> 74 75 <!-- Another bundle/generated source that contains removed-original.js --> 76 <script src="replaced-bundle.js"></script> 77 78 <!-- A script that looks like a react module --> 79 <script src="react-component-module.js"></script> 80 81 <iframe src="iframe.html"></script> 82 </body> 83 84 </html>