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.general.huge;
16  
17  import java.util.Collection;
18  
19  import org.htmlunit.junit.annotation.Alerts;
20  import org.junit.jupiter.params.provider.Arguments;
21  
22  /**
23   * Tests two Host classes, if one prototype is parent of another.
24   *
25   * This class handles all host names which starts by character 'W' to 'Z'.
26   *
27   * @author Ahmed Ashour
28   * @author Ronald Brill
29   */
30  public class HostParentOfWTest extends HostParentOf {
31  
32      /**
33       * Returns the parameterized data.
34       * @return the parameterized data
35       * @throws Exception if an error occurs
36       */
37      public static Collection<Arguments> data() throws Exception {
38          return HostParentOf.data(input -> {
39              final char ch = Character.toUpperCase(input.charAt(0));
40              return ch >= 'W' && ch <= 'Z';
41          });
42      }
43  
44      @Alerts("true/false")
45      void _WaveShaperNode_WaveShaperNode() throws Exception {
46          test("WaveShaperNode", "WaveShaperNode");
47      }
48  
49      @Alerts("true/false")
50      void _WeakMap_WeakMap() throws Exception {
51          test("WeakMap", "WeakMap");
52      }
53  
54      @Alerts("true/false")
55      void _WeakSet_WeakSet() throws Exception {
56          test("WeakSet", "WeakSet");
57      }
58  
59      @Alerts("false/false")
60      void _WEBGL_compressed_texture_s3tc_WEBGL_compressed_texture_s3tc() throws Exception {
61          test("WEBGL_compressed_texture_s3tc", "WEBGL_compressed_texture_s3tc");
62      }
63  
64      @Alerts("false/false")
65      void _WEBGL_debug_renderer_info_WEBGL_debug_renderer_info() throws Exception {
66          test("WEBGL_debug_renderer_info", "WEBGL_debug_renderer_info");
67      }
68  
69      @Alerts("true/false")
70      void _WebGL2RenderingContext_WebGL2RenderingContext() throws Exception {
71          test("WebGL2RenderingContext", "WebGL2RenderingContext");
72      }
73  
74      @Alerts("true/false")
75      void _WebGLActiveInfo_WebGLActiveInfo() throws Exception {
76          test("WebGLActiveInfo", "WebGLActiveInfo");
77      }
78  
79      @Alerts("true/false")
80      void _WebGLBuffer_WebGLBuffer() throws Exception {
81          test("WebGLBuffer", "WebGLBuffer");
82      }
83  
84      @Alerts("true/false")
85      void _WebGLContextEvent_WebGLContextEvent() throws Exception {
86          test("WebGLContextEvent", "WebGLContextEvent");
87      }
88  
89      @Alerts("true/false")
90      void _WebGLFramebuffer_WebGLFramebuffer() throws Exception {
91          test("WebGLFramebuffer", "WebGLFramebuffer");
92      }
93  
94      @Alerts("true/false")
95      void _WebGLProgram_WebGLProgram() throws Exception {
96          test("WebGLProgram", "WebGLProgram");
97      }
98  
99      @Alerts("true/false")
100     void _WebGLQuery_WebGLQuery() throws Exception {
101         test("WebGLQuery", "WebGLQuery");
102     }
103 
104     @Alerts("true/false")
105     void _WebGLRenderbuffer_WebGLRenderbuffer() throws Exception {
106         test("WebGLRenderbuffer", "WebGLRenderbuffer");
107     }
108 
109     @Alerts("true/false")
110     void _WebGLRenderingContext_WebGLRenderingContext() throws Exception {
111         test("WebGLRenderingContext", "WebGLRenderingContext");
112     }
113 
114     @Alerts("true/false")
115     void _WebGLSampler_WebGLSampler() throws Exception {
116         test("WebGLSampler", "WebGLSampler");
117     }
118 
119     @Alerts("true/false")
120     void _WebGLShader_WebGLShader() throws Exception {
121         test("WebGLShader", "WebGLShader");
122     }
123 
124     @Alerts("true/false")
125     void _WebGLShaderPrecisionFormat_WebGLShaderPrecisionFormat() throws Exception {
126         test("WebGLShaderPrecisionFormat", "WebGLShaderPrecisionFormat");
127     }
128 
129     @Alerts("true/false")
130     void _WebGLSync_WebGLSync() throws Exception {
131         test("WebGLSync", "WebGLSync");
132     }
133 
134     @Alerts("true/false")
135     void _WebGLTexture_WebGLTexture() throws Exception {
136         test("WebGLTexture", "WebGLTexture");
137     }
138 
139     @Alerts("true/false")
140     void _WebGLTransformFeedback_WebGLTransformFeedback() throws Exception {
141         test("WebGLTransformFeedback", "WebGLTransformFeedback");
142     }
143 
144     @Alerts("true/false")
145     void _WebGLUniformLocation_WebGLUniformLocation() throws Exception {
146         test("WebGLUniformLocation", "WebGLUniformLocation");
147     }
148 
149     @Alerts("true/false")
150     void _WebGLVertexArrayObject_WebGLVertexArrayObject() throws Exception {
151         test("WebGLVertexArrayObject", "WebGLVertexArrayObject");
152     }
153 
154     @Alerts("true/false")
155     void _WebKitCSSMatrix_DOMMatrix() throws Exception {
156         test("WebKitCSSMatrix", "DOMMatrix");
157     }
158 
159     @Alerts("true/false")
160     void _WebKitCSSMatrix_WebKitCSSMatrix() throws Exception {
161         test("WebKitCSSMatrix", "WebKitCSSMatrix");
162     }
163 
164     @Alerts(DEFAULT = "false/false",
165             CHROME = "true/false",
166             EDGE = "true/false")
167     void _webkitMediaStream_MediaStream() throws Exception {
168         test("webkitMediaStream", "MediaStream");
169     }
170 
171     @Alerts(DEFAULT = "false/false",
172             CHROME = "true/false",
173             EDGE = "true/false")
174     void _webkitMediaStream_webkitMediaStream() throws Exception {
175         test("webkitMediaStream", "webkitMediaStream");
176     }
177 
178     @Alerts(DEFAULT = "false/false",
179             CHROME = "true/false",
180             EDGE = "true/false")
181     void _WebKitMutationObserver_MutationObserver() throws Exception {
182         test("WebKitMutationObserver", "MutationObserver");
183     }
184 
185     @Alerts(DEFAULT = "false/false",
186             CHROME = "true/false",
187             EDGE = "true/false")
188     void _WebKitMutationObserver_WebKitMutationObserver() throws Exception {
189         test("WebKitMutationObserver", "WebKitMutationObserver");
190     }
191 
192     @Alerts(DEFAULT = "false/false",
193             CHROME = "true/false",
194             EDGE = "true/false")
195     void _webkitRTCPeerConnection_RTCPeerConnection() throws Exception {
196         test("webkitRTCPeerConnection", "RTCPeerConnection");
197     }
198 
199     @Alerts(DEFAULT = "false/false",
200             CHROME = "true/false",
201             EDGE = "true/false")
202     void _webkitRTCPeerConnection_webkitRTCPeerConnection() throws Exception {
203         test("webkitRTCPeerConnection", "webkitRTCPeerConnection");
204     }
205 
206     @Alerts(DEFAULT = "false/false",
207             CHROME = "true/false",
208             EDGE = "true/false")
209     void _webkitSpeechGrammar_webkitSpeechGrammar() throws Exception {
210         test("webkitSpeechGrammar", "webkitSpeechGrammar");
211     }
212 
213     @Alerts(DEFAULT = "false/false",
214             CHROME = "true/false",
215             EDGE = "true/false")
216     void _webkitSpeechGrammarList_webkitSpeechGrammarList() throws Exception {
217         test("webkitSpeechGrammarList", "webkitSpeechGrammarList");
218     }
219 
220     @Alerts(DEFAULT = "false/false",
221             CHROME = "true/false",
222             EDGE = "true/false")
223     void _webkitSpeechRecognition_webkitSpeechRecognition() throws Exception {
224         test("webkitSpeechRecognition", "webkitSpeechRecognition");
225     }
226 
227     @Alerts(DEFAULT = "false/false",
228             CHROME = "true/false",
229             EDGE = "true/false")
230     void _webkitSpeechRecognitionError_webkitSpeechRecognitionError() throws Exception {
231         test("webkitSpeechRecognitionError", "webkitSpeechRecognitionError");
232     }
233 
234     @Alerts(DEFAULT = "false/false",
235             CHROME = "true/false",
236             EDGE = "true/false")
237     void _webkitSpeechRecognitionEvent_webkitSpeechRecognitionEvent() throws Exception {
238         test("webkitSpeechRecognitionEvent", "webkitSpeechRecognitionEvent");
239     }
240 
241     @Alerts("true/false")
242     void _webkitURL_URL() throws Exception {
243         test("webkitURL", "URL");
244     }
245 
246     @Alerts("true/false")
247     void _webkitURL_webkitURL() throws Exception {
248         test("webkitURL", "webkitURL");
249     }
250 
251     @Alerts("true/false")
252     void _WebSocket_WebSocket() throws Exception {
253         test("WebSocket", "WebSocket");
254     }
255 
256     @Alerts("true/false")
257     void _WheelEvent_WheelEvent() throws Exception {
258         test("WheelEvent", "WheelEvent");
259     }
260 
261     @Alerts("true/false")
262     void _Window_Window() throws Exception {
263         test("Window", "Window");
264     }
265 
266     @Alerts("true/false")
267     void _Worker_Worker() throws Exception {
268         test("Worker", "Worker");
269     }
270 
271     @Alerts("true/false")
272     void _XMLDocument_XMLDocument() throws Exception {
273         test("XMLDocument", "XMLDocument");
274     }
275 
276     @Alerts("true/false")
277     void _XMLHttpRequest_XMLHttpRequest() throws Exception {
278         test("XMLHttpRequest", "XMLHttpRequest");
279     }
280 
281     @Alerts("true/true")
282     void _XMLHttpRequestEventTarget_XMLHttpRequest() throws Exception {
283         test("XMLHttpRequestEventTarget", "XMLHttpRequest");
284     }
285 
286     @Alerts("true/false")
287     void _XMLHttpRequestEventTarget_XMLHttpRequestEventTarget() throws Exception {
288         test("XMLHttpRequestEventTarget", "XMLHttpRequestEventTarget");
289     }
290 
291     @Alerts("true/true")
292     void _XMLHttpRequestEventTarget_XMLHttpRequestUpload() throws Exception {
293         test("XMLHttpRequestEventTarget", "XMLHttpRequestUpload");
294     }
295 
296     @Alerts("true/false")
297     void _XMLHttpRequestUpload_XMLHttpRequestUpload() throws Exception {
298         test("XMLHttpRequestUpload", "XMLHttpRequestUpload");
299     }
300 
301     @Alerts("true/false")
302     void _XMLSerializer_XMLSerializer() throws Exception {
303         test("XMLSerializer", "XMLSerializer");
304     }
305 
306     @Alerts("true/false")
307     void _XPathEvaluator_XPathEvaluator() throws Exception {
308         test("XPathEvaluator", "XPathEvaluator");
309     }
310 
311     @Alerts("true/false")
312     void _XPathExpression_XPathExpression() throws Exception {
313         test("XPathExpression", "XPathExpression");
314     }
315 
316     @Alerts("true/false")
317     void _XPathResult_XPathResult() throws Exception {
318         test("XPathResult", "XPathResult");
319     }
320 
321     @Alerts("true/false")
322     void _XSLTProcessor_XSLTProcessor() throws Exception {
323         test("XSLTProcessor", "XSLTProcessor");
324     }
325 }