Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2963)

Unified Diff: chrome/test/data/extensions/api_test/clipboard/extension_no_permission/test.js

Issue 495213002: Add tests to make sure copy/paste in an about:blank iframe in a hosted app works. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/clipboard/extension_no_permission/test.js
diff --git a/chrome/test/data/extensions/api_test/clipboard/extension_no_permission/test.js b/chrome/test/data/extensions/api_test/clipboard/extension_no_permission/test.js
index b5650c25684c2caf0801b913dd20003eb8b3ae5e..544c6ed2853333a27d38f2b87b3bb383ded76013 100644
--- a/chrome/test/data/extensions/api_test/clipboard/extension_no_permission/test.js
+++ b/chrome/test/data/extensions/api_test/clipboard/extension_no_permission/test.js
@@ -17,5 +17,21 @@ chrome.test.runTests([
chrome.test.succeed();
else
chrome.test.fail('execCommand("paste") succeeded');
+ },
+ function copyInIframe() {
+ var ifr = document.createElement('iframe');
+ document.body.appendChild(ifr);
+ if (ifr.contentDocument.execCommand('copy'))
+ chrome.test.succeed();
+ else
+ chrome.test.fail('execCommand("copy") failed in iframe');
+ },
+ function pasteInIframe() {
+ var ifr = document.createElement('iframe');
+ document.body.appendChild(ifr);
+ if (ifr.contentDocument.execCommand('paste'))
+ chrome.test.fail('execCommand("paste") succeeded in iframe');
+ else
+ chrome.test.succeed();
not at google - send to devlin 2014/08/21 20:28:11 ditto
}
]);

Powered by Google App Engine
This is Rietveld 408576698