Index: trunk/phase3/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js |
— | — | @@ -78,17 +78,11 @@ |
79 | 79 | |
80 | 80 | // Give caller a chance to set up sorting and manipulate the table. |
81 | 81 | callback( $table ); |
82 | | - |
83 | | - // Table sorting is done asynchronously in the event loop by running |
84 | | - // it through a setTimeout({},0); we need to do the same so we can |
85 | | - // check our results after. |
86 | | - stop( 1000 ); // timeout in 1s |
87 | | - setTimeout(function() { |
88 | | - start(); // continue the async tests... |
89 | 82 | |
90 | | - var extracted = tableExtract( $table ); |
91 | | - deepEqual( extracted, expected, msg ) |
92 | | - }, 150); |
| 83 | + // Table sorting is done synchronously; if it ever needs to change back |
| 84 | + // to asynchronous, we'll need a timeout or a callback here. |
| 85 | + var extracted = tableExtract( $table ); |
| 86 | + deepEqual( extracted, expected, msg ) |
93 | 87 | }); |
94 | 88 | }; |
95 | 89 | |