Discovered in #2395853: Split system.module.css and system.theme.css files into SMACSS style components - see the changes it makes to SearchQueryAlterTest.
Dumping the result of AssertContentTrait::getTextContent() reveals it contains:
@import url("http://drupal8alt.dev/core/assets/vendor/normalize-css/normalize.css?nsnjb3");
@import url("http://drupal8alt.dev/core/modules/system/css/components/ajax-progress.module.css?nsnjb3");
@import url("http://drupal8alt.dev/core/modules/system/css/components/align.module.css?nsnjb3");
@import url("http://drupal8alt.dev/core/modules/system/css/components/autocomplete-loading.module.css?nsnjb3");
@import url("http://drupal8alt.dev/core/modules/system/css/components/fieldgroup.module.css?nsnjb3");
@import url("http://drupal8alt.dev/core/modules/system/css/components/container-inline.module.css?nsnjb3");
@import url("http://drupal8alt.dev/core/modules/system/css/components/clearfix.module.css?nsnjb3");
That should not be there.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2546582.7.patch | 2.11 KB | alexpott |
| #7 | 2-7-interdiff.txt | 847 bytes | alexpott |
| #2 | 2546582.2.patch | 2 KB | alexpott |
| #2 | 2546582.2.test-only.patch | 1.22 KB | alexpott |
Comments
Comment #2
alexpottComment #3
dawehnerWhat about just use the stuff inside the body tag instead?
Comment #4
alexpottre #3 Well that assumes a body tag has been used.... perhaps setRawContent was used to set theme output.
Comment #5
dawehnerLet's add the @covers ::getTextContent method or did you skipped that because of the protected method?
Comment #7
alexpottThanks @dawehner
Comment #8
wim leersNice discovery!
Patch looks great. My only question was identical to #3, and already answered in #4.
Comment #9
dawehner+1
Comment #10
webchickCommitted and pushed to 8.0.x. Thanks!