blob: f014884157336d03b0925e5ce3f13dc5b41913ae [file] [log] [blame]
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
assert_true(document.queryCommandSupported('copy'));
assert_true(document.queryCommandSupported('cut'));
assert_true(document.queryCommandSupported('paste'));
assert_true(window.testRunner !== undefined, 'This test requires testRunner');
testRunner.setJavaScriptCanAccessClipboard(false);
assert_false(document.queryCommandSupported('paste'));
});
</script>