implementing a test for multi-categories parsing check feature.
[sgn.git] / t / unit_fixture / Static / static.t
blob0f843bf7e5aa18af51edcfa24e3960378b3f1ce3
1 use strict;
2 use warnings;
3 use Test::More;
5 use lib 't/lib';
6 use SGN::Test::WWW::Mechanize skip_cgi => 1;
8 my $mech = SGN::Test::WWW::Mechanize->new;
10 #All static files used by sgn should be here (css,xml,js,etc)
14 #Called by application from: sgn/mason/site/header/head.mas
15 #These files are available on all site pages
16 # $mech->get_ok($_) for
17 #     qw(
18 #         /css/new_sgn.css
19 #         /documents/sgn_sol_search.xml
20 #         /css/jquery-sgn-theme/jquery-ui-1.10.3.custom.css
21 #         /css/jstree/themes/default/style.min.css
22 #         /css/fullcalendar.min.css
23 #         /documents/inc/datatables/jquery.dataTables.css
24 #         /css/bootstrap.min.css
25 #         /css/bootstrap-toggle/bootstrap-toggle.min.css
26 #         /css/ladda-themeless.min.css
27 #         /css/daterangepicker.css
28 #         /css/buttons/buttons.bootstrap.min.css
29 #         /js/jquery.js
30 #         /js/jqueryui.js
31 #         /js/sgn.js
32 #         /js/jquery/simpletooltip.js
33 #         /js/jquery/cookie.js
34 #         /js/jquery/dataTables.js
35 #         /js/jquerymigrate.js
36 #         /js/CXGN/Effects.js
37 #         /js/CXGN/Page/FormattingHelpers.js
38 #         /js/CXGN/UserPrefs.js
39 #         /js/CXGN/Page/Toolbar.js
40 #         /js/CXGN/List.js
41 #         /js/CXGN/Login.js
42 #         /js/bootstrap_min.js
43 #         /js/CXGN/BreedersToolbox/HTMLSelect.js
44 #         /js/bootstrap-toggle_min.js
45 #     );
46 $mech->get_ok($_) for
47     qw(
48         /css/new_sgn.css
49         /documents/sgn_sol_search.xml
50         /css/jquery-sgn-theme/jquery-ui-1.10.3.custom.css
51         /css/jstree/themes/default/style.min.css
52         /css/fullcalendar.min.css
53         /documents/inc/datatables/jquery.dataTables.css
54         /css/bootstrap.min.css
55         /css/bootstrap-toggle/bootstrap-toggle.min.css
56         /css/ladda-themeless.min.css
57         /css/daterangepicker.css
58         /css/buttons/buttons.bootstrap.min.css
59     );
61 #Called by application from sgn/mason/brapiclient/*.mas
62 # $mech->get_ok($_) for
63 #     qw(
64 #         /js/brapi/Table.js
65 #     );
67 #Called by application from sgn/mason/breeders_toolbox/breeder_search*
68 # $mech->get_ok($_) for
69 #     qw(
70 #         /js/CXGN/BreederSearch.js
71 #         /js/spin_min.js
72 #         /js/ladda_min.js
73 #     );
75 #Called by application from sgn/mason/breeders_toolbox/cross/index.mas
76 # $mech->get_ok($_) for
77 #     qw(
78 #         /js/thickbox.js
79 #         /js/CXGN/Phenome/Tools.js
80 #         /js/CXGN/BreedersToolbox/CrossDetailPage.js
81 #     );
83 #Called by application from sgn/mason/breeders_toolbox/crossing_experiment_tree.mas
84 # $mech->get_ok($_) for
85 #     qw(
86 #         /js/jquery/iframe-post-form.js
87 #         /js/CXGN/BreedersToolbox/Crosses.js
88 #         /js/jstree/dist/jstree.js
89 #         /js/CXGN/TrialTreeFolders.js
90 #     );
92 #Called by application from sgn/mason/breeders_toolbox/genotyping_trials/detail.mas
93 # $mech->get_ok($_) for
94 #     qw(
95 #         /js/CXGN/Trial.js
96 #         /js/CXGN/BreedersToolbox/GenotypingTrial.js
97 #     );
99 #Called by application from sgn/mason/breeders_toolbox/genotyping_trials/trials.mas
100 # $mech->get_ok($_) for
101 #     qw(
102 #         /js/CXGN/BreedersToolbox/AddTrial.js
103 #         /js/CXGN/BreedersToolbox/UploadTrial.js
104 #     );
106 #Called by application from sgn/mason/breeders_toolbox/index.mas
107 # $mech->get_ok($_) for
108 #     qw(
109 #         /js/icon_nav.js
110 #     );
112 #Called by application from sgn/mason/breeders_toolbox/manage_accessions.mas
113 # $mech->get_ok($_) for
114 #     qw(
115 #         /js/CXGN/BreedersToolbox/Accessions.js
116 #         /js/CXGN/BreedersToolbox/UploadPedigrees.js
117 #         /js/jquery/dataTables-bootstrap-min.js
118 #     );
120 #Called by application from sgn/mason/breeders_toolbox/projects.mas and sgn/mason/breeders_toolbox/trialtree.mas and sgn/mason/breeders_toolbox/trialtreefolders.mas
121 # $mech->get_ok($_) for
122 #     qw(
123 #         /js/CXGN/BreedersToolbox/AddTrial.js
124 #         /js/CXGN/BreedersToolbox/UploadTrial.js
125 #         /js/CXGN/BreedersToolbox/Trial.js
126 #         /js/CXGN/Trial.js
127 #         /js/CXGN/TrialTreeFolders.js
128 #     );
130 #Called by application from sgn/mason/breeders_toolbox/selection_index.mas
131 # $mech->get_ok($_) for
132 #     qw(
133 #         /js/jquery/dataTables-min.js
134 #         /js/jquery/dataTables-buttons-min.js
135 #         /js/jszip-min.js
136 #         /js/pdfmake/pdfmake-min.js
137 #         /js/pdfmake/vfs_fonts.js
138 #         /js/buttons/bootstrap-min.js
139 #         /js/buttons/html5-min.js
140 #         /js/buttons/print-min.js
141 #         /js/buttons/colvis-min.js
142 #         /js/CXGN/SelectionIndex.js
143 #     );
145 #Called by application from sgn/mason/breeders_toolbox/trial.mas
146 # $mech->get_ok($_) for
147 #     qw(
148 #         /js/CXGN/Trial.js
149 #         /js/moment_min.js
150 #         /js/daterangepicker.js
151 #     );
153 #Called by application from sgn/mason/breeders_toolbox/trial/phenotype_summary.mas
154 # $mech->get_ok($_) for
155 #     qw(
156 #         /js/d3/d3Min.js
157 #         /js/SGN/Histogram.js
158 #     );
160 #Called by application from sgn/mason/breeders_toolbox/trial/trial_coords.mas
161 # $mech->get_ok($_) for
162 #     qw(
163 #         /js/kinetics/kinetic.js
164 #     );
166 #Called by application from sgn/mason/breeders_toolbox/upload_phenotype*.mas
167 # $mech->get_ok($_) for
168 #     qw(
169 #         /js/CXGN/BreedersToolbox/UploadPhenotype.js
170 #     );
172 #Called by application from sgn/mason/calendar*.mas
173 # $mech->get_ok($_) for
174 #     qw(
175 #         /js/calendar/moment_min.js
176 #         /js/calendar/fullcalendar_min.js
177 #         /js/calendar/fullcalendar_gcal_min.js
178 #         /js/calendar/bootstrap_datepicker_min.js
179 #         /css/datepicker.css
180 #     );
181 $mech->get_ok($_) for
182     qw(
183         /css/datepicker.css
184     );
186 #Called by application from sgn/mason/chado/cvterm.mas
187 # $mech->get_ok($_) for
188 #     qw(
189 #         /js/CXGN/AJAX/Ontology.js
190 #         /js/CXGN/Phenome/Qtl.js
191 #     );
193 #Called by application from sgn/mason/chado/publication.mas
194 # $mech->get_ok($_) for
195 #     qw(
196 #         /js/CXGN/Phenome/Publication.js
197 #     );
199 #Called by application from sgn/mason/cview/*.mas
200 # $mech->get_ok($_) for
201 #     qw(
202 #         /js/MochiKit/Async.js
203 #     );
205 #Called by application from sgn/mason/fieldbook/home.mas
206 # $mech->get_ok($_) for
207 #     qw(
208 #         /js/CXGN/BreedersToolbox/FieldBook.js
209 #     );
211 #Called by application from sgn/mason/genefamily/manual*.mas
212 # $mech->get_ok($_) for
213 #     qw(
214 #         /js/popup.js
215 #         /js/CXGN/Phenome/Locus.js
216 #         /js/CXGN/Sunshine/NetworkBrowser.js
217 #     );
219 #Called by application from sgn/mason/solgs*.mas
220 # $mech->get_ok($_) for
221 #     qw(
222 #         /css/solgs/solgs.css
223 #         /js/solGS/solGS.js
224 #         /js/solGS/pca.js
225 #         /js/solGS/listTypeSelectionPopulation.js
226 #         /js/solGS/searchTrials.js
227 #         /js/solGS/searchTraits.js
228 #         /js/solGS/combineTrials.js
229 #         /js/solGS/traitGebvFlot.js
230 #         /js/solGS/phenotypeDataFlot.js
231 #         /js/solGS/combinePopulations.js
232 #         /js/solGS/analysisStatus.js
233 #         /js/solGS/correlation.js
234 #         /js/solGS/linePlot.js
235 #         /js/solGS/histogram.js
236 #         /js/solGS/normalDistribution.js
237 #         /js/solGS/gebvsComparison.js
238 #         /js/solGS/selectionIndex.js
239 #         /js/solGS/ajaxAutocomplete.js
240 #         /js/solGS/selectionPopulations.js
241 #         /js/solGS/gebvPhenoRegression.js
242 #         /js/flot/flot.js
243 #         /js/flot/categories.js
244 #         /js/flot/tooltip.js
245 #         /js/flot/navigate.js
246 #         /js/flot/selection.js
247 #         /js/flot/axisLabels.js
248 #         /js/statistics/simple_statistics.js
249 #     );
250 $mech->get_ok($_) for
251     qw(
252         /css/solgs/solgs.css
253     );
255 #Called by application from sgn/mason/page/form.mas, sgn/mason/solgs/page/form.mas
256 # $mech->get_ok($_) for
257 #     qw(
258 #         /js/CXGN/Page/Form/JSFormPage.js
259 #         /js/MochiKit/Logging.js
260 #     );
262 #Called by application from sgn/mason/solgs/util/*.mas
263 # $mech->get_ok($_) for
264 #     qw(
265 #         /js/MochiKit/DOM.js
266 #         /js/Text/Markup.js
267 #     );
269 #Called by application from sgn/mason/page/*.mas
270 # $mech->get_ok($_) for
271 #     qw(
272 #         /js/CXGN/Page/Comments.js
273 #         /js/CXGN/Page/Form/JSFormPage.js
274 #     );
276 #Called by application from sgn/mason/search/features.mas
277 # $mech->get_ok($_) for
278 #     qw(
279 #         /js/SGN/Search/Feature.js
280 #     );
282 #Called by application from sgn/mason/secretom/*.mas
283 # $mech->get_ok($_) for
284 #     qw(
285 #         /js/jquery/colorbox.js
286 #     );
288 #Called by application from sgn/mason/stock/index.mas
289 # $mech->get_ok($_) for
290 #     qw(
291 #         /js/CXGN/Stock.js
292 #     );
294 #Called by application from sgn/mason/tools/blast/index.mas
295 # $mech->get_ok($_) for
296 #     qw(
297 #         /js/CXGN/Blast.js
298 #     );
300 #Called by application from sgn/mason/tools/expression/index.mas
301 # $mech->get_ok($_) for
302 #     qw(
303 #         /js/sprintf.js
304 #         /js/Text/Markup.js
305 #     );
307 #Called by application from sgn/mason/tools/vigs/input.mas
308 # $mech->get_ok($_) for
309 #     qw(
310 #         /js/sprintf.js
311 #         /js/Text/Markup.js
312 #         /js/tools/vigs.js
313 #     );
316 #SITE SPECIFICS
320 $mech->get_ok($_) for
321     qw(
322         /img/sgn_logo_icon.png
323     );
325 #Called from cassava/mason/*
326 $mech->get_ok($_) for
327     qw(
328         /css/nextgen-cassava-base-new.css
329         /documents/inc/jquery-cassava-theme/jquery-ui-1.10.3.custom.css
330         /documents/img/cassava/nextgen_cassava_icon.png
331         /static/documents/img/cassava/cassavabase.gif
332     );
334 #Called from cassbase/mason/*
335 $mech->get_ok($_) for
336     qw(
337         /css/nextgen-cassava-base-new.css
338         /documents/inc/jquery-cassava-theme/jquery-ui-1.10.3.custom.css
339         /documents/img/CASSbase/cass_logo_4c.gif
340     );
342 #Called from citrusgreening/mason/*
343 $mech->get_ok($_) for
344     qw(
345         /css/citrusgreening.css
346         /img/citrusgreening/cg_logo_icon.png
347         /documents/img/citrusgreening/cg_logo.png
348         /documents/img/citrusgreening/cg_name.png
349     );
351 #Called from fernbase/mason/*
352 $mech->get_ok($_) for
353     qw(
354         /css/nextgen-cassava-base-new.css
355         /documents/inc/jquery-cassava-theme/jquery-ui-1.10.3.custom.css
356         /documents/img/fernbase/fern.png
357     );
359 #Called from musabase/mason/*,
360 $mech->get_ok($_) for
361     qw(
362         /css/nextgen-cassava-base-new.css
363         /documents/inc/jquery-cassava-theme/jquery-ui-1.10.3.custom.css
364         /documents/img/sgn_transparent_logo.png
365     );
367 #Called from sweetpotatobase/mason/*,
368 $mech->get_ok($_) for
369     qw(
370         /css/nextgen-cassava-base-new.css
371         /documents/inc/jquery-cassava-theme/jquery-ui-1.10.3.custom.css
372         /documents/img/sweetpotatobase/sweetpotatobase_logo.png
373     );
375 #Called from yambase/mason/*,
376 $mech->get_ok($_) for
377     qw(
378         /css/nextgen-cassava-base-new.css
379         /documents/inc/jquery-cassava-theme/jquery-ui-1.10.3.custom.css
380         /documents/img/AfricaYamLogo.jpg
381     );
384 done_testing;