Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: toolkit/content/tests/widgets/chrome.toml
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>MozInputText Tests</title>
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
<script type="module" src="chrome://global/content/elements/moz-input-text.mjs"></script>
<script src="input-test-helpers.js"></script>
<script class="testbody" type="application/javascript">
let testHelpers = new InputTestHelpers();
let html;
add_setup(async function setup() {
({ html } = await testHelpers.setupLit());
await testHelpers.setupInputTests({
templateFn: (attrs, children) =>
html`<moz-input-text ${attrs}>${children}</moz-input-text>`,
});
});
add_task(async function testMozInputTextProperties() {
await testHelpers.testCommonInputProperties("moz-input-text");
});
add_task(async function testMozInputTextEvents() {
await testHelpers.testTextBasedInputEvents("moz-input-text");
});
</script>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test"></pre>
</body>
</html>