nextcloud/apps/files
Daniel Calviño Sánchez 1bcba56d8f Fix setup to test the breadcrumbs menu
The "Shows only items not in the breadcrumb" test was failing when run
on Firefox, but not on PhantomJS. This was caused by the differences in
the starting width between both browsers and an incorrect setup of the
test (the width set for the crumbs was overriden when the breadcrumbs
were rendered again, and the breadcrumb was resized to 300 from an
indeterminate initial width).

Now the crumbs are rendered and then its width, padding and margin are
set to a known value. Then it is resized to 1000px, which ensures that
there will be enough room for all the crumbs and thus the menu will be
hidden, and finally it is resized to 300, which causes the middle crumb
to be hidden and the menu to be shown.

Note, however, that the test now always fails, no matter if it is run on
PhantomJS or on Firefox; if the menu crumb is hidden when "_updateMenu"
is called it will show it, but it will also wrongly try to add the menu
itself to the menu. As the "crumb-id" of the menu crumb is "-1" this
causes the last regular crumb to be added to the menu. This will be
fixed with other related issues in the next commit.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-28 15:03:26 +01:00
..
ajax Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
appinfo Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
composer Update composer 2018-01-12 23:16:10 +01:00
css Merge pull request #7634 from Abijeet/bug-7539 2018-01-03 08:28:26 +01:00
img Add some whitespace around change.svg icon 2018-02-22 15:46:21 +01:00
js Take padding and margins of crumbs into account 2018-02-28 15:03:26 +01:00
l10n [tx-robot] updated from transifex 2018-02-28 01:12:31 +00:00
lib Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
templates Split move and copy operations 2018-02-15 18:51:12 +01:00
tests Fix setup to test the breadcrumbs menu 2018-02-28 15:03:26 +01:00
download.php Use normal header() calls instead of private method calls 2018-02-19 09:40:25 +01:00
list.php Remove upload_limit in files app as it is not needed with PUT upload (#26069) 2016-11-02 20:43:35 +01:00
recentlist.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
simplelist.php Fix apps/ 2016-07-21 18:13:57 +02:00