Skip to content

Commit

Permalink
chrome 118
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Oct 13, 2023
1 parent f36eda4 commit 2f47f08
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/htmlunit/css/StyleAttributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -3563,7 +3563,7 @@ public enum Definition {
TRANSITION("transition", "transition", ie(""), chromeAndEdge("all 0s ease 0s"),
ff("all 0s ease 0s")),

/** The style property {@code transitionDelay}. */
/** The style property {@code transitionBehavior}. */
TRANSITION_BEHAVIOR("transitionBehavior", "transition-behavior", chrome("normal")),

/** The style property {@code transitionDelay}. */
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/htmlunit/archunit/ArchitectureTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public void check(final JavaMethod method, final ConditionEvents events) {
.that()
.doNotHaveFullyQualifiedName("org.htmlunit.ProxyAutoConfig")
.and().doNotHaveFullyQualifiedName("org.htmlunit.WebConsole")
.and().doNotHaveFullyQualifiedName("org.htmlunit.WebConsole$1")
.and().doNotHaveFullyQualifiedName("org.htmlunit.ScriptException")
.and().doNotHaveFullyQualifiedName("org.htmlunit.ScriptResult")
.and().doNotHaveFullyQualifiedName("org.htmlunit.html.DomNode")
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/org/htmlunit/general/ElementPropertiesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7508,7 +7508,8 @@ public void nodeListButtonLabels() throws Exception {
+ "fontOpticalSizing,fontPalette,fontSize,fontStretch,fontStyle,fontSynthesis,"
+ "fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,"
+ "fontVariant,fontVariantAlternates,fontVariantCaps,"
+ "fontVariantEastAsian,fontVariantLigatures,fontVariantNumeric,fontVariationSettings,fontWeight,"
+ "fontVariantEastAsian,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,"
+ "fontVariationSettings,fontWeight,"
+ "forcedColorAdjust,gap,getPropertyPriority(),getPropertyValue(),grid,gridArea,gridAutoColumns,"
+ "gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,"
+ "gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,"
Expand All @@ -7525,7 +7526,7 @@ public void nodeListButtonLabels() throws Exception {
+ "offsetAnchor,offsetDistance,offsetPath,offsetPosition,"
+ "offsetRotate,opacity,order,orphans,outline,outlineColor,"
+ "outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowClipMargin,overflowWrap,"
+ "overflowX,overflowY,overrideColors,overscrollBehavior,overscrollBehaviorBlock,"
+ "overflowX,overflowY,overlay,overrideColors,overscrollBehavior,overscrollBehaviorBlock,"
+ "overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,pad,padding,paddingBlock,"
+ "paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,"
+ "paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,"
Expand All @@ -7548,7 +7549,7 @@ public void nodeListButtonLabels() throws Exception {
+ "textIndent,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,"
+ "textUnderlineOffset,textUnderlinePosition,textWrap,timelineScope,"
+ "top,touchAction,transform,transformBox,transformOrigin,"
+ "transformStyle,transition,transitionDelay,transitionDuration,transitionProperty,"
+ "transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,"
+ "transitionTimingFunction,translate,"
+ "unicodeBidi,unicodeRange,userSelect,vectorEffect,verticalAlign,"
+ "viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,"
Expand All @@ -7569,7 +7570,7 @@ public void nodeListButtonLabels() throws Exception {
+ "webkitColumnBreakInside,webkitColumnCount,webkitColumnGap,webkitColumnRule,webkitColumnRuleColor,"
+ "webkitColumnRuleStyle,webkitColumnRuleWidth,webkitColumns,webkitColumnSpan,webkitColumnWidth,"
+ "webkitFilter,webkitFlex,webkitFlexBasis,webkitFlexDirection,webkitFlexFlow,webkitFlexGrow,"
+ "webkitFlexShrink,webkitFlexWrap,webkitFontFeatureSettings,webkitFontSmoothing,webkitHighlight,"
+ "webkitFlexShrink,webkitFlexWrap,webkitFontFeatureSettings,webkitFontSmoothing,"
+ "webkitHyphenateCharacter,webkitJustifyContent,webkitLineBreak,webkitLineClamp,webkitLocale,"
+ "webkitLogicalHeight,webkitLogicalWidth,webkitMarginAfter,webkitMarginBefore,webkitMarginEnd,"
+ "webkitMarginStart,webkitMask,webkitMaskBoxImage,webkitMaskBoxImageOutset,"
Expand Down
82 changes: 82 additions & 0 deletions src/test/java/org/htmlunit/javascript/host/URLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,88 @@ public void protocol() throws Exception {
loadPageVerifyTitle2(html);
}

@Test
@Alerts(DEFAULT = {"https:",
"http:", "http://mydomain.com/svn/Repos/",
"https:", "https://mydomain.com/svn/Repos/",
"ftp:", "ftp://mydomain.com/svn/Repos/",
"ftp:", "ftp://mydomain.com/svn/Repos/",
"ws:", "ws://mydomain.com/svn/Repos/",
"wss:", "wss://mydomain.com/svn/Repos/",
"file:", "file://mydomain.com/svn/Repos/"},
EDGE = {"https:",
"http:", "http://mydomain.com/svn/Repos/",
"https:", "https://mydomain.com/svn/Repos/",
"ftp:", "ftp://mydomain.com/svn/Repos/",
"ftps:", "ftps://mydomain.com/svn/Repos/",
"ws:", "ws://mydomain.com/svn/Repos/",
"wss:", "wss://mydomain.com/svn/Repos/",
"file:", "file://mydomain.com/svn/Repos/"},
FF = {"https:",
"http:", "http://mydomain.com/svn/Repos/",
"https:", "https://mydomain.com/svn/Repos/",
"ftp:", "ftp://mydomain.com/svn/Repos/",
"ftps:", "ftps://mydomain.com/svn/Repos/",
"ws:", "ws://mydomain.com/svn/Repos/",
"wss:", "wss://mydomain.com/svn/Repos/",
"file:", "file:///svn/Repos/"},
FF_ESR = {"https:",
"http:", "http://mydomain.com/svn/Repos/",
"https:", "https://mydomain.com/svn/Repos/",
"ftp:", "ftp://mydomain.com/svn/Repos/",
"ftps:", "ftps://mydomain.com/svn/Repos/",
"ws:", "ws://mydomain.com/svn/Repos/",
"wss:", "wss://mydomain.com/svn/Repos/",
"file:", "file:///svn/Repos/"},
IE = {})
public void specialScheme() throws Exception {
final String html =
"<html>\n"
+ "<head>\n"
+ " <script>\n"
+ LOG_TITLE_FUNCTION
+ " function test() {\n"
+ " if (typeof window.URL === 'function') {\n"
+ " var u = new URL('https://mydomain.com:80/svn/Repos/');\n"
+ " log(u.protocol);\n"

+ " u.protocol = 'http';\n"
+ " log(u.protocol);\n"
+ " log(u.toString());\n"

+ " u.protocol = 'https';\n"
+ " log(u.protocol);\n"
+ " log(u.toString());\n"

+ " u.protocol = 'ftp';\n"
+ " log(u.protocol);\n"
+ " log(u.toString());\n"

+ " u.protocol = 'ftps';\n"
+ " log(u.protocol);\n"
+ " log(u.toString());\n"

+ " u.protocol = 'ws';\n"
+ " log(u.protocol);\n"
+ " log(u.toString());\n"

+ " u.protocol = 'wss';\n"
+ " log(u.protocol);\n"
+ " log(u.toString());\n"

+ " u.protocol = 'file';\n"
+ " log(u.protocol);\n"
+ " log(u.toString());\n"
+ " }\n"
+ " }\n"
+ " </script>\n"
+ "</head>\n"
+ "<body onload='test()'>\n"
+ "</body>\n"
+ "</html>";
loadPageVerifyTitle2(html);
}

@Test
@Alerts(DEFAULT = {"?q=123",
"?a=b&c=d", "https://developer.mozilla.org/search?a=b&c=d",
Expand Down

0 comments on commit 2f47f08

Please sign in to comment.