summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-02-11 14:46:15 +0100
committeranonym <anonym@riseup.net>2016-02-11 14:47:45 +0100
commitd4a69eae2db4ac59cf020832dbc78f504e93b1aa (patch)
tree7c68697cc911cedeab5efff181b89222eb6b3373
parent370552727d764f01bb8acc1b5d591be207739144 (diff)
Use separate PrintToFile.png for the browsers, and Evince.
Since the browsers use a different font, this image will differ from now on and cannot be shared with Evince.
-rw-r--r--features/images/BrowserPrintToFile.png (renamed from features/images/PrintToFile.png)bin1394 -> 1394 bytes
-rw-r--r--features/images/EvincePrintToFile.pngbin0 -> 1365 bytes
-rw-r--r--features/step_definitions/common_steps.rb2
-rw-r--r--features/step_definitions/evince.rb2
4 files changed, 2 insertions, 2 deletions
diff --git a/features/images/PrintToFile.png b/features/images/BrowserPrintToFile.png
index 568c315..568c315 100644
--- a/features/images/PrintToFile.png
+++ b/features/images/BrowserPrintToFile.png
Binary files differ
diff --git a/features/images/EvincePrintToFile.png b/features/images/EvincePrintToFile.png
new file mode 100644
index 0000000..d0b5297
--- /dev/null
+++ b/features/images/EvincePrintToFile.png
Binary files differ
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 5b7a144..fca6120 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -810,7 +810,7 @@ When /^I can print the current page as "([^"]+[.]pdf)" to the (default downloads
end
@screen.type("p", Sikuli::KeyModifier.CTRL)
@screen.wait("TorBrowserPrintDialog.png", 10)
- @screen.wait_and_click("PrintToFile.png", 10)
+ @screen.wait_and_click("BrowserPrintToFile.png", 10)
@screen.wait_and_double_click("TorBrowserPrintOutputFile.png", 10)
@screen.hide_cursor
@screen.wait("TorBrowserPrintOutputFileSelected.png", 10)
diff --git a/features/step_definitions/evince.rb b/features/step_definitions/evince.rb
index 990c6ce..a62a2d1 100644
--- a/features/step_definitions/evince.rb
+++ b/features/step_definitions/evince.rb
@@ -5,7 +5,7 @@ end
Then /^I can print the current document to "([^"]+)"$/ do |output_file|
@screen.type("p", Sikuli::KeyModifier.CTRL)
@screen.wait("EvincePrintDialog.png", 10)
- @screen.wait_and_click("PrintToFile.png", 10)
+ @screen.wait_and_click("EvincePrintToFile.png", 10)
@screen.wait_and_click("EvincePrintOutputFileButton.png", 10)
@screen.wait("EvincePrintFileDialog.png", 10)
# Only the file's basename is selected by double-clicking,