Browse Source

Fixed test break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
f130dca199
  1. 24
      tests/unit/framework/console/controllers/AssetControllerTest.php

24
tests/unit/framework/console/controllers/AssetControllerTest.php

@ -264,40 +264,40 @@ class AssetControllerTest extends TestCase
{ {
return [ return [
[ [
'.published-same-dir-class {background-image: url(published_same_dir.png];}', '.published-same-dir-class {background-image: url(published_same_dir.png);}',
'/test/base/path/assets/input', '/test/base/path/assets/input',
'/test/base/path/assets/output', '/test/base/path/assets/output',
'.published-same-dir-class {background-image: url(../input/published_same_dir.png];}', '.published-same-dir-class {background-image: url(../input/published_same_dir.png);}',
], ],
[ [
'.published-relative-dir-class {background-image: url(../img/published_relative_dir.png];}', '.published-relative-dir-class {background-image: url(../img/published_relative_dir.png);}',
'/test/base/path/assets/input', '/test/base/path/assets/input',
'/test/base/path/assets/output', '/test/base/path/assets/output',
'.published-relative-dir-class {background-image: url(../img/published_relative_dir.png];}', '.published-relative-dir-class {background-image: url(../img/published_relative_dir.png);}',
], ],
[ [
'.static-same-dir-class {background-image: url(\'static_same_dir.png\'];}', '.static-same-dir-class {background-image: url(\'static_same_dir.png\');}',
'/test/base/path/css', '/test/base/path/css',
'/test/base/path/assets/output', '/test/base/path/assets/output',
'.static-same-dir-class {background-image: url(\'../../css/static_same_dir.png\'];}', '.static-same-dir-class {background-image: url(\'../../css/static_same_dir.png\');}',
], ],
[ [
'.static-relative-dir-class {background-image: url("../img/static_relative_dir.png"];}', '.static-relative-dir-class {background-image: url("../img/static_relative_dir.png");}',
'/test/base/path/css', '/test/base/path/css',
'/test/base/path/assets/output', '/test/base/path/assets/output',
'.static-relative-dir-class {background-image: url("../../img/static_relative_dir.png"];}', '.static-relative-dir-class {background-image: url("../../img/static_relative_dir.png");}',
], ],
[ [
'.absolute-url-class {background-image: url(http://domain.com/img/image.gif];}', '.absolute-url-class {background-image: url(http://domain.com/img/image.gif);}',
'/test/base/path/assets/input', '/test/base/path/assets/input',
'/test/base/path/assets/output', '/test/base/path/assets/output',
'.absolute-url-class {background-image: url(http://domain.com/img/image.gif];}', '.absolute-url-class {background-image: url(http://domain.com/img/image.gif);}',
], ],
[ [
'.absolute-url-secure-class {background-image: url(https://secure.domain.com/img/image.gif];}', '.absolute-url-secure-class {background-image: url(https://secure.domain.com/img/image.gif);}',
'/test/base/path/assets/input', '/test/base/path/assets/input',
'/test/base/path/assets/output', '/test/base/path/assets/output',
'.absolute-url-secure-class {background-image: url(https://secure.domain.com/img/image.gif];}', '.absolute-url-secure-class {background-image: url(https://secure.domain.com/img/image.gif);}',
], ],
]; ];
} }

Loading…
Cancel
Save