Skip to content

Commit c575cf2

Browse files
committed
FF 144
1 parent 021ed87 commit c575cf2

File tree

6 files changed

+717
-754
lines changed

6 files changed

+717
-754
lines changed

src/main/java/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
* @author Frank Danek
4141
* @author Alex Gorbatovsky
4242
*/
43-
@JsxClass(value = {FF, FF_ESR}, className = "CSS2Properties")
43+
@JsxClass(value = FF, className = "CSSStyleProperties")
44+
@JsxClass(value = FF_ESR, className = "CSS2Properties")
4445
public class ComputedCSSStyleDeclaration extends CSSStyleDeclaration {
4546

4647
/** Symbol.toStringTag support. */

src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java

Lines changed: 548 additions & 596 deletions
Large diffs are not rendered by default.

src/test/java/org/htmlunit/general/ElementPropertiesTest.java

Lines changed: 142 additions & 154 deletions
Large diffs are not rendered by default.

src/test/java/org/htmlunit/general/HostClassNameTest.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,12 +1163,23 @@ public void css() throws Exception {
11631163
*/
11641164
@Test
11651165
@Alerts(DEFAULT = "ReferenceError",
1166-
FF = "function CSS2Properties() { [native code] }",
11671166
FF_ESR = "function CSS2Properties() { [native code] }")
11681167
public void css2Properties() throws Exception {
11691168
test("CSS2Properties");
11701169
}
11711170

1171+
/**
1172+
* Test {@link CSSStyleProperties}.
1173+
*
1174+
* @throws Exception if an error occurs
1175+
*/
1176+
@Test
1177+
@Alerts(DEFAULT = "ReferenceError",
1178+
FF = "function CSSStyleProperties() { [native code] }")
1179+
public void cssStyleProperties() throws Exception {
1180+
test("CSSStyleProperties");
1181+
}
1182+
11721183
/**
11731184
* Test {@link CSSPageDescriptors}.
11741185
*

src/test/java/org/htmlunit/general/HostTypeOfTest.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,12 +1143,23 @@ public void css() throws Exception {
11431143
*/
11441144
@Test
11451145
@Alerts(DEFAULT = "undefined",
1146-
FF = "function",
11471146
FF_ESR = "function")
11481147
public void css2Properties() throws Exception {
11491148
test("CSS2Properties");
11501149
}
11511150

1151+
/**
1152+
* Test {@link org.htmlunit.javascript.host.css.CSSStyleDeclaration}.
1153+
*
1154+
* @throws Exception if an error occurs
1155+
*/
1156+
@Test
1157+
@Alerts(DEFAULT = "undefined",
1158+
FF = "function")
1159+
public void cssStyleProperties() throws Exception {
1160+
test("CSSStyleProperties");
1161+
}
1162+
11521163
/**
11531164
* Test {@link CSSPageDescriptors}.
11541165
*

src/test/java/org/htmlunit/javascript/host/dom/DocumentFragmentTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class DocumentFragmentTest extends WebDriverTestCase {
3535
*/
3636
@Test
3737
@Alerts(DEFAULT = "[object CSSStyleDeclaration]",
38-
FF = "[object CSS2Properties]",
38+
FF = "[object CSSStyleProperties]",
3939
FF_ESR = "[object CSS2Properties]")
4040
public void getComputedStyleOnChild() throws Exception {
4141
final String html = DOCTYPE_HTML

0 commit comments

Comments
 (0)