|
332 | 332 | $searchPage.find('input').val('at'); |
333 | 333 | $searchPage.find('input').trigger('change'); |
334 | 334 |
|
335 | | - setTimeout(function() { |
336 | | - same($searchPage.find('li.ui-screen-hidden').length, 2); |
337 | | - start(); |
338 | | - }, 1000); |
| 335 | + same($searchPage.find('li.ui-screen-hidden').length, 2); |
| 336 | + start(); |
339 | 337 | } |
340 | 338 | ]); |
341 | 339 | }); |
|
351 | 349 | $searchPage.find('input').val('a'); |
352 | 350 | $searchPage.find('input').trigger('change'); |
353 | 351 |
|
354 | | - setTimeout(function() { |
355 | | - same($searchPage.find("li[style^='display: none;']").length, 0); |
356 | | - start(); |
357 | | - }, 1000); |
| 352 | + same($searchPage.find("li[style^='display: none;']").length, 0); |
| 353 | + start(); |
358 | 354 | } |
359 | 355 | ]); |
360 | 356 | }); |
361 | 357 |
|
| 358 | + asyncTest( "Filter works fine with \\W- or regexp-special-characters", function() { |
| 359 | + var $searchPage = $(searchFilterId); |
| 360 | + $.testHelper.pageSequence([ |
| 361 | + function() { |
| 362 | + $.testHelper.openPage(searchFilterId); |
| 363 | + }, |
| 364 | + |
| 365 | + function() { |
| 366 | + $searchPage.find('input').val('*'); |
| 367 | + $searchPage.find('input').trigger('change'); |
| 368 | + |
| 369 | + same($searchPage.find('li.ui-screen-hidden').length, 4); |
| 370 | + start(); |
| 371 | + } |
| 372 | + ]); |
| 373 | + }); |
| 374 | + |
362 | 375 | test( "Refresh applies thumb styling", function(){ |
363 | 376 | var ul = $('.ui-page-active ul'); |
364 | 377 |
|
|
441 | 454 | $li = $page.find( "li:visible" ); |
442 | 455 | ok($li.first().hasClass( "ui-corner-top" ), $li.length+" li elements: First visible element should have class ui-corner-top"); |
443 | 456 | ok($li.last().hasClass( "ui-corner-bottom" ), $li.length+" li elements: Last visible element should have class ui-corner-bottom"); |
444 | | - } |
| 457 | + }; |
445 | 458 |
|
446 | 459 | $.testHelper.pageSequence([ |
447 | 460 | function() { |
|
0 commit comments