Editing jQuery 1.7.2 vs. jQuery 1.8.2 vs jQuery 1.9b1 vs jQuery 2.0 This edit will create a new revision. Your details (optional) Name Email (won’t be displayed; might be used for Gravatar) URL Test case details Title * Published (uncheck if you want to fiddle around before making the page public) Description (in case you feel further explanation is needed)(Markdown syntax is allowed) Are you a spammer? (just answer the question) Preparation code Preparation code HTML (this will be inserted in the <body> of a valid HTML5 document in standards mode) (useful when testing DOM operations or including libraries) <script src="http://code.jquery.com/jquery-1.7.2.min.js"> </script> <script type="text/javascript"> var jQ17 = jQuery.noConflict(); </script> <script src="http://code.jquery.com/jquery-1.8.2.min.js"> </script> <script type="text/javascript"> var jQ18 = jQuery.noConflict(); </script> <script src="http://code.jquery.com/jquery-1.9.0b1.min.js"> </script> <script type="text/javascript"> var jQ19 = jQuery.noConflict(); </script> <script src="http://code.jquery.com/jquery-2.0.0b1.js"></script> <script type="text/javascript"> var jQ20 = jQuery.noConflict(); </script> <div id="idSelector"> </div> <div class="classSelector"> </div> <ul id="iteration"> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> </ul> <div id="cssGetter" style="color: black;"> </div> <div id="cssSetter" style="color: black;"> </div> <div id="find"> <span> </span> <div> <strong> </strong> </div> </div> Include JavaScript libraries as follows: <script src="//cdn.ext/library.js"></script> Define setup for all tests (variables, functions, arrays or other objects that will be used in the tests) (runs before each clocked test loop, outside of the timed code region) (e.g. define local test variables, reset global variables, clear canvas, etc.) (see FAQ) Define teardown for all tests (runs after each clocked test loop, outside of the timed code region) (see FAQ) Code snippets to compare Test 1 Title Async (check if this is an asynchronous test) Code jQ20("#idSelector"); Test 2 Title Async (check if this is an asynchronous test) Code jQ17("#idSelector"); Test 3 Title Async (check if this is an asynchronous test) Code jQ18("#idSelector"); Test 4 Title Async (check if this is an asynchronous test) Code jQ19("#idSelector"); Test 5 Title Async (check if this is an asynchronous test) Code jQ20(".classSelector"); Test 6 Title Async (check if this is an asynchronous test) Code jQ17(".classSelector"); Test 7 Title Async (check if this is an asynchronous test) Code jQ18(".classSelector"); Test 8 Title Async (check if this is an asynchronous test) Code jQ19(".classSelector"); Test 9 Title Async (check if this is an asynchronous test) Code jQ20("#iteration li").each(function(i, e) {}); Test 10 Title Async (check if this is an asynchronous test) Code jQ17("#iteration li").each(function(i, e) {}); Test 11 Title Async (check if this is an asynchronous test) Code jQ18("#iteration li").each(function(i, e) {}); Test 12 Title Async (check if this is an asynchronous test) Code jQ19("#iteration li").each(function(i, e) {}); Test 13 Title Async (check if this is an asynchronous test) Code jQ20("#cssGetter").css("color"); Test 14 Title Async (check if this is an asynchronous test) Code jQ17("#cssGetter").css("color"); Test 15 Title Async (check if this is an asynchronous test) Code jQ18("#cssGetter").css("color"); Test 16 Title Async (check if this is an asynchronous test) Code jQ19("#cssGetter").css("color"); Test 17 Title Async (check if this is an asynchronous test) Code jQ20("#cssSetter").css("color", "red"); Test 18 Title Async (check if this is an asynchronous test) Code jQ17("#cssSetter").css("color", "red"); Test 19 Title Async (check if this is an asynchronous test) Code jQ18("#cssSetter").css("color", "red"); Test 20 Title Async (check if this is an asynchronous test) Code jQ19("#cssSetter").css("color", "red"); Test 21 Title Async (check if this is an asynchronous test) Code jQ20("#find").find("strong"); Test 22 Title Async (check if this is an asynchronous test) Code jQ17("#find").find("strong"); Test 23 Title Async (check if this is an asynchronous test) Code jQ18("#find").find("strong"); Test 24 Title Async (check if this is an asynchronous test) Code jQ19("#find").find("strong");