Bug 1715032 - Run text/html clipboard tests on Android. r=masayuki

Actually, since GeckoView supports text/html on global clipboard, let's enable it.

Differential Revision: https://phabricator.services.mozilla.com/D117025
This commit is contained in:
Makoto Kato 2021-06-09 00:12:36 +00:00
parent 9d69a80d84
commit f7b0f34fe4

View File

@ -62,11 +62,8 @@ function hasExpectedFlavors() {
ok(cb.hasDataMatchingFlavors(["text/unicode"], cb.kGlobalClipboard),
"The clipboard has text/unicode");
// Android only supports plain text
if (!navigator.appVersion.includes("Android")) {
ok(cb.hasDataMatchingFlavors(["text/html"], cb.kGlobalClipboard),
"The clipboard has text/html");
}
ok(cb.hasDataMatchingFlavors(["text/html"], cb.kGlobalClipboard),
"The clipboard has text/html");
if (navigator.appVersion.includes("Win")) {
ok(cb.hasDataMatchingFlavors(["application/x-moz-nativehtml"], cb.kGlobalClipboard),