Skip to content

Commit 424108b

Browse files
committed
Fix web-platform-tests#3009: unable to search for mixed case filenames
1 parent 3cdefdd commit 424108b

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

webapp/components/test-search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ class TestSearch extends WPTFlags(PolymerElement) {
510510
}
511511

512512
latchQuery() {
513-
this.query = (this.queryInput || '').toLowerCase();
513+
this.query = (this.queryInput || '');
514514
}
515515

516516
commitQuery() {

webapp/components/test/test-search.html

+20
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<script type="module">
1818
import { AllBrowserNames } from '../product-info.js';
1919
import { TestSearch } from '../test-search.js';
20+
import { waitingOn } from './util/helpers.js';
2021

2122
suite('<test-search>', () => {
2223
suite('Parser/interpreter', () => {
@@ -456,6 +457,25 @@
456457
});
457458
});
458459
});
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+
});
459479
});
460480
</script>
461481
</body>

0 commit comments

Comments
 (0)