mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: added visual tests for testing compatibility with other widgets
This commit is contained in:
parent
6edc790e8c
commit
5cbd109792
94
tests/visual/selectmenu/autocomplete.html
Normal file
94
tests/visual/selectmenu/autocomplete.html
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>jQuery UI Selectmenu - Event functionality</title>
|
||||||
|
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
|
||||||
|
<script src="../../../jquery-1.6.2.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.core.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.widget.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.position.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.autocomplete.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.button.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.menu.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.selectmenu.js"></script>
|
||||||
|
<link rel="stylesheet" href="../../../demos/demos.css">
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$('select#speed').selectmenu();
|
||||||
|
|
||||||
|
var availableTags = [
|
||||||
|
"ActionScript",
|
||||||
|
"AppleScript",
|
||||||
|
"Asp",
|
||||||
|
"BASIC",
|
||||||
|
"C",
|
||||||
|
"C++",
|
||||||
|
"Clojure",
|
||||||
|
"COBOL",
|
||||||
|
"ColdFusion",
|
||||||
|
"Erlang",
|
||||||
|
"Fortran",
|
||||||
|
"Groovy",
|
||||||
|
"Haskell",
|
||||||
|
"Java",
|
||||||
|
"JavaScript",
|
||||||
|
"Lisp",
|
||||||
|
"Perl",
|
||||||
|
"PHP",
|
||||||
|
"Python",
|
||||||
|
"Ruby",
|
||||||
|
"Scala",
|
||||||
|
"Scheme"
|
||||||
|
];
|
||||||
|
$( "#tags" ).autocomplete({
|
||||||
|
source: availableTags
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
form { margin: 20px 0 0 0 }
|
||||||
|
fieldset { border: 0; }
|
||||||
|
label { display: block; }
|
||||||
|
select { width: 200px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="demo">
|
||||||
|
|
||||||
|
|
||||||
|
<form action="#">
|
||||||
|
<fieldset>
|
||||||
|
<label for="speed">Select a speed:</label>
|
||||||
|
<select name="speed" id="speed">
|
||||||
|
<option value="Slower">Slower</option>
|
||||||
|
<option value="Slow">Slow</option>
|
||||||
|
<option value="Medium" selected="selected">Medium</option>
|
||||||
|
<option value="Fast">Fast</option>
|
||||||
|
<option value="Faster">Faster</option>
|
||||||
|
</select>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<div class="ui-widget">
|
||||||
|
<label for="tags">Tags: </label>
|
||||||
|
<input id="tags">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div><!-- End demo -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
72
tests/visual/selectmenu/dialog.html
Normal file
72
tests/visual/selectmenu/dialog.html
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>jQuery UI Selectmenu - Event functionality</title>
|
||||||
|
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
|
||||||
|
<script src="../../../jquery-1.6.2.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.core.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.widget.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.position.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.dialog.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.button.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.menu.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.selectmenu.js"></script>
|
||||||
|
<link rel="stylesheet" href="../../../demos/demos.css">
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$('select#speed').selectmenu();
|
||||||
|
|
||||||
|
$( "#dialog" ).dialog();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
form { margin: 20px 0 0 0 }
|
||||||
|
fieldset { border: 0; }
|
||||||
|
label { display: block; }
|
||||||
|
select { width: 200px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="demo">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="dialog" title="Basic dialog">
|
||||||
|
<p>Some example content</p>
|
||||||
|
<p><a href="#nogo">Test Link</a></p>
|
||||||
|
<form action="#">
|
||||||
|
<fieldset>
|
||||||
|
<label for="speed">Select a speed:</label>
|
||||||
|
<select name="speed" id="speed">
|
||||||
|
<option value="Slower">Slower</option>
|
||||||
|
<option value="Slow">Slow</option>
|
||||||
|
<option value="Medium" selected="selected">Medium</option>
|
||||||
|
<option value="Fast">Fast</option>
|
||||||
|
<option value="Faster">Faster</option>
|
||||||
|
</select>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Sample page content to illustrate the layering of the dialog -->
|
||||||
|
<div class="hiddenInViewSource" style="padding:20px;">
|
||||||
|
<p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>
|
||||||
|
<form>
|
||||||
|
<input value="text input" /><br />
|
||||||
|
<input type="checkbox" />checkbox<br />
|
||||||
|
<input type="radio" />radio<br />
|
||||||
|
<select>
|
||||||
|
<option>select</option>
|
||||||
|
</select><br /><br />
|
||||||
|
<textarea>textarea</textarea><br />
|
||||||
|
</form>
|
||||||
|
</div><!-- End sample page content -->
|
||||||
|
|
||||||
|
|
||||||
|
</div><!-- End demo -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
68
tests/visual/selectmenu/tabs.html
Normal file
68
tests/visual/selectmenu/tabs.html
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>jQuery UI Selectmenu - Event functionality</title>
|
||||||
|
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
|
||||||
|
<script src="../../../jquery-1.6.2.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.core.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.widget.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.position.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.tabs.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.button.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.menu.js"></script>
|
||||||
|
<script src="../../../ui/jquery.ui.selectmenu.js"></script>
|
||||||
|
<link rel="stylesheet" href="../../../demos/demos.css">
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$( "#tabs" ).tabs();
|
||||||
|
$('select').selectmenu();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
form { margin: 20px 0 0 0 }
|
||||||
|
fieldset { border: 0; }
|
||||||
|
label { display: block; }
|
||||||
|
select { width: 200px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="demo">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="tabs">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#tabs-1">Nunc tincidunt</a></li>
|
||||||
|
<li><a href="#tabs-2">Proin dolor</a></li>
|
||||||
|
<li><a href="#tabs-3">Aenean lacinia</a></li>
|
||||||
|
</ul>
|
||||||
|
<div id="tabs-1">
|
||||||
|
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
|
||||||
|
</div>
|
||||||
|
<div id="tabs-2">
|
||||||
|
<form action="#">
|
||||||
|
<fieldset>
|
||||||
|
<label for="speed">Select a speed:</label>
|
||||||
|
<select name="speed" id="speed">
|
||||||
|
<option value="Slower">Slower</option>
|
||||||
|
<option value="Slow">Slow</option>
|
||||||
|
<option value="Medium" selected="selected">Medium</option>
|
||||||
|
<option value="Fast">Fast</option>
|
||||||
|
<option value="Faster">Faster</option>
|
||||||
|
</select>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div id="tabs-3">
|
||||||
|
<p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
|
||||||
|
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div><!-- End demo -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user