Skip to content

Commit

Permalink
tests: Disable z_lib tag test
Browse files Browse the repository at this point in the history
These tests broke on test systems with a timezone different than GMT+2
and were not generally very useful tests anyway.
  • Loading branch information
Arjan Scherpenisse committed Apr 10, 2014
1 parent fb4745b commit d2ba9da
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/support/tests/z_lib_include_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ tag_test() ->
?assertEqual([_LinkElem = [], _ScriptElem = []],
z_lib_include:tag([], C)),
?assertEqual([_LinkElem = [], _ScriptElem = []],
z_lib_include:tag(["/images/test.jpg"], C)),
z_lib_include:tag(["/images/test.jpg"], C)).

?assertEqual([[], <<"<script src=\"/lib/js/a~62167258800.js\" type=\"text/javascript\"></script>">>],
z_lib_include:tag(["/js/a.js"], C)),
?assertEqual([[], <<"<script src=\"/lib/js/a~b~62167258800.js\" type=\"text/javascript\"></script>">>],
z_lib_include:tag(["/js/a.js", "/js/b.js"], C)),
%% These tests break on test systems with a timezone different than GMT+2 and are not generally very useful tests anyway.

?assertEqual([<<"<link href=\"/lib/css/a~62167258800.css\" type=\"text/css\" media=\"all\" rel=\"stylesheet\"/>">>,
<<"<script src=\"/lib/js/b~62167258800.js\" type=\"text/javascript\"></script>">>],
z_lib_include:tag(["/css/a.css", "/js/b.js"], C)).
%% ?assertEqual([[], <<"<script src=\"/lib/js/a~62167258800.js\" type=\"text/javascript\"></script>">>],
%% z_lib_include:tag(["/js/a.js"], C)),
%% ?assertEqual([[], <<"<script src=\"/lib/js/a~b~62167258800.js\" type=\"text/javascript\"></script>">>],
%% z_lib_include:tag(["/js/a.js", "/js/b.js"], C)),

%% ?assertEqual([<<"<link href=\"/lib/css/a~62167258800.css\" type=\"text/css\" media=\"all\" rel=\"stylesheet\"/>">>,
%% <<"<script src=\"/lib/js/b~62167258800.js\" type=\"text/javascript\"></script>">>],
%% z_lib_include:tag(["/css/a.css", "/js/b.js"], C)).



Expand Down

0 comments on commit d2ba9da

Please sign in to comment.