From: <rb...@us...> - 2018-04-22 11:58:42
|
Revision: 15250 http://sourceforge.net/p/htmlunit/code/15250 Author: rbri Date: 2018-04-22 11:56:47 +0000 (Sun, 22 Apr 2018) Log Message: ----------- latest chrome (wip) Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributes.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser2Test.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributes.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributes.java 2018-04-22 09:24:21 UTC (rev 15249) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributes.java 2018-04-22 11:56:47 UTC (rev 15250) @@ -975,6 +975,9 @@ /** The style property {@code font-weight}. */ FONT_WEIGHT_("font-weight", "font-weight", ff("400")), + /** The style property {@code gap}. */ + GAP("gap", "gap", chrome("normal normal")), + /** The style property {@code glyphOrientationHorizontal}. */ GLYPH_ORIENTATION_HORIZONTAL("glyphOrientationHorizontal", "glyph-orientation-horizontal", ie("0deg")), @@ -983,9 +986,6 @@ GLYPH_ORIENTATION_VERTICAL("glyphOrientationVertical", "glyph-orientation-vertical", ie("auto")), - /** The style property {@code gap}. */ - GAP("gap", "gap", chrome("normal normal")), - /** The style property {@code grid}. */ GRID("grid", "grid", chrome("none / none / none / row / auto / auto"), ff52up("")), Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2018-04-22 09:24:21 UTC (rev 15249) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2018-04-22 11:56:47 UTC (rev 15250) @@ -418,8 +418,9 @@ * @throws Exception if the test fails */ @Test - @Alerts(CHROME = "accessKey,blur(),click(),contentEditable,dataset,dir,draggable,focus(),hidden," - + "innerText,isContentEditable,lang,nonce," + @Alerts(CHROME = "accessKey,autocapitalize," + + "blur(),click(),contentEditable,dataset,dir,draggable,focus(),hidden," + + "innerText,inputMode,isContentEditable,lang,nonce," + "offsetHeight,offsetLeft,offsetParent,offsetTop,offsetWidth,onabort," + "onauxclick,onblur,oncancel,oncanplay,oncanplaythrough,onchange,onclick," + "onclose,oncontextmenu,oncuechange,ondblclick,ondrag,ondragend,ondragenter,ondragleave,ondragover," @@ -505,10 +506,11 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "animate(),append(),attachShadow(),attributes,childElementCount,children,classList,className," - + "clientHeight,clientLeft,clientTop,clientWidth,closest(),createShadowRoot(),firstElementChild," - + "getAttribute(),getAttributeNames(),getAttributeNode(),getAttributeNodeNS(),getAttributeNS()," - + "getBoundingClientRect()," + @Alerts(DEFAULT = "animate(),append(),attachShadow(),attributes,attributeStyleMap," + + "childElementCount,children,classList,className," + + "clientHeight,clientLeft,clientTop,clientWidth,closest(),computedStyleMap(),createShadowRoot()," + + "firstElementChild,getAttribute(),getAttributeNames(),getAttributeNode()," + + "getAttributeNodeNS(),getAttributeNS(),getBoundingClientRect()," + "getClientRects(),getElementsByClassName(),getElementsByTagName(),getElementsByTagNameNS()," + "hasAttribute(),hasAttributeNS(),hasAttributes(),hasPointerCapture(),id,innerHTML," + "insertAdjacentElement(),insertAdjacentHTML(),insertAdjacentText(),lastElementChild,localName," @@ -565,8 +567,10 @@ * @throws Exception if the test fails */ @Test - @Alerts(CHROME = "after(),animate(),assignedSlot,attachShadow(),attributes,before(),classList,className," - + "clientHeight,clientLeft,clientTop,clientWidth,closest(),createShadowRoot(),getAttribute()," + @Alerts(CHROME = "after(),animate(),assignedSlot,attachShadow(),attributes,attributeStyleMap," + + "before(),classList,className," + + "clientHeight,clientLeft,clientTop,clientWidth,closest(),computedStyleMap(),createShadowRoot()," + + "getAttribute()," + "getAttributeNames(),getAttributeNode(),getAttributeNodeNS(),getAttributeNS()," + "getBoundingClientRect(),getClientRects()," + "getDestinationInsertionPoints(),getElementsByClassName(),getElementsByTagName()," @@ -580,7 +584,7 @@ + "scrollIntoViewIfNeeded(),scrollLeft,scrollTo(),scrollTop,scrollWidth,setAttribute()," + "setAttributeNode()," + "setAttributeNodeNS(),setAttributeNS(),setPointerCapture(),shadowRoot,slot,tagName," - + "webkitMatchesSelector(),webkitRequestFullscreen(),webkitRequestFullScreen()", + + "webkitMatchesSelector(),webkitRequestFullScreen(),webkitRequestFullscreen()", FF45 = "attributes,classList,className,clientHeight,clientLeft,clientTop," + "clientWidth,closest(),getAttribute(),getAttributeNames(),getAttributeNode(),getAttributeNodeNS()," + "getAttributeNS(),getBoundingClientRect(),getClientRects(),getElementsByClassName()," @@ -2327,7 +2331,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(CHROME = "add(),autofocus,checkValidity(),disabled,form,item(),labels,length,multiple,name,namedItem()," + @Alerts(CHROME = "add(),autocomplete,autofocus,checkValidity()," + + "disabled,form,item(),labels,length,multiple,name,namedItem()," + "options,reportValidity(),required,selectedIndex,selectedOptions,setCustomValidity(),size,type," + "validationMessage,validity,value," + "willValidate", @@ -2585,7 +2590,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(CHROME = "autocapitalize,autofocus,checkValidity(),cols,defaultValue,dirName,disabled,form,labels," + @Alerts(CHROME = "autocomplete,autofocus,checkValidity(),cols,defaultValue,dirName,disabled,form,labels," + "maxLength,minLength,name,placeholder,readOnly,reportValidity(),required,rows,select()," + "selectionDirection,selectionEnd,selectionStart,setCustomValidity(),setRangeText()," + "setSelectionRange(),textLength,type,validationMessage,validity,value,willValidate," @@ -2836,7 +2841,7 @@ + "min,multiple,name,pattern,placeholder,readOnly,required,select(),selectionEnd,selectionStart," + "setCustomValidity(),setSelectionRange(),size,src,start,status,step,stepDown(),stepUp(),type," + "useMap,validationMessage,validity,value,valueAsNumber,vrml,vspace,width,willValidate", - CHROME = "accept,align,alt,autocapitalize,autocomplete,autofocus,checked,checkValidity()," + CHROME = "accept,align,alt,autocomplete,autofocus,checked,checkValidity()," + "defaultChecked,defaultValue," + "dirName,disabled,files,form,formAction,formEnctype,formMethod,formNoValidate,formTarget,height," + "incremental,indeterminate,labels,list,max,maxLength,min,minLength,multiple,name,pattern," Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser2Test.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser2Test.java 2018-04-22 09:24:21 UTC (rev 15249) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser2Test.java 2018-04-22 11:56:47 UTC (rev 15250) @@ -14,6 +14,7 @@ */ package com.gargoylesoftware.htmlunit.html; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.CHROME; import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF; import org.junit.Test; @@ -414,13 +415,13 @@ * @throws Exception on test failure */ @Test - @Alerts(DEFAULT = {"<iframe></div></body></html></iframe>", "1", - "1", "IFRAME", "null", "1", - "3", "#text", "</div></body></html>"}, - FF = {"<iframe></div></body></html></iframe>", "1", - "1", "IFRAME", "null", "1", - "3", "#text", "</div></body></html>"}) - @NotYetImplemented(FF) + @Alerts(DEFAULT = {"<iframe></div></body></html></iframe>", "1", + "1", "IFRAME", "null", "1", + "3", "#text", "</div></body></html>"}, + IE = {"<iframe></div></body></html></iframe>", "1", + "1", "IFRAME", "null", "1", + "3", "#text", "</div></body></html>"}) + @NotYetImplemented({CHROME, FF}) public void selfClosingIframe() throws Exception { final String html = "<html><head>\n" + "<script>\n" Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java 2018-04-22 09:24:21 UTC (rev 15249) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java 2018-04-22 11:56:47 UTC (rev 15250) @@ -50,7 +50,7 @@ */ @Test @Alerts(DEFAULT = "§§URL§§?button.x=0&button.y=0", - CHROME = "§§URL§§?button.x=16&button.y=7&button=foo", + CHROME = "§§URL§§?button.x=16&button.y=8&button=foo", IE = "§§URL§§?button.x=14&button.y=15") @NotYetImplemented({CHROME, IE}) public void click_NoPosition() throws Exception { |