aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-08 02:00:10 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-08 02:00:10 +0200
commit94fe9a684db8182110109b6d3a8ef1bad1075a6b (patch)
tree01cdfa3f10e22167549befad365ce8149a05e412 /tests
parent47511aa190e467bf711fcfa5fde1225275a3aaa8 (diff)
downloadbugzilla-triage-94fe9a684db8182110109b6d3a8ef1bad1075a6b.tar.gz
Added getCurrentFlavors with tests to the clipboard module.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-clipboard.js10
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