diff --git a/reporter/html.js b/reporter/html.js
index 96d86d6e0..3564a56ab 100644
--- a/reporter/html.js
+++ b/reporter/html.js
@@ -724,7 +724,10 @@ export function escapeText( s ) {
appendTest( details.name, details.testId, details.module );
running = id( "qunit-testresult-display" );
+
if ( running ) {
+ addClass( running, "running" );
+
bad = QUnit.config.reorder && details.previousFailure;
running.innerHTML = [
@@ -848,6 +851,8 @@ export function escapeText( s ) {
testItem = id( "qunit-test-output-" + details.testId );
+ removeClass( testItem, "running" );
+
if ( details.failed > 0 ) {
status = "failed";
} else if ( details.todo ) {
diff --git a/test/reporter-html/reporter-html.js b/test/reporter-html/reporter-html.js
index 59c91ecd0..4b9b294b7 100644
--- a/test/reporter-html/reporter-html.js
+++ b/test/reporter-html/reporter-html.js
@@ -31,6 +31,12 @@ QUnit.test( "", function( asse
QUnit.module( "display test info" );
+QUnit.test( "Testing for running class", function( assert ) {
+ assert.expect( 1 );
+
+ assert.equal( document.querySelectorAll( ".running" ).length, 1 );
+} );
+
QUnit.test( "running test name displayed", function( assert ) {
assert.expect( 2 );