• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / httpunit / 755

14 Feb 2026 07:14PM UTC coverage: 80.526%. Remained the same
755

push

github

hazendaz
[ci] Fix badge

3213 of 4105 branches covered (78.27%)

Branch coverage included in aggregate %.

8245 of 10124 relevant lines covered (81.44%)

0.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.0
/src/main/java/com/meterware/httpunit/dom/HTMLImageElementImpl.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2000-2026 Russell Gold
6
 * Copyright 2021-2000 hazendaz
7
 */
8
package com.meterware.httpunit.dom;
9

10
import org.w3c.dom.html.HTMLImageElement;
11

12
/**
13
 * The Class HTMLImageElementImpl.
14
 */
15
public class HTMLImageElementImpl extends HTMLElementImpl implements HTMLImageElement {
1✔
16

17
    /** The Constant serialVersionUID. */
18
    private static final long serialVersionUID = 1L;
19

20
    @Override
21
    ElementImpl create() {
22
        return new HTMLImageElementImpl();
1✔
23
    }
24

25
    /**
26
     * Gets the align.
27
     *
28
     * @return the align
29
     */
30
    @Override
31
    public String getAlign() {
32
        return getAttributeWithNoDefault("align");
1✔
33
    }
34

35
    /**
36
     * Gets the alt.
37
     *
38
     * @return the alt
39
     */
40
    @Override
41
    public String getAlt() {
42
        return getAttributeWithNoDefault("alt");
1✔
43
    }
44

45
    /**
46
     * Gets the border.
47
     *
48
     * @return the border
49
     */
50
    @Override
51
    public String getBorder() {
52
        return getAttributeWithNoDefault("border");
1✔
53
    }
54

55
    /**
56
     * Gets the height.
57
     *
58
     * @return the height
59
     */
60
    @Override
61
    public String getHeight() {
62
        return getAttributeWithNoDefault("height");
1✔
63
    }
64

65
    /**
66
     * Gets the hspace.
67
     *
68
     * @return the hspace
69
     */
70
    @Override
71
    public String getHspace() {
72
        return getAttributeWithNoDefault("hspace");
1✔
73
    }
74

75
    /**
76
     * Gets the checks if is map.
77
     *
78
     * @return the checks if is map
79
     */
80
    @Override
81
    public boolean getIsMap() {
82
        return getBooleanAttribute("ismap");
1✔
83
    }
84

85
    /**
86
     * Gets the long desc.
87
     *
88
     * @return the long desc
89
     */
90
    @Override
91
    public String getLongDesc() {
92
        return getAttributeWithNoDefault("longdesc");
1✔
93
    }
94

95
    /**
96
     * Gets the low src.
97
     *
98
     * @return the low src
99
     */
100
    @Override
101
    public String getLowSrc() {
102
        return null;
×
103
    }
104

105
    /**
106
     * Gets the name.
107
     *
108
     * @return the name
109
     */
110
    @Override
111
    public String getName() {
112
        return getAttributeWithNoDefault("name");
1✔
113
    }
114

115
    /**
116
     * Gets the src.
117
     *
118
     * @return the src
119
     */
120
    @Override
121
    public String getSrc() {
122
        return getAttributeWithNoDefault("src");
1✔
123
    }
124

125
    /**
126
     * Gets the use map.
127
     *
128
     * @return the use map
129
     */
130
    @Override
131
    public String getUseMap() {
132
        return getAttributeWithNoDefault("usemap");
1✔
133
    }
134

135
    /**
136
     * Gets the vspace.
137
     *
138
     * @return the vspace
139
     */
140
    @Override
141
    public String getVspace() {
142
        return getAttributeWithNoDefault("vspace");
1✔
143
    }
144

145
    /**
146
     * Gets the width.
147
     *
148
     * @return the width
149
     */
150
    @Override
151
    public String getWidth() {
152
        return getAttributeWithNoDefault("width");
1✔
153
    }
154

155
    /**
156
     * Sets the align.
157
     *
158
     * @param align
159
     *            the new align
160
     */
161
    @Override
162
    public void setAlign(String align) {
163
        setAttribute("align", align);
1✔
164
    }
1✔
165

166
    /**
167
     * Sets the alt.
168
     *
169
     * @param alt
170
     *            the new alt
171
     */
172
    @Override
173
    public void setAlt(String alt) {
174
        setAttribute("alt", alt);
1✔
175
    }
1✔
176

177
    /**
178
     * Sets the border.
179
     *
180
     * @param border
181
     *            the new border
182
     */
183
    @Override
184
    public void setBorder(String border) {
185
        setAttribute("border", border);
1✔
186
    }
1✔
187

188
    /**
189
     * Sets the height.
190
     *
191
     * @param height
192
     *            the new height
193
     */
194
    @Override
195
    public void setHeight(String height) {
196
        setAttribute("height", height);
1✔
197
    }
1✔
198

199
    /**
200
     * Sets the hspace.
201
     *
202
     * @param hspace
203
     *            the new hspace
204
     */
205
    @Override
206
    public void setHspace(String hspace) {
207
        setAttribute("hspace", hspace);
1✔
208
    }
1✔
209

210
    /**
211
     * Sets the checks if is map.
212
     *
213
     * @param isMap
214
     *            the new checks if is map
215
     */
216
    @Override
217
    public void setIsMap(boolean isMap) {
218
        setAttribute("ismap", isMap);
1✔
219
    }
1✔
220

221
    /**
222
     * Sets the long desc.
223
     *
224
     * @param longDesc
225
     *            the new long desc
226
     */
227
    @Override
228
    public void setLongDesc(String longDesc) {
229
        setAttribute("longdesc", longDesc);
1✔
230
    }
1✔
231

232
    /**
233
     * Sets the low src.
234
     *
235
     * @param lowSrc
236
     *            the new low src
237
     */
238
    @Override
239
    public void setLowSrc(String lowSrc) {
240
    }
×
241

242
    /**
243
     * Sets the name.
244
     *
245
     * @param name
246
     *            the new name
247
     */
248
    @Override
249
    public void setName(String name) {
250
        setAttribute("name", name);
1✔
251
    }
1✔
252

253
    /**
254
     * Sets the src.
255
     *
256
     * @param src
257
     *            the new src
258
     */
259
    @Override
260
    public void setSrc(String src) {
261
        setAttribute("src", src);
1✔
262
    }
1✔
263

264
    /**
265
     * Sets the use map.
266
     *
267
     * @param useMap
268
     *            the new use map
269
     */
270
    @Override
271
    public void setUseMap(String useMap) {
272
        setAttribute("usemap", useMap);
1✔
273
    }
1✔
274

275
    /**
276
     * Sets the vspace.
277
     *
278
     * @param vspace
279
     *            the new vspace
280
     */
281
    @Override
282
    public void setVspace(String vspace) {
283
        setAttribute("vspace", vspace);
1✔
284
    }
1✔
285

286
    /**
287
     * Sets the width.
288
     *
289
     * @param width
290
     *            the new width
291
     */
292
    @Override
293
    public void setWidth(String width) {
294
        setAttribute("width", width);
1✔
295
    }
1✔
296
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc