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;
16  
17  import org.junit.jupiter.api.Test;
18  
19  /**
20   * Tests for compatibility with version 1.0.2 of the <a href="http://dojotoolkit.org/">Dojo
21   * JavaScript library</a>.
22   *
23   * @author Ahmed Ashour
24   * @author Daniel Gredler
25   * @author Ronald Brill
26   */
27  public class Dojo102Test extends DojoTestBase {
28  
29      @Override
30      String getVersion() {
31          return "1.0.2";
32      }
33  
34      @Override
35      String getUrl(final String module) {
36          return URL_FIRST + "util/doh/runner.html?testModule=" + module;
37      }
38  
39      /**
40       * @throws Exception if an error occurs
41       */
42      @Test
43      public void tests_base_loaderbootstrap() throws Exception {
44          test("tests._base._loader.bootstrap");
45      }
46  
47      /**
48       * @throws Exception if an error occurs
49       */
50      @Test
51      public void tests_base_loaderloader() throws Exception {
52          test("tests._base._loader.loader");
53      }
54  
55      /**
56       * @throws Exception if an error occurs
57       */
58      @Test
59      public void tests_base_loaderhostenv_browser() throws Exception {
60          test("tests._base._loader.hostenv_browser");
61      }
62  
63      /**
64       * @throws Exception if an error occurs
65       */
66      @Test
67      public void tests_basearray() throws Exception {
68          test("tests._base.array");
69      }
70  
71      /**
72       * @throws Exception if an error occurs
73       */
74      @Test
75      public void tests_baseColor() throws Exception {
76          test("tests._base.Color");
77      }
78  
79      /**
80       * @throws Exception if an error occurs
81       */
82      @Test
83      public void tests_baselang() throws Exception {
84          test("tests._base.lang");
85      }
86  
87      /**
88       * @throws Exception if an error occurs
89       */
90      @Test
91      public void tests_basedeclare() throws Exception {
92          test("tests._base.declare");
93      }
94  
95      /**
96       * @throws Exception if an error occurs
97       */
98      @Test
99      public void tests_baseconnect() throws Exception {
100         test("tests._base.connect");
101     }
102 
103     /**
104      * @throws Exception if an error occurs
105      */
106     @Test
107     public void tests_baseDeferred() throws Exception {
108         test("tests._base.Deferred");
109     }
110 
111     /**
112      * @throws Exception if an error occurs
113      */
114     @Test
115     public void tests_basejson() throws Exception {
116         test("tests._base.json");
117     }
118 
119     /**
120      * @throws Exception if an error occurs
121      */
122     @Test
123     public void tests_basehtml() throws Exception {
124         test("tests._base.html");
125         // tests._base.html_rtl
126         // tests._base.html_quirks
127         // tests._base.html_box
128         // tests._base.html_box_quirks
129     }
130 
131     /**
132      * @throws Exception if an error occurs
133      */
134     @Test
135     public void tests_basefx() throws Exception {
136         test("tests._base.fx");
137     }
138 
139     /**
140      * @throws Exception if an error occurs
141      */
142     @Test
143     public void tests_basequery() throws Exception {
144         test("tests._base.query");
145         // tests._base.NodeList
146     }
147 
148     /**
149      * @throws Exception if an error occurs
150      */
151     @Test
152     public void tests_basexhr() throws Exception {
153         test("tests._base.xhr");
154     }
155 
156     /**
157      * @throws Exception if an error occurs
158      */
159     @Test
160     public void testsi18n() throws Exception {
161         test("tests.i18n");
162     }
163 
164     /**
165      * @throws Exception if an error occurs
166      */
167     @Test
168     public void testsbackhash() throws Exception {
169         // test("tests.back.hash");
170     }
171 
172     /**
173      * @throws Exception if an error occurs
174      */
175     @Test
176     public void testscldr() throws Exception {
177         test("tests.cldr");
178     }
179 
180     /**
181      * @throws Exception if an error occurs
182      */
183     @Test
184     public void testsdatautils() throws Exception {
185         test("tests.data.utils");
186     }
187 
188     /**
189      * @throws Exception if an error occurs
190      */
191     @Test
192     public void testsdataItemFileReadStore() throws Exception {
193         test("tests.data.ItemFileReadStore");
194     }
195 
196     /**
197      * @throws Exception if an error occurs
198      */
199     @Test
200     public void testsdataItemFileWriteStore() throws Exception {
201         test("tests.data.ItemFileWriteStore");
202     }
203 
204     /**
205      * @throws Exception if an error occurs
206      */
207     @Test
208     public void testsdate() throws Exception {
209         test("tests.date");
210         // tests.date.util
211         // tests.date.math
212         // tests.date.locale
213         // tests.date.stamp
214     }
215 
216     /**
217      * @throws Exception if an error occurs
218      */
219     @Test
220     public void testscurrency() throws Exception {
221         test("tests.currency");
222     }
223 
224     /**
225      * @throws Exception if an error occurs
226      */
227     @Test
228     public void testsAdapterRegistry() throws Exception {
229         test("tests.AdapterRegistry");
230     }
231 
232     /**
233      * @throws Exception if an error occurs
234      */
235     @Test
236     public void testsioscript() throws Exception {
237         test("tests.io.script");
238     }
239 
240     /**
241      * @throws Exception if an error occurs
242      */
243     @Test
244     public void testsioiframe() throws Exception {
245         test("tests.io.iframe");
246     }
247 
248     /**
249      * @throws Exception if an error occurs
250      */
251     @Test
252     public void testsrpc() throws Exception {
253         test("tests.rpc");
254     }
255 
256     /**
257      * @throws Exception if an error occurs
258      */
259     @Test
260     public void testsstring() throws Exception {
261         test("tests.string");
262     }
263 
264     /**
265      * @throws Exception if an error occurs
266      */
267     @Test
268     public void testsbehavior() throws Exception {
269         shutDownAll();
270 
271         test("tests.behavior");
272     }
273 
274     /**
275      * @throws Exception if an error occurs
276      */
277     @Test
278     public void testsparser() throws Exception {
279         test("tests.parser");
280     }
281 
282     /**
283      * @throws Exception if an error occurs
284      */
285     @Test
286     public void testscolors() throws Exception {
287         test("tests.colors");
288     }
289 
290     /**
291      * @throws Exception if an error occurs
292      */
293     @Test
294     public void testsfx() throws Exception {
295         test("tests.fx");
296     }
297 }