Resolve complex arguments to LESS helper functions
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 23 Apr 2014 02:16:53 +0000 (19:16 -0700)
committerOri.livneh <ori@wikimedia.org>
Wed, 23 Apr 2014 18:50:02 +0000 (18:50 +0000)
commitefabc31da242c7596116e5851a5384737ce3113e
tree16ddf917915b84e1dd9fd4dff6d95870d2cd70d5
parent6a345124efc7c0d6c5747199d4eec417d152b3e7
Resolve complex arguments to LESS helper functions

The icons in Flow and the Compact Personal Bar beta feature are missing,
their generated background-image 7 is empty.

The lessphp implementation passes full data frames into the helper
functions.  Utilize the now-public compileValue method of less
to evaluate the data frame into a string.

Additionally adds a small abstraction to run pairs of less/css files
as unit tests by executing the less file and comparing it to the
equivalent css file.

Change-Id: I1704f84638d86a0e6e6b9c190972ab19180bd484
includes/resourceloader/ResourceLoaderLESSFunctions.php
tests/phpunit/includes/resourceloader/ResourceLoaderLESSTest.php [new file with mode: 0644]
tests/phpunit/includes/resourceloader/fixtures/001-embeddable.css [new file with mode: 0644]
tests/phpunit/includes/resourceloader/fixtures/001-embeddable.less [new file with mode: 0644]