jenkins-bot has submitted this change and it was merged.

Change subject: test: Suppress mw.log.error output in qunit
......................................................................


test: Suppress mw.log.error output in qunit

In the console these errors (while not fatal) are confusing and
interrupt the progress dots in the command-line reporter for karma-qunit.

> ................
> ERROR: '[earthquake] Url exceeds maximum length'
> .
> ERROR: '[earthquake] Url exceeds maximum length'
> ..................................................

Change-Id: Ia53442010cef24c9e345ce2b7f082b2d1a42d1f7
---
M tests/ext.eventLogging.tests.js
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/ext.eventLogging.tests.js b/tests/ext.eventLogging.tests.js
index b0279d9..10c9251 100644
--- a/tests/ext.eventLogging.tests.js
+++ b/tests/ext.eventLogging.tests.js
@@ -74,11 +74,13 @@
 
        QUnit.module( 'ext.eventLogging', QUnit.newMwEnvironment( {
                setup: function () {
+                       this.suppressWarnings();
                        mw.eventLog.declareSchema( 'earthquake', 
earthquakeSchema );
                        mw.config.set( 'wgEventLoggingBaseUri', '#' );
                },
                teardown: function () {
                        mw.eventLog.schemas = {};
+                       this.restoreWarnings();
                }
        } ) );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/206034
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia53442010cef24c9e345ce2b7f082b2d1a42d1f7
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to