mediawiki-extensions-Popups/tests/node-qunit/gateway
Thiemo Kreuz 7d2de31fd9 Don't show preview popups with no visible content
I played around with a lot of options, and settled with:
* When there is nothing but text, but the text is all
  whitespace, don't show it.
* Make sure an <img> with no text is still shown. This is done
  by checking for child elements.

A possible future enhancement could be to check the visible
width of the element as well. Unfortunately this fails in
tests. Everything is 0 in tests.

Bug: T240543
Depends-On: I2929a86b6a09f3b72e5e2f4151cb13f52446897d
Change-Id: I94ed575abcd69241c82480ade07017e61cc26c9c
2020-10-30 11:19:52 +01:00
..
mediawiki.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
page.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
reference.test.js Don't show preview popups with no visible content 2020-10-30 11:19:52 +01:00
rest.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00