mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
ce9c72d88e
Differential Revision: https://phabricator.services.mozilla.com/D53844 --HG-- rename : editor/composer/test/test_bug434998.xul => editor/composer/test/test_bug434998.xhtml rename : editor/libeditor/tests/test_bug1386222.xul => editor/libeditor/tests/test_bug1386222.xhtml rename : editor/libeditor/tests/test_bug1397412.xul => editor/libeditor/tests/test_bug1397412.xhtml rename : editor/libeditor/tests/test_bug489202.xul => editor/libeditor/tests/test_bug489202.xhtml rename : editor/libeditor/tests/test_bug599983.xul => editor/libeditor/tests/test_bug599983.xhtml rename : editor/libeditor/tests/test_bug607584.xul => editor/libeditor/tests/test_bug607584.xhtml rename : editor/libeditor/tests/test_bug616590.xul => editor/libeditor/tests/test_bug616590.xhtml rename : editor/libeditor/tests/test_bug780908.xul => editor/libeditor/tests/test_bug780908.xhtml rename : editor/libeditor/tests/test_cut_copy_delete_command_enabled.xul => editor/libeditor/tests/test_cut_copy_delete_command_enabled.xhtml rename : editor/libeditor/tests/test_pasteImgTextarea.xul => editor/libeditor/tests/test_pasteImgTextarea.xhtml rename : editor/reftests/xul/empty-ref.xul => editor/reftests/xul/empty-ref.xhtml rename : editor/reftests/xul/emptytextbox-4.xul => editor/reftests/xul/emptytextbox-4.xhtml rename : editor/reftests/xul/emptytextbox-ref.xul => editor/reftests/xul/emptytextbox-ref.xhtml extra : moz-landing-system : lando
27 lines
1.2 KiB
HTML
27 lines
1.2 KiB
HTML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
|
|
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<body xmlns="http://www.w3.org/1999/xhtml">
|
|
<html:img id="i" src="green.png" />
|
|
<html:textarea id="t"></html:textarea>
|
|
</body>
|
|
<script type="text/javascript"><![CDATA[
|
|
let loaded = new Promise(resolve => addLoadEvent(resolve));
|
|
add_task(async function() {
|
|
await loaded;
|
|
SpecialPowers.setCommandNode(window, document.getElementById("i"));
|
|
SpecialPowers.doCommand(window, "cmd_copyImageContents");
|
|
let input = document.getElementById("t");
|
|
input.focus();
|
|
var controller =
|
|
SpecialPowers.wrap(input).controllers.getControllerForCommand("cmd_paste");
|
|
is(controller.isCommandEnabled("cmd_paste"), false,
|
|
"paste should not be enabled in xul textareas when an image is on the clipboard");
|
|
});
|
|
]]></script>
|
|
</window>
|