Editing FasterSelector 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) <table class="listings"><thead> <tr> <td class="checkbox-column"><input class="global-select-listing" type="checkbox"></td> <td style="width: 280px;">Property</td> <td style="width: 150px;">ID/HA ID</td> <td style="width: 200px;">Listing Model</td> <td>PPB Level</td> </tr> <tr class="global-selection" style="display: none;"> <td colspan="3"> <span class="pull-right multi-select-message">You can edit all selected items at once<i class="icon-chevron-right"></i></span> </td> <td> <select class="span2"> <option>Pay per booking</option> <option>None</option> </select> </td> <td> <select class="span1"> <option>5%</option> <option>10%</option> <option>15%</option> <option>20%</option> <option>25%</option> <option>30%</option> </select> </td> </tr> </thead> <tfoot> <tr> <td colspan="5"> <div class="pagination pagination-small"> <ul> <li><a href="#" class="prev"><i class="icon-chevron-left"></i></a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#" class="next"><i class="icon-chevron-right"></i></a></li> </ul> </div> <div class="pull-right filter"> <form> <span class="help-inline">Show</span> <select class="span1"> <option>10</option> <option>30</option> <option>50</option> <option>100</option> </select> <span class="help-inline">Properties</span> </form> </div> </td> </tr> </tfoot> <tbody class="products"> <tr class=""> <td><input type="checkbox" class="select-listing"></td> <td> <img class="property" src="/assets/images/filler.png" alt="filler image"> <div class="property-info"> <a href="#">Meadowlands #1</a> <span class="address">19833 Shady Ln...</span> </div> </td> <td> XJDHYE1<br> 177382910 </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span2"> <option>Pay per booking</option> <option>None</option> </select> </form> </div> <span class="single-product-selection" style=""> Pay per booking </span> </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span1"> <option>5%</option> <option>10%</option> <option>15%</option> <option>20%</option> <option>25%</option> <option>30%</option> </select> </form> </div> <span class="single-product-selection" style=""> 10% </span> </td> </tr> <tr class=""> <td><input type="checkbox" class="select-listing"></td> <td> <img class="property" src="/assets/images/filler.png" alt="filler image"> <div class="property-info"> <a href="#">hello1</a> <span class="address">address</span> </div> </td> <td> pid<br> haid </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span2"> <option>Pay per booking</option> <option>None</option> </select> </form> </div> <span class="single-product-selection" style=""> listingmodel </span> </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span1"> <option>5%</option> <option>10%</option> <option>15%</option> <option>20%</option> <option>25%</option> <option>30%</option> </select> </form> </div> <span class="single-product-selection" style=""> ppblevel </span> </td> </tr> <tr class=""> <td><input type="checkbox" class="select-listing"></td> <td> <img class="property" src="/assets/images/filler.png" alt="filler image"> <div class="property-info"> <a href="#">hello2</a> <span class="address">address</span> </div> </td> <td> pid<br> haid </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span2"> <option>Pay per booking</option> <option>None</option> </select> </form> </div> <span class="single-product-selection" style=""> listingmodel </span> </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span1"> <option>5%</option> <option>10%</option> <option>15%</option> <option>20%</option> <option>25%</option> <option>30%</option> </select> </form> </div> <span class="single-product-selection" style=""> ppblevel </span> </td> </tr> <tr class=""> <td><input type="checkbox" class="select-listing"></td> <td> <img class="property" src="/assets/images/filler.png" alt="filler image"> <div class="property-info"> <a href="#">hello3</a> <span class="address">address</span> </div> </td> <td> pid<br> haid </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span2"> <option>Pay per booking</option> <option>None</option> </select> </form> </div> <span class="single-product-selection" style="display: inline;"> listingmodel </span> </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span1"> <option>5%</option> <option>10%</option> <option>15%</option> <option>20%</option> <option>25%</option> <option>30%</option> </select> </form> </div> <span class="single-product-selection" style="display: inline;"> ppblevel </span> </td> </tr> <tr class=""> <td><input type="checkbox" class="select-listing"></td> <td> <img class="property" src="/assets/images/filler.png" alt="filler image"> <div class="property-info"> <a href="#">hello4</a> <span class="address">address</span> </div> </td> <td> pid<br> haid </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span2"> <option>Pay per booking</option> <option>None</option> </select> </form> </div> <span class="single-product-selection" style=""> listingmodel </span> </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span1"> <option>5%</option> <option>10%</option> <option>15%</option> <option>20%</option> <option>25%</option> <option>30%</option> </select> </form> </div> <span class="single-product-selection" style=""> ppblevel </span> </td> </tr> <tr class=""> <td><input type="checkbox" class="select-listing"></td> <td> <img class="property" src="/assets/images/filler.png" alt="filler image"> <div class="property-info"> <a href="#">world5</a> <span class="address">address</span> </div> </td> <td> pid<br> haid </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span2"> <option>Pay per booking</option> <option>None</option> </select> </form> </div> <span class="single-product-selection" style=""> listingmodel </span> </td> <td> <div class="single-product-filter" style="display: none;"> <form> <select class="span1"> <option>5%</option> <option>10%</option> <option>15%</option> <option>20%</option> <option>25%</option> <option>30%</option> </select> </form> </div> <span class="single-product-selection" style=""> ppblevel </span> </td> </tr> </tbody> </table><script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> 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 $(".single-product-filter").hide(); $(".single-product-selection").show(); Test 2 Title Async (check if this is an asynchronous test) Code var listings = $(".select-listing:checked"); listings.closest("tr").find(".single-product-filter").hide(); listings.closest("tr").find(".single-product-selection").show(); Test 3 Title Async (check if this is an asynchronous test) Code var listings = $(".select-listing:checked"); listings.parent().parent().find(".single-product-filter").hide(); listings.parent().parent().find(".single-product-selection").show();