From 2f47f088058b97c04e8da0d2355afadefc462563 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Fri, 13 Oct 2023 19:00:41 +0200 Subject: [PATCH] chrome 118 --- .../org/htmlunit/css/StyleAttributes.java | 2 +- .../htmlunit/archunit/ArchitectureTest.java | 1 + .../general/ElementPropertiesTest.java | 9 +- .../org/htmlunit/javascript/host/URLTest.java | 82 +++++++++++++++++++ 4 files changed, 89 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/htmlunit/css/StyleAttributes.java b/src/main/java/org/htmlunit/css/StyleAttributes.java index 8f589488d76..d77617a3a89 100644 --- a/src/main/java/org/htmlunit/css/StyleAttributes.java +++ b/src/main/java/org/htmlunit/css/StyleAttributes.java @@ -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}. */ diff --git a/src/test/java/org/htmlunit/archunit/ArchitectureTest.java b/src/test/java/org/htmlunit/archunit/ArchitectureTest.java index d897dc294f4..520c194595a 100644 --- a/src/test/java/org/htmlunit/archunit/ArchitectureTest.java +++ b/src/test/java/org/htmlunit/archunit/ArchitectureTest.java @@ -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") diff --git a/src/test/java/org/htmlunit/general/ElementPropertiesTest.java b/src/test/java/org/htmlunit/general/ElementPropertiesTest.java index 7cbe1e4c8e6..d18e5107bd7 100644 --- a/src/test/java/org/htmlunit/general/ElementPropertiesTest.java +++ b/src/test/java/org/htmlunit/general/ElementPropertiesTest.java @@ -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," @@ -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," @@ -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," @@ -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," diff --git a/src/test/java/org/htmlunit/javascript/host/URLTest.java b/src/test/java/org/htmlunit/javascript/host/URLTest.java index cf2c511481f..0ad98dc9ceb 100644 --- a/src/test/java/org/htmlunit/javascript/host/URLTest.java +++ b/src/test/java/org/htmlunit/javascript/host/URLTest.java @@ -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 = + "\n" + + "\n" + + " \n" + + "\n" + + "\n" + + "\n" + + ""; + loadPageVerifyTitle2(html); + } + @Test @Alerts(DEFAULT = {"?q=123", "?a=b&c=d", "https://developer.mozilla.org/search?a=b&c=d",