aboutsummaryrefslogtreecommitdiffstats
path: root/test/index.html
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2012-11-16 15:57:43 -0500
committerRichard Gibson <richard.gibson@gmail.com>2012-11-16 15:57:43 -0500
commitd08d48337f21d0f21467f4165efec8db0a7c7d3d (patch)
tree475afa7ac42355a54026f5e36d5c99a4c36cebd6 /test/index.html
parent28df086bbc887c8d115bed2c7d0f83b1d39fb14d (diff)
downloadjquery-d08d48337f21d0f21467f4165efec8db0a7c7d3d.tar.gz
jquery-d08d48337f21d0f21467f4165efec8db0a7c7d3d.zip
update Sizzle
Diffstat (limited to 'test/index.html')
-rw-r--r--test/index.html23
1 files changed, 13 insertions, 10 deletions
diff --git a/test/index.html b/test/index.html
index 49ca76672..a13188b97 100644
--- a/test/index.html
+++ b/test/index.html
@@ -14,30 +14,33 @@
<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>