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 'F' to 'G'.
26   *
27   * @author Ahmed Ashour
28   * @author Ronald Brill
29   */
30  public class HostParentOfFTest 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 >= 'F' && ch <= 'G';
41          });
42      }
43  
44      @Alerts(DEFAULT = "false/false",
45              CHROME = "true/false",
46              EDGE = "true/false")
47      void _FederatedCredential_FederatedCredential() throws Exception {
48          test("FederatedCredential", "FederatedCredential");
49      }
50  
51      @Alerts("true/false")
52      void _File_File() throws Exception {
53          test("File", "File");
54      }
55  
56      @Alerts("true/false")
57      void _FileList_FileList() throws Exception {
58          test("FileList", "FileList");
59      }
60  
61      @Alerts("true/false")
62      void _FileReader_FileReader() throws Exception {
63          test("FileReader", "FileReader");
64      }
65  
66      @Alerts(DEFAULT = "false/false",
67              FF = "true/false",
68              FF_ESR = "true/false")
69      void _FileSystem_FileSystem() throws Exception {
70          test("FileSystem", "FileSystem");
71      }
72  
73      @Alerts(DEFAULT = "false/false",
74              FF = "true/false",
75              FF_ESR = "true/false")
76      void _FileSystemDirectoryEntry_FileSystemDirectoryEntry() throws Exception {
77          test("FileSystemDirectoryEntry", "FileSystemDirectoryEntry");
78      }
79  
80      @Alerts(DEFAULT = "false/false",
81              FF = "true/false",
82              FF_ESR = "true/false")
83      void _FileSystemDirectoryReader_FileSystemDirectoryReader() throws Exception {
84          test("FileSystemDirectoryReader", "FileSystemDirectoryReader");
85      }
86  
87      @Alerts(DEFAULT = "false/false",
88              FF = "true/true",
89              FF_ESR = "true/true")
90      void _FileSystemEntry_FileSystemDirectoryEntry() throws Exception {
91          test("FileSystemEntry", "FileSystemDirectoryEntry");
92      }
93  
94      @Alerts(DEFAULT = "false/false",
95              FF = "true/false",
96              FF_ESR = "true/false")
97      void _FileSystemEntry_FileSystemEntry() throws Exception {
98          test("FileSystemEntry", "FileSystemEntry");
99      }
100 
101     @Alerts(DEFAULT = "false/false",
102             FF = "true/true",
103             FF_ESR = "true/true")
104     void _FileSystemEntry_FileSystemFileEntry() throws Exception {
105         test("FileSystemEntry", "FileSystemFileEntry");
106     }
107 
108     @Alerts(DEFAULT = "false/false",
109             FF = "true/false",
110             FF_ESR = "true/false")
111     void _FileSystemFileEntry_FileSystemFileEntry() throws Exception {
112         test("FileSystemFileEntry", "FileSystemFileEntry");
113     }
114 
115     @Alerts("true/false")
116     void _Float32Array_Float32Array() throws Exception {
117         test("Float32Array", "Float32Array");
118     }
119 
120     @Alerts("true/false")
121     void _Float64Array_Float64Array() throws Exception {
122         test("Float64Array", "Float64Array");
123     }
124 
125     @Alerts("true/false")
126     void _FocusEvent_FocusEvent() throws Exception {
127         test("FocusEvent", "FocusEvent");
128     }
129 
130     @Alerts("true/false")
131     void _FontFace_FontFace() throws Exception {
132         test("FontFace", "FontFace");
133     }
134 
135     @Alerts(DEFAULT = "false/false",
136             FF = "true/false",
137             FF_ESR = "true/false")
138     void _FontFaceSet_FontFaceSet() throws Exception {
139         test("FontFaceSet", "FontFaceSet");
140     }
141 
142     @Alerts("true/false")
143     void _FormData_FormData() throws Exception {
144         test("FormData", "FormData");
145     }
146 
147     @Alerts("true/false")
148     void _GainNode_GainNode() throws Exception {
149         test("GainNode", "GainNode");
150     }
151 
152     @Alerts("true/false")
153     void _Gamepad_Gamepad() throws Exception {
154         test("Gamepad", "Gamepad");
155     }
156 
157     @Alerts("true/false")
158     void _GamepadButton_GamepadButton() throws Exception {
159         test("GamepadButton", "GamepadButton");
160     }
161 
162     @Alerts("true/false")
163     void _GamepadEvent_GamepadEvent() throws Exception {
164         test("GamepadEvent", "GamepadEvent");
165     }
166 
167     @Alerts("true/false")
168     void _Geolocation_Geolocation() throws Exception {
169         test("Geolocation", "Geolocation");
170     }
171 
172     @Alerts("true/false")
173     void _GeolocationCoordinates_GeolocationCoordinates() throws Exception {
174         test("GeolocationCoordinates", "GeolocationCoordinates");
175     }
176 
177     @Alerts("true/false")
178     void _GeolocationPosition_GeolocationPosition() throws Exception {
179         test("GeolocationPosition", "GeolocationPosition");
180     }
181 
182     @Alerts("true/false")
183     void _GeolocationPositionError_GeolocationPositionError() throws Exception {
184         test("GeolocationPositionError", "GeolocationPositionError");
185     }
186 }