From edbcd3951b7b27a892861232456047df07d84808 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 2 May 2018 20:20:41 +0200 Subject: [PATCH] fix: disable autocomplete on module search input --- reporter/html.js | 1 + test/reporter-html/reporter-html.js | 7 +++++++ 2 files changed, 8 insertions(+) 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" ); +} );