@@ -77,6 +77,42 @@ public function testJoinFilesOffInOneService()
7777 $ this ->assertFalse ($ this ->container ->getService ('webloader.cssJoinOffCompiler ' )->getJoinFiles ());
7878 }
7979
80+ public function testAsyncOn ()
81+ {
82+ $ this ->prepareContainer (array (
83+ __DIR__ . '/../fixtures/extension.neon ' ,
84+ __DIR__ . '/../fixtures/extensionAsyncTrue.neon ' ,
85+ ));
86+ $ this ->assertTrue ($ this ->container ->getService ('webloader.jsDefaultCompiler ' )->isAsync ());
87+ }
88+
89+ public function testAsyncOff ()
90+ {
91+ $ this ->prepareContainer (array (
92+ __DIR__ . '/../fixtures/extension.neon ' ,
93+ __DIR__ . '/../fixtures/extensionAsyncFalse.neon ' ,
94+ ));
95+ $ this ->assertFalse ($ this ->container ->getService ('webloader.jsDefaultCompiler ' )->isAsync ());
96+ }
97+
98+ public function testDeferOn ()
99+ {
100+ $ this ->prepareContainer (array (
101+ __DIR__ . '/../fixtures/extension.neon ' ,
102+ __DIR__ . '/../fixtures/extensionDeferTrue.neon ' ,
103+ ));
104+ $ this ->assertTrue ($ this ->container ->getService ('webloader.jsDefaultCompiler ' )->isDefer ());
105+ }
106+
107+ public function testDeferOff ()
108+ {
109+ $ this ->prepareContainer (array (
110+ __DIR__ . '/../fixtures/extension.neon ' ,
111+ __DIR__ . '/../fixtures/extensionDeferFalse.neon ' ,
112+ ));
113+ $ this ->assertFalse ($ this ->container ->getService ('webloader.jsDefaultCompiler ' )->isDefer ());
114+ }
115+
80116 public function testExtensionName ()
81117 {
82118 $ tempDir = __DIR__ . '/../temp ' ;
0 commit comments