mediawiki-extensions-Visual.../modules/ve-mw/tests
Thiemo Kreuz 22757fa901 Fix and test page name splitting code in template dialog
In JavaScript .split() behaves different, compared to PHP. In
PHP the last element contains the rest of the string. In
JavaScript the rest of the string is discarded. The limit acts
as if the array is truncated. That's why we can reduce the
number in

  'foo/bar'.split( '/', 1 )[ 0 ]

to 1, as we are only interested in the element "foo".

The same code in the other class is currently not covered by a
test. But changing it accordingly should be obviously fine now.

Change-Id: I20c27d480ddb1799df9eb1e5bc119b724e80653d
2021-09-11 17:40:39 +00:00
..
ce Remove not needed boilerplate from QUnit tests 2021-08-25 12:01:14 +00:00
dm Add tests for .containsValuableData() methods 2021-09-10 15:38:28 +00:00
init/targets Update more test code to use ES6 syntax 2021-04-30 10:08:45 +00:00
ui Fix and test page name splitting code in template dialog 2021-09-11 17:40:39 +00:00
.eslintrc.json Update all tests in the ve-mw module to use ES6 syntax 2021-04-30 08:07:54 +00:00
mw-preload.js
ve.test.utils.js Ensure correct classes are added to surfaces 2021-05-23 20:04:28 +01:00