diff options
author | Mary Umoh <umohm12@gmail.com> | 2017-06-21 22:18:56 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-06-21 22:18:56 +0200 |
commit | 74f15e52e9ac43d4e47d08337aa6574899c00090 (patch) | |
tree | 5efdff69fe72d2714670a70ad0d2a88f5733acfc /t/css.t | |
parent | d6f40ea57141f9b94910eb7600efbe9c5e006249 (diff) | |
download | bugzilla-74f15e52e9ac43d4e47d08337aa6574899c00090.tar.gz bugzilla-74f15e52e9ac43d4e47d08337aa6574899c00090.tar.xz |
Bug 1369872 - Combine skins/custom/Mozilla/*.css and skins/contrib/*.css into skins/standard/*.css
* Move bug_groups from custom to standard
* More modified bug_group files
* Combine skin CSS files
* Move .png files to standard
* Move css from global.css that belongs in index.css
* Changes to css placement
* All images within skins/standard moved to images folder
* Fix font issue
* Updates
* Updates
* Fix mistake
Diffstat (limited to 't/css.t')
-rw-r--r-- | t/css.t | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/t/css.t b/t/css.t new file mode 100644 index 000000000..84d1ae3f0 --- /dev/null +++ b/t/css.t @@ -0,0 +1,37 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# This Source Code Form is "Incompatible With Secondary Licenses", as +# defined by the Mozilla Public License, v. 2.0. +use strict; +use warnings; +use 5.10.1; +use lib qw( . lib local/lib/perl5 ); +use File::Spec; +use File::Slurp qw(read_file); +use File::Find qw(find); +use Cwd qw(realpath cwd); +use Test::More; + +my $root = cwd(); + +find( + { + wanted => sub { + if (/\.css$/) { + my $css_file = $File::Find::name; + my $content = read_file($_); + while ($content =~ m{url\(["']?([^\)"']+)['"]?\)}g) { + my $file = $1; + my $file_rel_root = File::Spec->abs2rel(realpath(File::Spec->rel2abs($file)), $root); + + ok(-f $file, "$css_file references $file ($file_rel_root)"); + } + } + }, + }, + 'skins' +); + +done_testing; |