Skip to content

Commit

Permalink
HTML Reporter: Disable autocomplete on module search input (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
makepanic authored and trentmwillis committed May 7, 2018
1 parent 0a391ac commit 397c078
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions reporter/html.js
Expand Up @@ -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 );
Expand Down
7 changes: 7 additions & 0 deletions test/reporter-html/reporter-html.js
Expand Up @@ -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" );
} );

0 comments on commit 397c078

Please sign in to comment.