summaryrefslogtreecommitdiff
path: root/tests/end2end
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-25 20:45:11 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-27 15:30:02 +0100
commitdf26a06cb50a8ef1fbdb748625bcf79cf9ef2258 (patch)
treee606dafed1960ac5d381caf272e537c1575ea15c /tests/end2end
parentb8ad91735abbca038127a1b239adfd943c281d92 (diff)
downloadqutebrowser-df26a06cb50a8ef1fbdb748625bcf79cf9ef2258.tar.gz
qutebrowser-df26a06cb50a8ef1fbdb748625bcf79cf9ef2258.zip
notifications: Clearer test images
Diffstat (limited to 'tests/end2end')
-rw-r--r--tests/end2end/data/downloads/qutebrowser.png (renamed from tests/end2end/data/img/qutebrowser.png)bin4278 -> 4278 bytes
-rw-r--r--tests/end2end/data/img/qutebrowser-noalpha.pngbin16870 -> 0 bytes
-rw-r--r--tests/end2end/data/javascript/img/rgb.pngbin0 -> 3376 bytes
-rw-r--r--tests/end2end/data/javascript/img/rgba.pngbin0 -> 2181 bytes
-rw-r--r--tests/end2end/data/javascript/notifications.html4
-rw-r--r--tests/end2end/features/downloads.feature2
6 files changed, 3 insertions, 3 deletions
diff --git a/tests/end2end/data/img/qutebrowser.png b/tests/end2end/data/downloads/qutebrowser.png
index e8bbb6b56..e8bbb6b56 100644
--- a/tests/end2end/data/img/qutebrowser.png
+++ b/tests/end2end/data/downloads/qutebrowser.png
Binary files differ
diff --git a/tests/end2end/data/img/qutebrowser-noalpha.png b/tests/end2end/data/img/qutebrowser-noalpha.png
deleted file mode 100644
index 77fbadb1c..000000000
--- a/tests/end2end/data/img/qutebrowser-noalpha.png
+++ /dev/null
Binary files differ
diff --git a/tests/end2end/data/javascript/img/rgb.png b/tests/end2end/data/javascript/img/rgb.png
new file mode 100644
index 000000000..7d5696383
--- /dev/null
+++ b/tests/end2end/data/javascript/img/rgb.png
Binary files differ
diff --git a/tests/end2end/data/javascript/img/rgba.png b/tests/end2end/data/javascript/img/rgba.png
new file mode 100644
index 000000000..2117b6821
--- /dev/null
+++ b/tests/end2end/data/javascript/img/rgba.png
Binary files differ
diff --git a/tests/end2end/data/javascript/notifications.html b/tests/end2end/data/javascript/notifications.html
index 4c871b932..ad8acf3c0 100644
--- a/tests/end2end/data/javascript/notifications.html
+++ b/tests/end2end/data/javascript/notifications.html
@@ -67,14 +67,14 @@
function show_image_notification() {
get_notification_permission(() => {
// For manual testing
- let notification = new Notification("qutebrowser logo", { icon: '/data/img/qutebrowser.png' });
+ let notification = new Notification("RGBA", { icon: 'img/rgba.png' });
});
}
function show_image_notification_noalpha() {
get_notification_permission(() => {
// For manual testing
- let notification = new Notification("qutebrowser logo", { icon: '/data/img/qutebrowser-noalpha.png' });
+ let notification = new Notification("RGB", { icon: 'img/rgb.png' });
});
}
</script>
diff --git a/tests/end2end/features/downloads.feature b/tests/end2end/features/downloads.feature
index 9ce6cee83..1433f4c0a 100644
--- a/tests/end2end/features/downloads.feature
+++ b/tests/end2end/features/downloads.feature
@@ -31,7 +31,7 @@ Feature: Downloading things from a website.
Scenario: Using :download with no URL on an image
When I set downloads.location.prompt to false
- And I open data/img/qutebrowser.png
+ And I open data/downloads/qutebrowser.png
And I run :download
And I wait until the download is finished
Then the downloaded file qutebrowser.png should exist