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