aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-04-29 21:34:10 +0200
committerFelix Nagel <info@felixnagel.com>2013-04-29 21:34:10 +0200
commitad30163f1c957c834e48657f1509584e77b5d275 (patch)
treecbd9010a914c650c8949b8221ae98a23fc99f79f /tests/visual
parentc1667ba01d87597cfa4fdbe9f4aedfa98cd13d00 (diff)
downloadjquery-ui-ad30163f1c957c834e48657f1509584e77b5d275.tar.gz
jquery-ui-ad30163f1c957c834e48657f1509584e77b5d275.zip
Selectmenu Tests: added labels to disabled empty visual test
Diffstat (limited to 'tests/visual')
-rw-r--r--tests/visual/selectmenu/disabled_empty.html25
1 files changed, 15 insertions, 10 deletions
diff --git a/tests/visual/selectmenu/disabled_empty.html b/tests/visual/selectmenu/disabled_empty.html
index 3d4e5887e..4bdbf7f01 100644
--- a/tests/visual/selectmenu/disabled_empty.html
+++ b/tests/visual/selectmenu/disabled_empty.html
@@ -17,6 +17,7 @@
$('select#disabled1').selectmenu();
var withOverflow = $('select#disabled2').selectmenu();
withOverflow.selectmenu("menuWidget").addClass("overflow");
+
$('select#disabled3').selectmenu();
var disabled4 = $('select#disabled4').selectmenu();
@@ -55,7 +56,7 @@
});
/* empty */
- $('select.empty').selectmenu();
+ $('.empty select').selectmenu();
});
</script>
<style>
@@ -72,7 +73,7 @@
<form action="#">
<h2>Disabled tests</h2>
<fieldset>
- <label for="disabled1">Select a speed:</label>
+ <label for="disabled1">Disabled select</label>
<select disabled="disabled" name="disabled1" id="disabled1">
<option value="Slower">Slower</option>
<option value="Slow">Slow</option>
@@ -82,7 +83,7 @@
</select>
<br />
<br />
- <label for="disabled2">Select a number:</label>
+ <label for="disabled2">Disabled options</label>
<select name="disabled2" id="disabled2">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
@@ -106,7 +107,7 @@
</select>
<br />
<br />
- <label for="disabled3">Select a file:</label>
+ <label for="disabled3">Disabled optgroup</label>
<select name="disabled3" id="disabled3">
<optgroup disabled="disabled" label="Scripts">
<option value="jquery">jQuery.js</option>
@@ -119,7 +120,7 @@
</select>
<br />
<br />
- <label for="disabled4">Select a file:</label>
+ <label for="disabled4">Disable specific element and refresh selectmenu on button click</label>
<select name="disabled4" id="disabled4">
<optgroup label="Scripts">
<option value="jquery">jQuery.js</option>
@@ -136,16 +137,19 @@
</fieldset>
<br />
<h2>Empty tests</h2>
- <fieldset>
- <select name="speed1" class="empty"></select>
+ <fieldset class="empty">
+ <label for="empty1">Select with no option elements</label>
+ <select name="empty1" id="empty1"></select>
<br />
<br />
- <select name="speed2" class="empty">
+ <label for="empty2">Select with one empty option element</label>
+ <select name="empty2" id="empty2">
<option value=""></option>
</select>
<br />
<br />
- <select name="number" class="empty">
+ <label for="empty3">Select with some empty option elements</label>
+ <select name="empty3" id="empty3">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
@@ -158,7 +162,8 @@
</select>
<br />
<br />
- <select name="files" class="empty">
+ <label for="empty4">Select with empty optgroup</label>
+ <select name="empty4" class="empty4">
<optgroup label="Scripts"></optgroup>
<optgroup label="Other files">
<option value="somefile">Some unknown file</option>