]> source.dussan.org Git - jquery.git/commitdiff
update Sizzle
authorRichard Gibson <richard.gibson@gmail.com>
Fri, 16 Nov 2012 20:57:43 +0000 (15:57 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Fri, 16 Nov 2012 20:57:43 +0000 (15:57 -0500)
src/sizzle
test/index.html

index 7ea8b52ed6f4e3026216037c00a24edd9fce4fff..c488e18facdf50de2d272a052d1e0f663ec19fd4 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 7ea8b52ed6f4e3026216037c00a24edd9fce4fff
+Subproject commit c488e18facdf50de2d272a052d1e0f663ec19fd4
index 49ca76672f329a535d06a404cbb9591a60c91754..a13188b9743ee5157cff4d109e86f4389783ed62 100644 (file)
        <script src="data/testinit.js"></script>
 
        <script src="qunit/qunit/qunit.js"></script>
-       <!-- Loads minified version if min=true is present in the search -->
-       <!-- Nullifies querySelectorAll if noqsa=true is present -->
        <script>
                (function() {
                        var src = "../dist/jquery.js";
 
-                       QUnit.config.urlConfig.push( {
+                       // Config parameter to use minified jQuery
+                       QUnit.config.urlConfig.push({
                                id: "min",
                                label: "Load minified",
                                tooltip: "Load the minified version of the jQuery build"
-                       } );
+                       });
                        if ( QUnit.urlParams.min ) {
                                src = "../dist/jquery.min.js";
                        }
 
-                       QUnit.config.urlConfig.push( {
-                               id: "noqsa",
-                               label: "Disable querySelectorAll",
-                               tooltip: "Disable the native document.querySelectorAll"
-                       } );
-                       if ( QUnit.urlParams.noqsa ) {
+                       // Config parameter to force basic code paths
+                       QUnit.config.urlConfig.push({
+                               id: "basic",
+                               label: "Bypass optimizations",
+                               tooltip: "Force use of the most basic code by disabling native querySelectorAll; contains; compareDocumentPosition"
+                       });
+                       if ( QUnit.urlParams.basic ) {
                                document.querySelectorAll = null;
+                               document.documentElement.contains = null;
+                               document.documentElement.compareDocumentPosition = null;
                        }
 
+                       // Load jQuery
                        document.write( "<script src='" + src + "'><\/script>" );
                })();
        </script>