Skip to content

Commit

Permalink
update html compress
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomarinho committed Sep 23, 2017
1 parent f599c6b commit f769c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Middleware/CollapseWhitespaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function getMiddleware()

public function testApply()
{
$compress = '<!doctype html><html class="no-js" lang=""><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title></title><meta name="description" content=""><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="manifest" href="site.webmanifest"><link rel="apple-touch-icon" href="icon.png"><!-- Place favicon.ico in the root directory --><link rel="stylesheet" href="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/css/normalize.css"><link rel="stylesheet" href="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/css/main.css"></head><body><!--[if lte IE 9]><p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p><![endif]--><!-- Add your site or application content here --><p>Hello world! This is HTML5 Boilerplate.</p><script src="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/vendor/modernizr-3.5.0.min.js"></script><script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script><script>window.jQuery || document.write(\'<script src="js/vendor/jquery-3.2.1.min.js"><\/script>\')</script><script src="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/plugins.js"></script><script src="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/main.js"></script><!-- Google Analytics: change UA-XXXXX-Y to be your site\'s ID. --><script> window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date; ga(\'create\',\'UA-XXXXX-Y\',\'auto\');ga(\'send\',\'pageview\') </script><script src="https://www.google-analytics.com/analytics.js" async defer></script></body></html>';
$compress = '<!doctype html><html class="no-js" lang=""><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title></title><meta name="description" content=""><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="manifest" href="site.webmanifest"><link rel="apple-touch-icon" href="icon.png"><!-- Place favicon.ico in the root directory --><link rel="stylesheet" href="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/css/normalize.css"><link rel="stylesheet" href="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/css/main.css"></head><body><!--[if lte IE 9]><p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p><![endif]--><!-- Add your site or application content here --><p>Hello world! This is HTML5 Boilerplate.</p><img src="http://emblemsbf.com/img/18346.jpg" width="250" style="height:300px; padding:10px" /><script src="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/vendor/modernizr-3.5.0.min.js"></script><script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script><script>window.jQuery || document.write(\'<script src="js/vendor/jquery-3.2.1.min.js"><\/script>\')</script><script src="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/plugins.js"></script><script src="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/main.js"></script><!-- Google Analytics: change UA-XXXXX-Y to be your site\'s ID. --><script> window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date; ga(\'create\',\'UA-XXXXX-Y\',\'auto\');ga(\'send\',\'pageview\') </script><script src="https://www.google-analytics.com/analytics.js" async defer></script></body></html>';
$this->assertSame($compress, $this->middleware->apply( $this->html ));
}
}

0 comments on commit f769c3e

Please sign in to comment.