- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / clipboard / extension / test.js
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Clipboard permission test for Chrome.
6 // browser_tests.exe --gtest_filter=ClipboardApiTest.Extension
7
8 chrome.test.runTests([
9   function domCopy() {
10     if (document.execCommand('copy'))
11       chrome.test.succeed();
12     else
13       chrome.test.fail('execCommand("copy") failed');
14   },
15   function domPaste() {
16     if (document.execCommand('paste'))
17       chrome.test.succeed();
18     else
19       chrome.test.fail('execCommand("paste") failed');
20   }
21 ]);
22