mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-25 01:17:29 +00:00
Add new test files
This commit is contained in:
parent
1b5342428a
commit
9073aa581b
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ users_export.json
|
||||
/.nyc_output
|
||||
/test/screenshots/diff
|
||||
/test/screenshots/staging
|
||||
/src/lib/utils/saved_requests/files
|
||||
|
105
test/files/graphql-facebook-error.html
Normal file
105
test/files/graphql-facebook-error.html
Normal file
@ -0,0 +1,105 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" id="facebook">
|
||||
<head>
|
||||
<title>Facebook | Error</title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-store">
|
||||
<meta http-equiv="cache-control" content="max-age=0">
|
||||
<meta http-equiv="expires" content="-1">
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<style>
|
||||
html, body {
|
||||
color: #141823;
|
||||
background-color: #e9eaed;
|
||||
font-family: Helvetica, Lucida Grande, Arial,
|
||||
Tahoma, Verdana, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#header {
|
||||
height: 30px;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#icon {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
border-top: 1px solid #ddd;
|
||||
color: #9197a3;
|
||||
font-size: 12px;
|
||||
padding: 5px 8px 6px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<a href="//www.facebook.com/">
|
||||
<img id="icon" src="//static.facebook.com/images/logos/facebook_2x.png" />
|
||||
</a>
|
||||
</div>
|
||||
<div id="core">
|
||||
<h1 id="sorry">Sorry, something went wrong.</h1>
|
||||
<p id="promise">
|
||||
We're working on it and we'll get it fixed as soon as we can.
|
||||
</p>
|
||||
<p id="back-link">
|
||||
<a id="back" href="//www.facebook.com/">Go Back</a>
|
||||
</p>
|
||||
<div id="footer">
|
||||
Facebook
|
||||
<span id="copyright">
|
||||
© 2020
|
||||
</span>
|
||||
<span id="help-link">
|
||||
·
|
||||
<a id="help" href="//www.facebook.com/help/">Help Center</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('back').onclick = function() {
|
||||
if (history.length > 1) {
|
||||
history.back();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// Adjust the display based on the window size
|
||||
if (window.innerHeight < 80 || window.innerWidth < 80) {
|
||||
// Blank if window is too small
|
||||
document.body.style.display = 'none';
|
||||
};
|
||||
if (window.innerWidth < 200 || window.innerHeight < 150) {
|
||||
document.getElementById('back-link').style.display = 'none';
|
||||
document.getElementById('help-link').style.display = 'none';
|
||||
};
|
||||
if (window.innerWidth < 200) {
|
||||
document.getElementById('sorry').style.fontSize = '16px';
|
||||
};
|
||||
if (window.innerWidth < 150) {
|
||||
document.getElementById('promise').style.display = 'none';
|
||||
};
|
||||
if (window.innerHeight < 150) {
|
||||
document.getElementById('sorry').style.margin = '4px 0 0 0';
|
||||
document.getElementById('sorry').style.fontSize = '14px';
|
||||
document.getElementById('promise').style.display = 'none';
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
1
test/files/graphql-timeline-invalid-userid.json
Normal file
1
test/files/graphql-timeline-invalid-userid.json
Normal file
@ -0,0 +1 @@
|
||||
{"data":{"user":null},"status":"ok"}
|
Binary file not shown.
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 73 KiB |
Binary file not shown.
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 74 KiB |
BIN
test/screenshots/final/settings-phone-default.png
Normal file
BIN
test/screenshots/final/settings-phone-default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
Loading…
Reference in New Issue
Block a user