File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ class TestSearch extends WPTFlags(PolymerElement) {
510
510
}
511
511
512
512
latchQuery ( ) {
513
- this . query = ( this . queryInput || '' ) . toLowerCase ( ) ;
513
+ this . query = ( this . queryInput || '' ) ;
514
514
}
515
515
516
516
commitQuery ( ) {
Original file line number Diff line number Diff line change 17
17
< script type ="module ">
18
18
import { AllBrowserNames } from '../product-info.js' ;
19
19
import { TestSearch } from '../test-search.js' ;
20
+ import { waitingOn } from './util/helpers.js' ;
20
21
21
22
suite ( '<test-search>' , ( ) => {
22
23
suite ( 'Parser/interpreter' , ( ) => {
456
457
} ) ;
457
458
} ) ;
458
459
} ) ;
460
+ suite ( 'TestSearch.prototype.*' , ( ) => {
461
+ suite ( 'async latchQuery()' , ( ) => {
462
+ let search_fixture ;
463
+
464
+ setup ( ( ) => {
465
+ search_fixture = fixture ( 'test-search-fixture' ) ;
466
+ } ) ;
467
+
468
+ test ( 'does not lowerCase' , ( ) => {
469
+ search_fixture . queryInput = "shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html" ;
470
+ return waitingOn ( ( ) => search_fixture . structuredQuery )
471
+ . then ( ( ) => {
472
+ assert . equal ( search_fixture . structuredQuery , {
473
+ exists : [ { pattern : 'shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html' } ]
474
+ } ) ;
475
+ } ) ;
476
+ } ) ;
477
+ } ) ;
478
+ } ) ;
459
479
} ) ;
460
480
</ script >
461
481
</ body >
You can’t perform that action at this time.
0 commit comments