mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
Fix TemplateParserV1 and FrontEndFileHandler not recognizing Google webfonts '.../css2?...' URL as CSS
This commit is contained in:
parent
b591f023ef
commit
e2cfa524d0
4 changed files with 30 additions and 2 deletions
|
|
@ -161,6 +161,17 @@ class FrontEndFileHandlerTest extends \Codeception\Test\Unit
|
|||
$this->assertEquals($expected, $handler->getCssFileList());
|
||||
}
|
||||
|
||||
public function testExternalFile5()
|
||||
{
|
||||
$handler = new FrontEndFileHandler();
|
||||
$handler->loadFile(array('https://fonts.googleapis.com/css?family=Montserrat&display=swap'));
|
||||
$handler->loadFile(array('//fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap'));
|
||||
|
||||
$expected[] = array('file' => 'https://fonts.googleapis.com/css?family=Montserrat&display=swap', 'media'=>'all');
|
||||
$expected[] = array('file' => '//fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap', 'media'=>'all');
|
||||
$this->assertEquals($expected, $handler->getCssFileList());
|
||||
}
|
||||
|
||||
public function testPathConversion()
|
||||
{
|
||||
$handler = new FrontEndFileHandler();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue