2008-10-22 23:36:52 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Subtest for browser context menu</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
Browser context menu subtest.
|
|
|
|
|
|
|
|
<div id="test-text">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div>
|
|
|
|
<a id="test-link" href="http://mozilla.com">Click the monkey!</a>
|
|
|
|
<a id="test-mailto" href="mailto:codemonkey@mozilla.com">Mail the monkey!</a><br>
|
|
|
|
<input id="test-input"><br>
|
|
|
|
<img id="test-image" src="ctxmenu-image.png">
|
|
|
|
<canvas id="test-canvas" width="100" height="100" style="background-color: blue"></canvas>
|
2011-10-03 20:47:41 -07:00
|
|
|
<video controls id="test-video-ok" src="video.ogg" width="100" height="100" style="background-color: green"></video>
|
2012-04-20 19:33:42 -07:00
|
|
|
<video id="test-audio-in-video" src="audio.ogg" width="100" height="100" style="background-color: red"></video>
|
2011-10-03 20:47:41 -07:00
|
|
|
<video controls id="test-video-bad" src="bogus.duh" width="100" height="100" style="background-color: orange"></video>
|
|
|
|
<video controls id="test-video-bad2" width="100" height="100" style="background-color: yellow">
|
2009-07-09 18:26:35 -07:00
|
|
|
<source src="bogus.duh" type="video/durrrr;">
|
|
|
|
</video>
|
2008-10-22 23:36:52 -07:00
|
|
|
<iframe id="test-iframe" width="98" height="98" style="border: 1px solid black"></iframe>
|
2011-11-02 13:52:21 -07:00
|
|
|
<iframe id="test-video-in-iframe" src="video.ogg" width="98" height="98" style="border: 1px solid black"></iframe>
|
|
|
|
<iframe id="test-image-in-iframe" src="ctxmenu-image.png" width="98" height="98" style="border: 1px solid black"></iframe>
|
2010-06-01 11:08:38 -07:00
|
|
|
<textarea id="test-textarea">chssseesbbbie</textarea> <!-- a weird word which generates only one suggestion -->
|
|
|
|
<div id="test-contenteditable" contenteditable="true">chssseefsbbbie</div> <!-- a more weird word which generates no suggestions -->
|
2013-08-15 12:06:54 -07:00
|
|
|
<div id="test-contenteditable-spellcheck-false" contenteditable="true" spellcheck="false">test</div> <!-- No Check Spelling menu item -->
|
2012-05-24 21:57:59 -07:00
|
|
|
<div id="test-dom-full-screen">DOM full screen FTW</div>
|
2011-08-08 10:31:32 -07:00
|
|
|
<div contextmenu="myMenu">
|
|
|
|
<p id="test-pagemenu" hopeless="true">I've got a context menu!</p>
|
|
|
|
<menu id="myMenu" type="context">
|
|
|
|
<menuitem label="Plain item" onclick="document.getElementById('test-pagemenu').removeAttribute('hopeless');"></menuitem>
|
|
|
|
<menuitem label="Disabled item" disabled></menuitem>
|
2011-08-10 23:07:26 -07:00
|
|
|
<menuitem> Item w/ textContent</menuitem>
|
2011-08-08 10:31:32 -07:00
|
|
|
<menu>
|
|
|
|
<menuitem type="checkbox" label="Checkbox" checked></menuitem>
|
|
|
|
</menu>
|
|
|
|
<menu>
|
|
|
|
<menuitem type="radio" label="Radio1" checked></menuitem>
|
|
|
|
<menuitem type="radio" label="Radio2"></menuitem>
|
|
|
|
<menuitem type="radio" label="Radio3"></menuitem>
|
|
|
|
</menu>
|
|
|
|
<menu>
|
|
|
|
<menuitem label="Item w/ icon" icon="favicon.ico"></menuitem>
|
|
|
|
<menuitem label="Item w/ bad icon" icon="data://www.mozilla.org/favicon.ico"></menuitem>
|
|
|
|
</menu>
|
|
|
|
<menu label="Submenu">
|
|
|
|
<menuitem type="radio" label="Radio1" radiogroup="rg"></menuitem>
|
|
|
|
<menuitem type="radio" label="Radio2" checked radiogroup="rg"></menuitem>
|
|
|
|
<menuitem type="radio" label="Radio3" radiogroup="rg"></menuitem>
|
|
|
|
<menu>
|
|
|
|
<menuitem type="checkbox" label="Checkbox"></menuitem>
|
|
|
|
</menu>
|
|
|
|
</menu>
|
|
|
|
<menu hidden>
|
|
|
|
<menuitem label="Bogus item"></menuitem>
|
|
|
|
</menu>
|
|
|
|
<menu>
|
|
|
|
</menu>
|
|
|
|
<menuitem label="Hidden item" hidden></menuitem>
|
|
|
|
<menuitem></menuitem>
|
|
|
|
</menu>
|
|
|
|
</div>
|
2012-03-16 12:41:37 -07:00
|
|
|
<div id="test-select-text">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div>
|
|
|
|
<div id="test-select-text-link">http://mozilla.com</div>
|
2012-09-18 14:16:16 -07:00
|
|
|
<a id="test-image-link" href="#"><img src="ctxmenu-image.png"></a>
|
2011-04-24 09:15:53 -07:00
|
|
|
<input id="test-select-input-text" type="text" value="input">
|
|
|
|
<input id="test-select-input-text-type-password" type="password" value="password">
|
2012-07-17 13:45:59 -07:00
|
|
|
<embed id="test-plugin" style="width: 200px; height: 200px;" type="application/x-test"></embed>
|
2013-06-23 06:37:21 -07:00
|
|
|
<img id="test-longdesc" src="ctxmenu-image.png" longdesc="http://www.mozilla.org"></embed>
|
2013-07-25 06:32:50 -07:00
|
|
|
<iframe id="test-srcdoc" width="98" height="98" srcdoc="Hello World" style="border: 1px solid black"></iframe>
|
2008-10-22 23:36:52 -07:00
|
|
|
</body>
|
|
|
|
</html>
|