Copy Email Address test

When you right-click on a mailto link and left-click on "Copy email address", a decoded, comma-separated list of email addresses from the MAILTO keyword and all TO keywords should be copied to the clipboard.

Remember, mailto:?to=email%40site.com is equivalent to mailto:email%40site.com and mailto:?to=email1%40site.com&to=email2%40site.com is equivalent to mailto:email1%40site.com%2C%20email2%40site.com

Also, the TO keywords don't have to come first. For example: mailto:?subject=bla&to=email1%40site.com&body=bla&to=email2%40site.com is also valid.

Tests

Right-click on the link, "Copy Email Address" and paste into the input to see if it matches the expected results.

Note: email addresses directly following "mailto:" are referenced as email addresses from the MAILTO keyword.

All-around test

test 0

No MAILTO keyword, just a TO keyword

test 1

No MAILTO keyword, just a TO keyword, but the TO is not the first keyword

test 2

Basic mailto link

test 3

No MAILTO keyword and no TO keywords

test 4

Scattered TO keywords

test 5

Scattered TO keywords ( checks to see if parsing is case-insensitive )

test 6