View Javadoc
1   /*
2    * Copyright (c) 2002-2025 Gargoyle Software Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * https://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */
15  package org.htmlunit.libraries.dojo;
16  
17  import org.junit.jupiter.api.Test;
18  
19  /**
20   * Tests for compatibility with version 1.9.3 of the <a href="http://dojotoolkit.org/">Dojo
21   * JavaScript library</a>.
22   *
23   * @author Ronald Brill
24   */
25  public class Dojo193Test extends DojoTestBase {
26  
27      @Override
28      String getVersion() {
29          return "1.9.3";
30      }
31  
32      @Override
33      String getUrl(final String module) {
34          return URL_FIRST + "util/doh/runner.html?test=" + module;
35      }
36  
37      /**
38       * @throws Exception if an error occurs
39       */
40      @Test
41      public void dojo_tests__base_loader() throws Exception {
42          // TODO - Timeout
43          // test("dojo/tests/_base/loader");
44      }
45  
46      /**
47       * @throws Exception if an error occurs
48       */
49      @Test
50      public void dojo_tests__base_array() throws Exception {
51          test("dojo/tests/_base/array");
52      }
53  
54      /**
55       * @throws Exception if an error occurs
56       */
57      @Test
58      public void dojo_tests__base_color() throws Exception {
59          test("dojo/tests/_base/Color");
60      }
61  
62      /**
63       * @throws Exception if an error occurs
64       */
65      @Test
66      public void dojo_tests__base_lang() throws Exception {
67          test("dojo/tests/_base/lang");
68      }
69  
70      /**
71       * @throws Exception if an error occurs
72       */
73      @Test
74      public void dojo_tests__base_declare() throws Exception {
75          test("dojo/tests/_base/declare");
76      }
77  
78      /**
79       * @throws Exception if an error occurs
80       */
81      @Test
82      public void dojo_tests__base_connect() throws Exception {
83          test("dojo/tests/_base/connect");
84      }
85  
86      /**
87       * @throws Exception if an error occurs
88       */
89      @Test
90      public void dojo_tests__base_deferred() throws Exception {
91          test("dojo/tests/_base/Deferred");
92      }
93  
94      /**
95       * @throws Exception if an error occurs
96       */
97      @Test
98      public void dojo_tests__base_json() throws Exception {
99          test("dojo/tests/_base/json");
100     }
101 
102     /**
103      * @throws Exception if an error occurs
104      */
105     @Test
106     public void dojo_tests__base_object() throws Exception {
107         test("dojo/tests/_base/object");
108     }
109 
110     /**
111      * @throws Exception if an error occurs
112      */
113     @Test
114     public void dojo_tests__base_html() throws Exception {
115         test("dojo/tests/_base/html");
116     }
117 
118     /**
119      * @throws Exception if an error occurs
120      */
121     @Test
122     public void dojo_tests__base_domstyle() throws Exception {
123         // TODO - how to call this
124         // test("dojo/tests/_base/dom-style");
125     }
126 
127     /**
128      * @throws Exception if an error occurs
129      */
130     @Test
131     public void dojo_tests__base_fx() throws Exception {
132         test("dojo/tests/_base/fx");
133     }
134 
135     /**
136      * @throws Exception if an error occurs
137      */
138     @Test
139     public void dojo_tests__base_query() throws Exception {
140         test("dojo/tests/_base/query");
141     }
142 
143     /**
144      * @throws Exception if an error occurs
145      */
146     @Test
147     public void dojo_tests__base_xhr() throws Exception {
148         test("dojo/tests/_base/xhr");
149     }
150 
151     /**
152      * @throws Exception if an error occurs
153      */
154     @Test
155     public void dojo_tests__base_window() throws Exception {
156         test("dojo/tests/_base/window");
157     }
158 
159     /**
160      * @throws Exception if an error occurs
161      */
162     @Test
163     public void dojo_tests_aspect() throws Exception {
164         test("dojo/tests/aspect");
165     }
166 
167     /**
168      * @throws Exception if an error occurs
169      */
170     @Test
171     public void dojo_tests_back() throws Exception {
172         test("dojo/tests/back");
173     }
174 
175     /**
176      * @throws Exception if an error occurs
177      */
178     @Test
179     public void dojo_tests_behavior() throws Exception {
180         test("dojo/tests/behavior");
181     }
182 
183     /**
184      * @throws Exception if an error occurs
185      */
186     @Test
187     public void dojo_tests_cache() throws Exception {
188         test("dojo/tests/cache");
189     }
190 
191     /**
192      * @throws Exception if an error occurs
193      */
194     @Test
195     public void dojo_tests_cldr() throws Exception {
196         test("dojo/tests/cldr");
197     }
198 
199     /**
200      * @throws Exception if an error occurs
201      */
202     @Test
203     public void dojo_tests_colors() throws Exception {
204         test("dojo/tests/colors");
205     }
206 
207     /**
208      * @throws Exception if an error occurs
209      */
210     @Test
211     public void dojo_tests_cookie() throws Exception {
212         test("dojo/tests/cookie");
213     }
214 
215     /**
216      * @throws Exception if an error occurs
217      */
218     @Test
219     public void dojo_tests_currency() throws Exception {
220         test("dojo/tests/currency");
221     }
222 
223     /**
224      * @throws Exception if an error occurs
225      */
226     @Test
227     public void dojo_tests_data() throws Exception {
228         // TODO - Timeout
229         // test("dojo/tests/data");
230     }
231 
232     /**
233      * @throws Exception if an error occurs
234      */
235     @Test
236     public void dojo_tests_date() throws Exception {
237         test("dojo/tests/date");
238     }
239 
240     /**
241      * @throws Exception if an error occurs
242      */
243     @Test
244     public void dojo_tests_Deferred() throws Exception {
245         test("dojo/tests/Deferred");
246     }
247 
248     /**
249      * @throws Exception if an error occurs
250      */
251     @Test
252     public void dojo_tests_DeferredList() throws Exception {
253         test("dojo/tests/DeferredList");
254     }
255 
256     /**
257      * @throws Exception if an error occurs
258      */
259     @Test
260     public void dojo_tests_domStyle() throws Exception {
261         test("dojo/tests/dom-style");
262     }
263 
264     /**
265      * @throws Exception if an error occurs
266      */
267     @Test
268     public void dojo_tests_errors() throws Exception {
269         test("dojo/tests/errors");
270     }
271 
272     // This is not stable on the CI build
273     //    /**
274     //     * @throws Exception if an error occurs
275     //     */
276     //    @Test
277     //    public void dojo_tests_fx() throws Exception {
278     //        test("dojo/tests/fx");
279     //    }
280 
281     /**
282      * @throws Exception if an error occurs
283      */
284     @Test
285     public void dojo_tests_hash() throws Exception {
286         test("dojo/tests/hash");
287     }
288 
289     /**
290      * @throws Exception if an error occurs
291      */
292     @Test
293     public void dojo_tests_html() throws Exception {
294         test("dojo/tests/html");
295     }
296 
297     /**
298      * @throws Exception if an error occurs
299      */
300     @Test
301     public void dojo_tests_i18n() throws Exception {
302         test("dojo/tests/i18n");
303     }
304 
305     /**
306      * @throws Exception if an error occurs
307      */
308     @Test
309     public void dojo_tests_json() throws Exception {
310         test("dojo/tests/json");
311     }
312 
313     /**
314      * @throws Exception if an error occurs
315      */
316     @Test
317     public void dojo_tests_mouse() throws Exception {
318         test("dojo/tests/mouse");
319     }
320 
321     /**
322      * @throws Exception if an error occurs
323      */
324     @Test
325     public void dojo_tests_node() throws Exception {
326         test("dojo/tests/node");
327     }
328 
329     /**
330      * @throws Exception if an error occurs
331      */
332     @Test
333     public void dojo_tests_number() throws Exception {
334         test("dojo/tests/number");
335     }
336 
337     /**
338      * @throws Exception if an error occurs
339      */
340     @Test
341     public void dojo_tests_on() throws Exception {
342         test("dojo/tests/on");
343     }
344 
345     /**
346      * @throws Exception if an error occurs
347      */
348     @Test
349     public void dojo_tests_parser() throws Exception {
350         test("dojo/tests/parser");
351     }
352 
353     /**
354      * @throws Exception if an error occurs
355      */
356     @Test
357     public void dojo_tests_query() throws Exception {
358         test("dojo/tests/query");
359     }
360 
361     /**
362      * @throws Exception if an error occurs
363      */
364     @Test
365     public void dojo_tests_regexp() throws Exception {
366         test("dojo/tests/regexp");
367     }
368 
369     /**
370      * @throws Exception if an error occurs
371      */
372     @Test
373     public void dojo_tests_request() throws Exception {
374         test("dojo/tests/request");
375     }
376 
377 
378     /**
379      * @throws Exception if an error occurs
380      */
381     @Test
382     public void dojo_tests_router() throws Exception {
383         test("dojo/tests/router");
384     }
385 
386     /**
387      * @throws Exception if an error occurs
388      */
389     @Test
390     public void dojo_tests_stateful() throws Exception {
391         test("dojo/tests/Stateful");
392     }
393 
394     /**
395      * @throws Exception if an error occurs
396      */
397     @Test
398     public void dojo_tests_string() throws Exception {
399         test("dojo/tests/string");
400     }
401 
402     /**
403      * @throws Exception if an error occurs
404      */
405     @Test
406     public void dojo_tests_store() throws Exception {
407         test("dojo/tests/store");
408     }
409 
410     /**
411      * @throws Exception if an error occurs
412      */
413     @Test
414     public void dojo_tests_touch() throws Exception {
415         // TODO - fails with an exception
416         // test("dojo/tests/touch");
417     }
418 
419     /**
420      * @throws Exception if an error occurs
421      */
422     @Test
423     public void dojo_tests_uacss() throws Exception {
424         test("dojo/tests/uacss");
425     }
426 
427     /**
428      * @throws Exception if an error occurs
429      */
430     @Test
431     public void dojo_tests_when() throws Exception {
432         test("dojo/tests/when");
433     }
434 
435     /**
436      * @throws Exception if an error occurs
437      */
438     @Test
439     public void dojo_tests_window() throws Exception {
440         // TODO - Time
441         // test("dojo/tests/window", 300);
442     }
443 }