Don't have .val() return selected-but-disabled options, or selected options inside...
[jquery.git] / test / unit / event.js
index 6d0fd9b..3c77e34 100644 (file)
@@ -210,7 +210,7 @@ test("live/die(Object), delegate/undelegate(String, Object)", function() {
        expect(6);
        
        var clickCounter = 0, mouseoverCounter = 0,
-               $p = jQuery("#firstp"), $a = $p.find("a").first();
+               $p = jQuery("#firstp"), $a = $p.find("a:first");
        
        var events = {
                click: function( event ) {
@@ -255,7 +255,7 @@ test("bind(), iframes", function() {
 });
 
 test("bind(), trigger change on select", function() {
-       expect(3);
+       expect(4);
        var counter = 0;
        function selectOnChange(event) {
                equals( event.data, counter++, "Event.data is not a global event object" );