Merge pull request #192 from snshn/more-test-data
Add more sample data for blackbox tests
This commit is contained in:
commit
6e67545b92
3 changed files with 24 additions and 0 deletions
17
src/tests/data/integrity/index.html
Normal file
17
src/tests/data/integrity/index.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Local HTML file</title>
|
||||
<link href="style.css" rel="stylesheet" type="text/css" integrity="sha512-good" />
|
||||
<link href="style.css" rel="stylesheet" type="text/css" integrity="sha512-bad" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="script.js" integrity="sha-256-good"></script>
|
||||
<script src="script.js" integrity="sha-256-bad"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
3
src/tests/data/integrity/script.js
Normal file
3
src/tests/data/integrity/script.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
function noop() {
|
||||
console.log("monolith");
|
||||
}
|
4
src/tests/data/integrity/style.css
Normal file
4
src/tests/data/integrity/style.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
body {
|
||||
background-color: #000;
|
||||
color: #FFF;
|
||||
}
|
Loading…
Reference in a new issue