OliverO2
f510e136c8
Add {'loading': 'inline'} option for Js and CSS assets ( #1377 )
...
* Assets.php: Extract common functionaly of addCss() and addJs() into
addTo(), make css() and js() honor $attributes['loading'],
make pipelineCss() and pipelineJs() return generated content
instead of URL depending on new option $returnURL.
* AssetsTest.php: Accept new 'loading' option for CSS, add tests for
adding and pipelining local and remote assets with inline loading.
2017-04-04 11:25:39 -06:00
Andy Miller
07d95d189c
Added logic to not add timestamp on remote references.
2016-08-01 16:20:02 -06:00
Benny
1fb2d7333c
Feature: Better assets pipelining ( #917 )
...
* Add smart assets pipeline generation
* Drop cache key
* Fix absolute path generation in `buildLocalLink`
* Add unit test case
2016-07-11 13:06:05 -06:00
Flavio Copes
c47c4bcbf5
Test adding rel attribute to CSS assets group
2016-04-07 13:28:55 +02:00
Flavio Copes
6791244e38
Merge branch 'develop' into feature/reset-grav-every-test
2016-02-25 16:52:56 +01:00
Flavio Copes
a1d0494ea2
✅ Test adding media queries
2016-02-14 08:58:31 +01:00
Flavio Copes
54f959b462
Reinitialize Grav on every test
...
Don't need to worry about changing configuration or pages or anything
in a test, every test method will start with a clean slate
2016-02-04 14:12:27 +01:00
Flavio Copes
9d67f1ac33
✅ Fix assertSame param order
2016-02-01 18:55:33 +01:00
Flavio Copes
c307f63e1f
✅ Cleanup tests
2016-01-29 18:32:52 +01:00
Flavio Copes
1494247c85
✅ Tests code cleanup
2016-01-29 18:32:52 +01:00
Flavio Copes
cbb1cc2b85
✅ Test using Streams in Assets::addDir()
2016-01-27 12:09:04 +01:00
Flavio Copes
2721e681ef
✅ Test Assets::addDirCss(), Assets::addDirJs(), Assets::addDir()
2016-01-27 11:46:53 +01:00
Flavio Copes
dec78b9cbd
✅ Test Assets::resetJs() and Assets::resetCss()
...
Also fix closing parentheses. Added PHPDoc
2016-01-27 10:51:04 +01:00
Flavio Copes
4ef5236a53
✅ Test Assets::registerCollection()
2016-01-27 10:26:03 +01:00
Flavio Copes
2a06cfc5e2
✅ Test Assets::reset()
2016-01-27 10:25:53 +01:00
Flavio Copes
60876f2f09
✅ Test Assets::exists()
2016-01-27 10:24:57 +01:00
Flavio Copes
74fdca79f0
✅ Test Assets::getCollections()
2016-01-27 10:24:47 +01:00
Flavio Copes
c3c7c78e46
✅ Test Assets::getCss() and Assets::getJs()
2016-01-27 09:25:07 +01:00
Flavio Copes
febe3123dd
✅ Use new jQuery filename
2016-01-26 18:02:27 +01:00
Flavio Copes
23ad20ed13
✅ Test addAsyncJs addInlineCss, addInlineJs
2016-01-26 18:02:03 +01:00
Flavio Copes
27af9432e0
🚨 Added a bunch of tests to make sure Assets addJs and addCSS works as expected
2016-01-22 10:38:56 +01:00
Flavio Copes
722bc3e74b
More testing for assets
2016-01-20 11:35:40 +01:00
Flavio Copes
1616fadfe9
Started testing assets
2016-01-20 10:55:31 +01:00