예제 #1
0
 function __construct()
 {
     parent::__construct();
     ResourceLoader::loadResource("/static/css/dropzone.css");
     ResourceLoader::loadResource("/static/scripts/dropzone.js");
     ResourceLoader::loadJquery();
     ResourceLoader::loadJqueryUI();
 }
예제 #2
0
    public function testLoadingStylesheetTwice()
    {
        ResourceLoader::clearResources();
        ResourceLoader::loadResource("/css/base.css");
        ResourceLoader::loadResource("/css/base.css");
        $scripts = ResourceLoader::getResourceInjectionHtml();
        $this->assertEquals('<script src="/client/resource-manager.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="/css/base.css" />', $scripts);
    }
예제 #3
0
    public function testLoadingStylesheetTwice()
    {
        ResourceLoader::clearResources();
        ResourceLoader::loadResource("/css/base.css");
        ResourceLoader::loadResource("/css/base.css");
        $scripts = ResourceLoader::getResourceInjectionHtml();
        $fileName = "";
        $pathToFile = "resources/resource-manager.js";
        if (file_exists($pathToFile)) {
            $fileName = filemtime($pathToFile);
        }
        $this->assertEquals('<script src="/deployed/resources/resource-manager.js?' . $fileName . '.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="/css/base.css" />', $scripts);
    }
 function __construct()
 {
     ResourceLoader::loadResource("/static/css/base.css");
 }
 function __construct()
 {
     ResourceLoader::loadResource("/static/css/bootstrap.css");
     ResourceLoader::loadResource("/static/css/base.css");
     ResourceLoader::loadResource("https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css");
 }