File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 2121
2222 <!-- Add your site or application content here -->
2323 < p > Hello world! This is HTML5 Boilerplate.</ p >
24+
25+ < img src ="http://emblemsbf.com/img/18346.jpg " width ="250 " style ="height:300px; padding:10px " />
26+
2427 < script src ="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/vendor/modernizr-3.5.0.min.js "> </ script >
2528 < script src ="https://code.jquery.com/jquery-3.2.1.min.js " integrity ="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4= " crossorigin ="anonymous "> </ script >
2629 < script > window . jQuery || document . write ( '<script src="js/vendor/jquery-3.2.1.min.js"><\/script>' ) </ script >
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace RenatoMarinho \LaravelPageSpeed \Test \Middleware ;
4+
5+ use RenatoMarinho \LaravelPageSpeed \Middleware \TrimUrls ;
6+ use RenatoMarinho \LaravelPageSpeed \Test \TestCase ;
7+
8+ class TrimUrlsTest extends TestCase
9+ {
10+ public $ middleware ;
11+
12+ public function getMiddleware ()
13+ {
14+ $ this ->middleware = new TrimUrls ();
15+ }
16+
17+ public function testApply ()
18+ {
19+ $ html = $ this ->middleware ->apply ($ this ->html );
20+
21+ $ this ->assertNotContains ("https:// " , $ html );
22+ $ this ->assertNotContains ("http:// " , $ html );
23+ $ this ->assertContains ("//code.jquery.com/jquery-3.2.1.min.js " , $ html );
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments