File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ protected function tearDown(): void
4343 */
4444 public function testGetDisplay (): void
4545 {
46+ $ this ->object ->addFile ('vendor/codemirror/lib/codemirror.js ' );
4647 $ this ->object ->addFile ('common.js ' );
4748
4849 $ actual = $ this ->object ->getDisplay ();
@@ -51,8 +52,16 @@ public function testGetDisplay(): void
5152 'src="js/dist/common.js?v= ' . rawurlencode (Version::VERSION ) . '" ' ,
5253 $ actual
5354 );
54- $ this ->assertStringContainsString ('.add( \'common.js \', 1) ' , $ actual );
55+ $ this ->assertStringContainsString (
56+ 'window.AJAX.scriptHandler.add( \'vendor\/codemirror\/lib\/codemirror.js \', false); ' ,
57+ $ actual
58+ );
59+ $ this ->assertStringContainsString ('window.AJAX.scriptHandler.add( \'common.js \', true); ' , $ actual );
5560 $ this ->assertStringContainsString ('window.AJAX.fireOnload( \'common.js \') ' , $ actual );
61+ $ this ->assertStringNotContainsString (
62+ 'window.AJAX.fireOnload( \'vendor\/codemirror\/lib\/codemirror.js \') ' ,
63+ $ actual
64+ );
5665 }
5766
5867 /**
You can’t perform that action at this time.
0 commit comments