mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-12 23:12:13 +09:00
Handle the special case of Context::loadFile($filename, true)
https://xetown.com/questions/1793899
This commit is contained in:
parent
5e914791e2
commit
d54eb4f3d5
2 changed files with 13 additions and 4 deletions
|
|
@ -200,13 +200,15 @@ class FrontEndFileHandlerTest extends \Codeception\Test\Unit
|
|||
public function testMedia()
|
||||
{
|
||||
$handler = new FrontEndFileHandler();
|
||||
$handler->loadFile(array('./common/css/common.css', 'all'));
|
||||
$handler->loadFile(array('./common/css/common.css', 'screen'));
|
||||
$handler->loadFile(array('./common/css/common.css', 'handled'));
|
||||
$handler->loadFile(array('./common/css/common.css', 'print'));
|
||||
$handler->loadFile(array('./common/css/common.css', 'handheld'));
|
||||
$handler->loadFile(array('./common/css/common.css', true));
|
||||
|
||||
$expected[] = array('file' => $this->baseurl . 'common/css/common.css', 'media'=>'all');
|
||||
$expected[] = array('file' => $this->baseurl . 'common/css/common.css', 'media'=>'screen');
|
||||
$expected[] = array('file' => $this->baseurl . 'common/css/common.css', 'media'=>'handled');
|
||||
$expected[] = array('file' => $this->baseurl . 'common/css/common.css', 'media'=>'print');
|
||||
$expected[] = array('file' => $this->baseurl . 'common/css/common.css', 'media'=>'handheld');
|
||||
$expected[] = array('file' => $this->baseurl . 'common/css/common.css', 'media'=>'all');
|
||||
$this->assertEquals($expected, $handler->getCssFileList());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue