mediawiki-extensions-Visual.../modules/ve-mw/tests
Thiemo Kreuz 06cf00f4c6 Rename and document select/focus events in template dialog
I tried hard to come up with the best possible names. Some of the
criteria I used:
* Longer and more unique is better. This makes it much easier to
  e.g. search for the event name.
* The term "part" should only be used for top-level parts. While
  template parameters have a unique id, they are not a subclass
  of …TransclusionPartModel and therefor not "parts".
* BookletLayout manages "pages" via "page names".
  * The page names of top-level parts are identical with the part
    id, see ve.ui.MWTemplateDialog.getPageFromPart.
  * The page names of parameters are identical with the parameter
    model id, see ve.ui.MWTemplateDialog.onAddParameter.

Some code knows parameter ids, but not what pages are. Other code
knows page names, but not what parameters are. The transition
currently happens in the …OutlineContainerWidget. We might want
to move this point up to the …TemplateDialog. But I would argue
this is good enough for now and can be changed later, if needed.

Bug: T285323
Change-Id: Iab2805b3203988db400b67c8d00e48905fdc53dc
2021-09-01 16:23:59 +00:00
..
ce Remove not needed boilerplate from QUnit tests 2021-08-25 12:01:14 +00:00
dm Tests for some trivial but critical template model methods 2021-08-27 12:49:06 +00:00
init/targets Update more test code to use ES6 syntax 2021-04-30 10:08:45 +00:00
ui Rename and document select/focus events in template dialog 2021-09-01 16:23:59 +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