diff --git a/reporter/html.js b/reporter/html.js index 90488b377..95fc74c1d 100644 --- a/reporter/html.js +++ b/reporter/html.js @@ -339,6 +339,7 @@ export function escapeText( s ) { dirty = false; moduleSearch.id = "qunit-modulefilter-search"; + moduleSearch.autocomplete = "off"; addEvent( moduleSearch, "input", searchInput ); addEvent( moduleSearch, "input", searchFocus ); addEvent( moduleSearch, "focus", searchFocus ); diff --git a/test/reporter-html/reporter-html.js b/test/reporter-html/reporter-html.js index 250b9d620..59c91ecd0 100644 --- a/test/reporter-html/reporter-html.js +++ b/test/reporter-html/reporter-html.js @@ -129,3 +129,10 @@ QUnit.test( "logs location", function( assert ) { "Source references to the current file and line number" ); } ); + + +QUnit.test( "disables autocomplete on module filter", function( assert ) { + var moduleFilterSearch = document.getElementById( "qunit-modulefilter-search" ); + + assert.equal( moduleFilterSearch.autocomplete, "off" ); +} );