1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.htmlunit.general.huge;
16
17 import java.util.Collection;
18
19 import org.htmlunit.junit.BrowserParameterizedRunner;
20 import org.htmlunit.junit.annotation.Alerts;
21 import org.junit.Test;
22 import org.junit.runner.RunWith;
23 import org.junit.runners.Parameterized.Parameters;
24
25
26
27
28
29
30
31
32
33 @RunWith(BrowserParameterizedRunner.class)
34 public class HostParentOfBTest extends HostParentOf {
35
36
37
38
39
40
41 @Parameters
42 public static Collection<Object[]> data() throws Exception {
43 return HostParentOf.data(input -> {
44 final char ch = Character.toUpperCase(input.charAt(0));
45 return ch == 'B';
46 });
47 }
48
49
50
51
52 @Test
53 @Alerts("true/false")
54 public void _BarProp_BarProp() throws Exception {
55 test("BarProp", "BarProp");
56 }
57
58
59
60
61 @Test
62 @Alerts("true/true")
63 public void _BaseAudioContext_AudioContext() throws Exception {
64 test("BaseAudioContext", "AudioContext");
65 }
66
67
68
69
70 @Test
71 @Alerts("true/false")
72 public void _BaseAudioContext_BaseAudioContext() throws Exception {
73 test("BaseAudioContext", "BaseAudioContext");
74 }
75
76
77
78
79 @Test
80 @Alerts("true/true")
81 public void _BaseAudioContext_OfflineAudioContext() throws Exception {
82 test("BaseAudioContext", "OfflineAudioContext");
83 }
84
85
86
87
88 @Test
89 @Alerts(DEFAULT = "true/false",
90 FF = "false/false",
91 FF_ESR = "false/false")
92 public void _BatteryManager_BatteryManager() throws Exception {
93 test("BatteryManager", "BatteryManager");
94 }
95
96
97
98
99 @Test
100 @Alerts(DEFAULT = "false/false",
101 CHROME = "true/false",
102 EDGE = "true/false")
103 public void _BeforeInstallPromptEvent_BeforeInstallPromptEvent() throws Exception {
104 test("BeforeInstallPromptEvent", "BeforeInstallPromptEvent");
105 }
106
107
108
109
110 @Test
111 @Alerts("true/false")
112 public void _BeforeUnloadEvent_BeforeUnloadEvent() throws Exception {
113 test("BeforeUnloadEvent", "BeforeUnloadEvent");
114 }
115
116
117
118
119 @Test
120 @Alerts("true/false")
121 public void _BiquadFilterNode_BiquadFilterNode() throws Exception {
122 test("BiquadFilterNode", "BiquadFilterNode");
123 }
124
125
126
127
128 @Test
129 @Alerts("true/false")
130 public void _Blob_Blob() throws Exception {
131 test("Blob", "Blob");
132 }
133
134
135
136
137 @Test
138 @Alerts("true/true")
139 public void _Blob_File() throws Exception {
140 test("Blob", "File");
141 }
142
143
144
145
146 @Test
147 @Alerts("true/false")
148 public void _BlobEvent_BlobEvent() throws Exception {
149 test("BlobEvent", "BlobEvent");
150 }
151
152
153
154
155 @Test
156 @Alerts("true/false")
157 public void _BroadcastChannel_BroadcastChannel() throws Exception {
158 test("BroadcastChannel", "BroadcastChannel");
159 }
160 }