Browse Source

Add 2 unit tests for URL

Follow 7dbb459b55
pull/15728/head
Don Ho 4 weeks ago
parent
commit
c9168cce80
  1. 5
      PowerEditor/Test/UrlDetection/verifyUrlDetection_1a
  2. 2
      PowerEditor/Test/UrlDetection/verifyUrlDetection_1a.expected.result

5
PowerEditor/Test/UrlDetection/verifyUrlDetection_1a

@ -149,6 +149,11 @@ m 0111111111111111111111111111111111111111111100000000000000000000000000 m
u https://www.youtube.com/watch?v=VmcftreqQ6E&list=PnQIRE5O5JpiLL&index=xxx u u https://www.youtube.com/watch?v=VmcftreqQ6E&list=PnQIRE5O5JpiLL&index=xxx u
m 1111111111111111111111111111111111111111111111111111111111111111111111111 m m 1111111111111111111111111111111111111111111111111111111111111111111111111 m
u https://example.com/#/app/0?context u
m 11111111111111111111111111111111111 m
u https://example.com#/example/app/0?context u
m 111111111111111111111111111111111111111111 m
Space detection: Space detection:

2
PowerEditor/Test/UrlDetection/verifyUrlDetection_1a.expected.result

@ -45,6 +45,8 @@ OK u "https://duckduckgo.com/?q=windows+delete+"GameBarPresenceWriter.exe" u
OK u "https://duckduckgo/com/?q=windows+delete+GameBarPresenceWriter.exe" u OK u "https://duckduckgo/com/?q=windows+delete+GameBarPresenceWriter.exe" u
OK u "https://duckduckgo.com/?q=windows+delete+""GameBarPresenceWriter.exe" u OK u "https://duckduckgo.com/?q=windows+delete+""GameBarPresenceWriter.exe" u
OK u https://www.youtube.com/watch?v=VmcftreqQ6E&list=PnQIRE5O5JpiLL&index=xxx u OK u https://www.youtube.com/watch?v=VmcftreqQ6E&list=PnQIRE5O5JpiLL&index=xxx u
OK u https://example.com/#/app/0?context u
OK u https://example.com#/example/app/0?context u
OK u "http://github.com/notepad-plus-plus/notepad-plus-plus" u OK u "http://github.com/notepad-plus-plus/notepad-plus-plus" u
OK u "https://github.com /notepad-plus-plus/notepad-plus-plus" u OK u "https://github.com /notepad-plus-plus/notepad-plus-plus" u
OK u "https://github.com/notepad plus plus/notepad-plus-plus" u OK u "https://github.com/notepad plus plus/notepad-plus-plus" u

Loading…
Cancel
Save