summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/general/test_clipboard_disallowed.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/general/test_clipboard_disallowed.html')
-rw-r--r--dom/tests/mochitest/general/test_clipboard_disallowed.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/tests/mochitest/general/test_clipboard_disallowed.html b/dom/tests/mochitest/general/test_clipboard_disallowed.html
index 71ba09d..0b5422d 100644
--- a/dom/tests/mochitest/general/test_clipboard_disallowed.html
+++ b/dom/tests/mochitest/general/test_clipboard_disallowed.html
@@ -48,6 +48,21 @@ function checkAllowed(event)
exception = null;
try {
+ clipboardData.mozSetDataAt("text/x-moz-place", "Test", 0);
+ } catch(ex) {
+ exception = ex;
+ }
+ is(String(exception).indexOf("SecurityError"), 0, "Cannot set place");
+ exception = null;
+ try {
+ clipboardData.mozSetDataAt("text/x-moz-place-container", "Test", 0);
+ } catch(ex) {
+ exception = ex;
+ }
+ is(String(exception).indexOf("SecurityError"), 0, "Cannot set place container");
+
+ exception = null;
+ try {
clipboardData.mozSetDataAt("application/something", "This is data", 0);
} catch(ex) {
exception = ex;