]> source.dussan.org Git - jquery.git/commitdiff
Fixed bug in testsuite, tried to fix problem with :selected in Opera 8.54: It does...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 8 Oct 2006 16:19:51 +0000 (16:19 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 8 Oct 2006 16:19:51 +0000 (16:19 +0000)
build/test/data/testrunner.js
src/jquery/jquery.js

index ea731274f0fd5a8748e3b0cd7f0253d2e4069ad4..398ef3dcd4fe5f192eec71644b15a183f8106f2f 100644 (file)
@@ -129,9 +129,10 @@ function isSet(a, b, msg) {
                                ret = false;
        } else
                ret = false;
-       if ( !ret && console )
-               console.log( msg, a, b );
-       Test.push( [ ret, msg ] );
+       if ( !ret )
+               Test.push( [ ret, msg + " expected: " + b + " result: " + a ] );
+       else 
+               Test.push( [ ret, msg ] );
 }
 
 /**
index 9ae399b49514222f84047d61a4b444340fd7ccbd..341bd8813d952bbe40307c1d6f9a4794c73c2826 100644 (file)
@@ -1565,7 +1565,7 @@ jQuery.extend({
                        enabled: "!a.disabled",\r
                        disabled: "a.disabled",\r
                        checked: "a.checked",\r
-                       selected: "a.selected",\r
+                       selected: "a.selected || jQuery.attr(a, 'selected')",\r
 \r
                        // Form elements\r
                        text: "a.type=='text'",\r