diff options
Diffstat (limited to 'tests/test-clipboard.js')
-rw-r--r-- | tests/test-clipboard.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-clipboard.js b/tests/test-clipboard.js index 56cfeb8..07ff026 100644 --- a/tests/test-clipboard.js +++ b/tests/test-clipboard.js @@ -40,3 +40,13 @@ exports.ensureClipboardUnicode = function ensureClipboard(test) { test.assertEqual(text, pushkinTestString, "checking set and get clipboard methods (Unicode)"); }; + +exports.ensureClipboardGetFlavors = function ensureClipboardGetFlavors(test) { + clip.set(pushkinTestString); + var available = clip.getCurrentFlavors(); + console.log("available = " + available); + test.assertEqual(JSON.stringify(available),'["plain"]', + "checking getFlavors method"); +}; + +// TODO: some weird mimeType which is not supported |