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

Side by Side Diff: chrome/test/data/extensions/api_test/clipboard/extension/test.js

Issue 6976002: Support clipboardRead and clipboardWrite permission for hosted apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Clipboard permission test for Chrome.
2 // browser_tests.exe --gtest_filter=ClipboardApiTest.Extension
3
4 chrome.test.runTests([
5 function domCopy() {
6 if (document.execCommand('copy'))
7 chrome.test.succeed();
8 else
9 chrome.test.fail('execCommand("copy") failed');
10 },
11 function domPaste() {
12 if (document.execCommand('paste'))
13 chrome.test.succeed();
14 else
15 chrome.test.fail('execCommand("paste") failed');
16 }
17 ]);
18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698