Selectmenu: Update unit tests

This commit is contained in:
Felix Nagel 2012-05-16 20:30:30 +02:00
parent 4460376a85
commit ff957dd287
2 changed files with 16 additions and 13 deletions

View File

@ -4,23 +4,26 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>jQuery UI Selectmenu Test Suite</title> <title>jQuery UI Selectmenu Test Suite</title>
<link rel="stylesheet" href="../../../themes/base/jquery.ui.core.css">
<link rel="stylesheet" href="../../../themes/base/jquery.ui.menu.css">
<link rel="stylesheet" href="../../../themes/base/jquery.ui.selectmenu.css">
<script src="../../jquery.js"></script> <script src="../../jquery.js"></script>
<script src="../../../ui/jquery.ui.core.js"></script>
<script src="../../../ui/jquery.ui.widget.js"></script>
<script src="../../../ui/jquery.ui.menu.js"></script>
<script src="../../../ui/jquery.ui.selectmenu.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css"> <link rel="stylesheet" href="../../../external/qunit.css">
<script src="../../../external/qunit.js"></script> <script src="../../../external/qunit.js"></script>
<script src="../../jquery.simulate.js"></script> <script src="../../jquery.simulate.js"></script>
<script src="../testsuite.js"></script> <script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
css: [ "ui.core", "ui.menu" , "ui.selectmenu" ],
js: [
"ui/jquery.ui.core.js",
"ui/jquery.ui.widget.js",
"ui/jquery.ui.menu.js",
"ui/jquery.ui.selectmenu.js"
]
});
</script>
<script src="selectmenu_common.js"></script>
<script src="selectmenu_core.js"></script> <script src="selectmenu_core.js"></script>
<script src="selectmenu_defaults.js"></script>
<script src="selectmenu_events.js"></script> <script src="selectmenu_events.js"></script>
<script src="selectmenu_methods.js"></script> <script src="selectmenu_methods.js"></script>
<script src="selectmenu_options.js"></script> <script src="selectmenu_options.js"></script>
@ -35,7 +38,7 @@
<h2 id="qunit-userAgent"></h2> <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol> <ol id="qunit-tests"></ol>
<div id="qunit-fixture"> <div id="qunit-fixture">
<label for="speed">Select a speed:</label> <label for="speed">Select a speed:</label>
<select name="speed" id="speed"> <select name="speed" id="speed">
<option value="Slower">Slower</option> <option value="Slower">Slower</option>
@ -44,7 +47,7 @@
<option value="Fast">Fast</option> <option value="Fast">Fast</option>
<option value="Faster">Faster</option> <option value="Faster">Faster</option>
</select> </select>
<label for="number">Select a number:</label> <label for="number">Select a number:</label>
<select name="number" id="number"> <select name="number" id="number">
<option value="1">1</option> <option value="1">1</option>
@ -67,7 +70,7 @@
<option value="18">18</option> <option value="18">18</option>
<option value="19">19</option> <option value="19">19</option>
</select> </select>
<label for="files">Select a file:</label> <label for="files">Select a file:</label>
<select name="files" id="files"> <select name="files" id="files">
<optgroup label="Scripts"> <optgroup label="Scripts">

View File

@ -1,4 +1,4 @@
commonWidgetTests( "selectmenu", { TestHelpers.commonWidgetTests( "selectmenu", {
defaults: { defaults: {
appendTo: "body", appendTo: "body",
disabled: false, disabled: false,