mediawiki-extensions-Echo/tests/qunit/index.js
Amir Sarabadani 532fdbf294 Stop using ResourceLoaderTestModules hook
This hook is deprecated and we should use QUnitTestModule in extension.json instead

Bug: T232875
Change-Id: I7b3e22856adc64ee36e0b696e2371bb9673e4899
2020-08-03 13:18:29 +02:00

21 lines
927 B
JavaScript

mw.template.add( 'ext.echo.mobile', 'NotificationBadge.mustache',
mw.template.get( 'test.Echo', 'NotificationBadge.mustache' ).getSource()
);
mw.loader.using( 'mobile.startup' ).then( function () {
require( './mobile/test_NotificationBadge.js' );
} );
mw.loader.using( 'ext.echo.dm' ).then( function () {
require( './model/test_mw.echo.dm.BundleNotificationItem.js' );
require( './model/test_mw.echo.dm.CrossWikiNotificationItem.js' );
require( './model/test_mw.echo.dm.FiltersModel.js' );
require( './model/test_mw.echo.dm.NotificationGroupsList.js' );
require( './model/test_mw.echo.dm.NotificationItem.js' );
require( './model/test_mw.echo.dm.NotificationsList.js' );
require( './model/test_mw.echo.dm.PaginationModel.js' );
require( './model/test_mw.echo.dm.SeenTimeModel.js' );
require( './model/test_mw.echo.dm.SourcePagesModel.js' );
require( './model/test_mw.echo.dm.UnreadNotificationCounter.js' );
} );