Commit Graph

29 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
cbebedf2a9 Update appium tests for new device selection window 2024-08-10 19:09:29 -07:00
Ben Olden-Cooligan
32fcabc1b6 Fix test target frameworks on windows 2024-04-01 10:40:19 -07:00
Ben Olden-Cooligan
79bba70370 Improve OCR text alignment
This is nearly a full rewrite of the alignment code. Position is now based on the line baseline (provided by Tesseract) and the font size is smarter (defaulting to Tesseract's provided value with various adjustments).

The goals were:
- Have Ctrl+F highlight the word as accurately as possible.
- Have Ctrl+A/Ctrl+C end up with text that matches the original as closely as possible.
- Have PdfSharp and Pdfium produce consistent output.
On my test cases all goals are fully met.

#236
2024-03-26 19:05:17 -07:00
Ben Olden-Cooligan
537f1f8dc4 Change OCR test string for Appium 2024-03-10 21:34:02 -07:00
Ben Olden-Cooligan
1c9ba2ab1f Fix language dropdown on Mac/Linux 2023-12-16 21:46:50 -08:00
Ben Olden-Cooligan
b92362af02 C# 12: Use collection initializers 2023-12-06 20:17:50 -08:00
Ben Olden-Cooligan
9b0f534dca WIP: Improve Appium test flakiness 2023-07-08 18:26:36 -07:00
Ben Olden-Cooligan
b804a8a7d7 Use a config file for appium test device names 2023-03-25 12:57:08 -07:00
Ben Olden-Cooligan
bce9afd43e Improve appium test flakiness 2023-03-19 19:27:23 -07:00
Ben Olden-Cooligan
b8f9066a07 Skip appium tests on non-windows
Already had no data, but it turns out that's an error for xunit.
2022-12-25 13:16:13 -08:00
Ben Olden-Cooligan
ee9327938b Remove obsolete todos 2022-12-22 16:10:55 -08:00
Ben Olden-Cooligan
3cc922ecdd Fix various warnings 2022-12-20 21:24:16 -08:00
Ben Olden-Cooligan
50721c200d More verification fixes 2022-12-18 15:27:57 -08:00
Ben Olden-Cooligan
a0a012b7f2 WIP: Cross-platform app tests 2022-12-18 13:52:33 -08:00
Ben Olden-Cooligan
20383d60ee Fix DebugLang and language tests 2022-11-27 22:15:27 -08:00
Ben Olden-Cooligan
43322842e9 Fix PDF page ordering 2022-11-13 11:57:05 -08:00
Ben Olden-Cooligan
c84de96ad9 App test fixes 2022-11-13 11:09:22 -08:00
Ben Olden-Cooligan
5b2782dcd9 Change tesseract components folder path 2022-10-21 21:31:04 -07:00
Ben Olden-Cooligan
efa8d62cc0 Rename color_image resources to dog
As it's not always color.
2022-09-20 18:18:44 -07:00
Ben Olden-Cooligan
8f34276d85 Rename NAPS2.Lib.Common to NAPS2.Lib 2022-08-20 17:46:18 -07:00
Ben Olden-Cooligan
6120899ce4 Fix import+save test to cover all pdf import cases 2022-07-30 22:59:57 -07:00
Ben Olden-Cooligan
6530b5a73f Add (failing) test for import/export non-naps2 pdf with ocr 2022-07-30 22:28:02 -07:00
Ben Olden-Cooligan
354895bab8 Add a ImportVariousAndSavePdfWithOcr winappdriver test 2022-07-30 21:41:07 -07:00
Ben Olden-Cooligan
518e0009ba Add a ScanTwainSaveImage test 2022-07-30 16:05:47 -07:00
Ben Olden-Cooligan
e6a182a121 Allow scan+save tests to run during verification or debugging 2022-07-30 15:03:52 -07:00
Ben Olden-Cooligan
ef13f727f2 Add a ScanWiaSavePdf verification test 2022-07-30 14:57:21 -07:00
Ben Olden-Cooligan
4922a71bad Fix typo
I have no idea how I went this long without noticing...
2022-07-16 19:05:51 -07:00
Ben Olden-Cooligan
dad5f6da5a Fix various warnings 2022-07-15 17:54:54 -07:00
Ben Olden-Cooligan
4b6cfb6ffe Add WinAppDriver test support for verification
We can eventually add some non-verification tests, potentially.
2022-07-09 14:28:28 -07:00