From: <rb...@us...> - 2017-09-08 07:23:45
|
Revision: 14811 http://sourceforge.net/p/htmlunit/code/14811 Author: rbri Date: 2017-09-08 07:23:42 +0000 (Fri, 08 Sep 2017) Log Message: ----------- latest chrome (wip) Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostClassNameTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/intl/DateTimeFormatTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java 2017-09-07 18:25:12 UTC (rev 14810) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java 2017-09-08 07:23:42 UTC (rev 14811) @@ -194,8 +194,8 @@ EDGE.userAgent_ = "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"; // CHROME - CHROME.applicationVersion_ = "5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"; - CHROME.userAgent_ = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"; + CHROME.applicationVersion_ = "5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36"; + CHROME.userAgent_ = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36"; CHROME.applicationCodeName_ = "Mozilla"; CHROME.vendor_ = "Google Inc."; Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2017-09-07 18:25:12 UTC (rev 14810) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2017-09-08 07:23:42 UTC (rev 14811) @@ -419,7 +419,8 @@ */ @Test @Alerts(CHROME = "accessKey,blur(),click(),contentEditable,dataset,dir,draggable,focus(),hidden," - + "innerText,isContentEditable,lang,offsetHeight,offsetLeft,offsetParent,offsetTop,offsetWidth,onabort," + + "innerText,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," + "ondragstart,ondrop,ondurationchange,onemptied,onended,onerror,onfocus,ongotpointercapture," @@ -430,7 +431,7 @@ + "onpointercancel,onpointerdown,onpointerenter,onpointerleave,onpointermove,onpointerout," + "onpointerover,onpointerup,onprogress," + "onratechange,onreset,onresize,onscroll,onseeked,onseeking,onselect," - + "onshow,onstalled,onsubmit,onsuspend,ontimeupdate,ontoggle,onvolumechange,onwaiting,outerText," + + "onstalled,onsubmit,onsuspend,ontimeupdate,ontoggle,onvolumechange,onwaiting,onwheel,outerText," + "spellcheck,style,tabIndex,title,translate", FF45 = "accessKey,accessKeyLabel,blur(),click(),contentEditable,contextMenu,dataset,dir," + "draggable,focus(),hidden,innerText,isContentEditable,itemId,itemProp,itemRef,itemScope," @@ -506,15 +507,17 @@ @Test @Alerts(DEFAULT = "animate(),append(),attachShadow(),attributes,childElementCount,children,classList,className," + "clientHeight,clientLeft,clientTop,clientWidth,closest(),createShadowRoot(),firstElementChild," - + "getAttribute(),getAttributeNode(),getAttributeNodeNS(),getAttributeNS(),getBoundingClientRect()," + + "getAttribute(),getAttributeNames(),getAttributeNode(),getAttributeNodeNS(),getAttributeNS()," + + "getBoundingClientRect()," + "getClientRects(),getElementsByClassName(),getElementsByTagName(),getElementsByTagNameNS()," + "hasAttribute(),hasAttributeNS(),hasAttributes(),hasPointerCapture(),id,innerHTML," + "insertAdjacentElement(),insertAdjacentHTML(),insertAdjacentText(),lastElementChild,localName," + "matches(),namespaceURI,onbeforecopy,onbeforecut,onbeforepaste,oncopy,oncut,onpaste,onsearch," - + "onselectstart,onwebkitfullscreenchange,onwebkitfullscreenerror,onwheel,outerHTML,prefix,prepend()," + + "onselectstart,onwebkitfullscreenchange,onwebkitfullscreenerror,outerHTML,prefix,prepend()," + "querySelector(),querySelectorAll(),releasePointerCapture(),removeAttribute(),removeAttributeNode()," - + "removeAttributeNS(),requestPointerLock(),scrollHeight,scrollIntoView(),scrollIntoViewIfNeeded()," - + "scrollLeft,scrollTop,scrollWidth,setAttribute(),setAttributeNode(),setAttributeNodeNS()," + + "removeAttributeNS(),requestPointerLock()," + + "scroll(),scrollBy(),scrollHeight,scrollIntoView(),scrollIntoViewIfNeeded()," + + "scrollLeft,scrollTo(),scrollTop,scrollWidth,setAttribute(),setAttributeNode(),setAttributeNodeNS()," + "setAttributeNS(),setPointerCapture(),shadowRoot,slot,tagName,webkitMatchesSelector()," + "webkitRequestFullScreen(),webkitRequestFullscreen()", FF52 = "animate(),append(),attributes,childElementCount,children,classList,className,clientHeight," @@ -564,15 +567,18 @@ @Test @Alerts(CHROME = "after(),animate(),assignedSlot,attachShadow(),attributes,before(),classList,className," + "clientHeight,clientLeft,clientTop,clientWidth,closest(),createShadowRoot(),getAttribute()," - + "getAttributeNode(),getAttributeNodeNS(),getAttributeNS(),getBoundingClientRect(),getClientRects()," + + "getAttributeNames(),getAttributeNode(),getAttributeNodeNS(),getAttributeNS()," + + "getBoundingClientRect(),getClientRects()," + "getDestinationInsertionPoints(),getElementsByClassName(),getElementsByTagName()," + "getElementsByTagNameNS(),hasAttribute(),hasAttributeNS(),hasAttributes(),hasPointerCapture(),id," + "innerHTML,insertAdjacentElement(),insertAdjacentHTML(),insertAdjacentText(),localName,matches()," + "namespaceURI,nextElementSibling,onbeforecopy,onbeforecut,onbeforepaste,oncopy,oncut,onpaste," - + "onsearch,onselectstart,onwebkitfullscreenchange,onwebkitfullscreenerror,onwheel,outerHTML,prefix," + + "onsearch,onselectstart,onwebkitfullscreenchange,onwebkitfullscreenerror,outerHTML,prefix," + "previousElementSibling,releasePointerCapture(),remove(),removeAttribute(),removeAttributeNode()," - + "removeAttributeNS(),replaceWith(),requestPointerLock(),scrollHeight,scrollIntoView()," - + "scrollIntoViewIfNeeded(),scrollLeft,scrollTop,scrollWidth,setAttribute(),setAttributeNode()," + + "removeAttributeNS(),replaceWith(),requestPointerLock()," + + "scroll(),scrollBy(),scrollHeight,scrollIntoView()," + + "scrollIntoViewIfNeeded(),scrollLeft,scrollTo(),scrollTop,scrollWidth,setAttribute()," + + "setAttributeNode()," + "setAttributeNodeNS(),setAttributeNS(),setPointerCapture(),shadowRoot,slot,tagName," + "webkitMatchesSelector(),webkitRequestFullScreen(),webkitRequestFullscreen()", FF45 = "attributes,classList,className,clientHeight,clientLeft,clientTop," @@ -666,13 +672,15 @@ @Alerts(CHROME = "addEventListener(),alert(),applicationCache,atob(),blur(),btoa(),caches,cancelAnimationFrame()," + "cancelIdleCallback(),captureEvents(),chrome,clearInterval(),clearTimeout(),clientInformation," + "close(),closed,confirm()," - + "createImageBitmap(),crypto,customElements,defaultStatus,defaultstatus,devicePixelRatio," + + "createImageBitmap(),crypto,customElements," + + "defaultstatus,defaultStatus,devicePixelRatio," + "dispatchEvent(),document,external,fetch(),find(),focus(),frameElement,frames,getComputedStyle()," + "getMatchedCSSRules(),getSelection(),history," + "indexedDB,innerHeight,innerWidth,isSecureContext,length," + "localStorage,location,locationbar,matchMedia(),menubar,moveBy(),moveTo(),name,navigator,onabort," - + "onanimationend,onanimationiteration,onanimationstart," - + "onauxclick,onbeforeunload,onblur,oncancel,oncanplay,oncanplaythrough," + + "onanimationend,onanimationiteration,onanimationstart,onappinstalled," + + "onauxclick,onbeforeinstallprompt," + + "onbeforeunload,onblur,oncancel,oncanplay,oncanplaythrough," + "onchange,onclick,onclose,oncontextmenu,oncuechange,ondblclick,ondevicemotion,ondeviceorientation," + "ondeviceorientationabsolute,ondrag,ondragend,ondragenter,ondragleave,ondragover,ondragstart,ondrop," + "ondurationchange,onemptied,onended,onerror,onfocus,ongotpointercapture," @@ -685,7 +693,7 @@ + "onpointermove,onpointerout,onpointerover,onpointerup," + "onpopstate,onprogress,onratechange," + "onrejectionhandled,onreset,onresize,onscroll,onsearch," - + "onseeked,onseeking,onselect,onshow,onstalled,onstorage," + + "onseeked,onseeking,onselect,onstalled,onstorage," + "onsubmit,onsuspend,ontimeupdate,ontoggle,ontransitionend,onunhandledrejection," + "onunload,onvolumechange,onwaiting," + "onwebkitanimationend,onwebkitanimationiteration,onwebkitanimationstart,onwebkittransitionend," @@ -695,7 +703,7 @@ + "resizeBy(),resizeTo(),screen,screenLeft,screenTop," + "screenX,screenY,scroll(),scrollbars,scrollBy(),scrollTo(),scrollX,scrollY,self,sessionStorage," + "setInterval(),setTimeout(),sortFunction(),speechSynthesis,status,statusbar,stop(),styleMedia," - + "TEMPORARY,test(),toolbar,top,webkitCancelAnimationFrame()," + + "TEMPORARY,test(),toolbar,top,visualViewport,webkitCancelAnimationFrame()," + "webkitRequestAnimationFrame(),webkitRequestFileSystem()," + "webkitResolveLocalFileSystemURL(),webkitStorageInfo," + "window", @@ -1655,7 +1663,7 @@ + "longDesc,marginHeight,marginWidth,name,referrerPolicy,sandbox,scrolling,src,srcdoc," + "width", CHROME = "align,allow,allowFullscreen,allowPaymentRequest,contentDocument,contentWindow," - + "frameBorder,getSVGDocument(),height," + + "csp,frameBorder,getSVGDocument(),height," + "longDesc,marginHeight,marginWidth,name,referrerPolicy,sandbox,scrolling,src,srcdoc," + "width", IE = "align,border,contentDocument,contentWindow,frameBorder,frameSpacing,getSVGDocument(),height," @@ -2297,6 +2305,7 @@ */ @Test @Alerts(DEFAULT = "async,charset,crossOrigin,defer,event,htmlFor,integrity,src,text,type", + CHROME = "async,charset,crossOrigin,defer,event,htmlFor,integrity,noModule,src,text,type", IE = "async,charset,defer,event,htmlFor,src,text,type", EDGE = "async,charset,defer,event,htmlFor,src,text,type") @NotYetImplemented @@ -3035,7 +3044,7 @@ + "onmouseout,onmouseover,onmouseup,onmousewheel,onpaste,onpause,onplay,onplaying,onpointercancel," + "onpointerdown,onpointerenter,onpointerleave,onpointerlockchange,onpointerlockerror,onpointermove," + "onpointerout,onpointerover,onpointerup,onprogress,onratechange,onreadystatechange,onreset,onresize," - + "onscroll,onsearch,onseeked,onseeking,onselect,onselectionchange,onselectstart,onshow,onstalled," + + "onscroll,onsearch,onseeked,onseeking,onselect,onselectionchange,onselectstart,onstalled," + "onsubmit,onsuspend,ontimeupdate,ontoggle,onvolumechange,onwaiting,onwebkitfullscreenchange," + "onwebkitfullscreenerror,onwheel,open(),origin,plugins,pointerLockElement,preferredStylesheetSet," + "prepend(),queryCommandEnabled(),queryCommandIndeterm(),queryCommandState(),queryCommandSupported()," @@ -3129,7 +3138,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "blur(),dataset,focus(),onabort,onauxclick,onblur,oncancel,oncanplay,oncanplaythrough,onchange," + @Alerts(DEFAULT = "blur(),dataset,focus(),nonce," + + "onabort,onauxclick,onblur,oncancel,oncanplay,oncanplaythrough,onchange," + "onclick,onclose,oncontextmenu,oncuechange,ondblclick,ondrag,ondragend,ondragenter,ondragleave," + "ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror,onfocus," + "ongotpointercapture,oninput,oninvalid,onkeydown,onkeypress,onkeyup,onload,onloadeddata," @@ -3136,8 +3146,9 @@ + "onloadedmetadata,onloadstart,onlostpointercapture,onmousedown,onmouseenter,onmouseleave,onmousemove," + "onmouseout,onmouseover,onmouseup,onmousewheel,onpause,onplay,onplaying,onpointercancel," + "onpointerdown,onpointerenter,onpointerleave,onpointermove,onpointerout,onpointerover,onpointerup," - + "onprogress,onratechange,onreset,onresize,onscroll,onseeked,onseeking,onselect,onshow,onstalled," - + "onsubmit,onsuspend,ontimeupdate,ontoggle,onvolumechange,onwaiting,ownerSVGElement,style,tabIndex," + + "onprogress,onratechange,onreset,onresize,onscroll,onseeked,onseeking,onselect,onstalled," + + "onsubmit,onsuspend,ontimeupdate,ontoggle,onvolumechange,onwaiting,onwheel," + + "ownerSVGElement,style,tabIndex," + "viewportElement", FF45 = "onabort,onblur,oncanplay,oncanplaythrough,onchange,onclick,oncontextmenu,oncopy,oncut,ondblclick," + "ondrag,ondragend,ondragenter,ondragleave,ondragover,ondragstart,ondrop,ondurationchange," Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostClassNameTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostClassNameTest.java 2017-09-07 18:25:12 UTC (rev 14810) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostClassNameTest.java 2017-09-08 07:23:42 UTC (rev 14811) @@ -373,9 +373,8 @@ * @throws Exception if an error occurs */ @Test - @Alerts(DEFAULT = "function ClientRect() { [native code] }", - IE = "[object ClientRect]", - FF = "exception") + @Alerts(DEFAULT = "exception", + IE = "[object ClientRect]") public void clientRect() throws Exception { test("ClientRect"); } @@ -3391,6 +3390,7 @@ */ @Test @Alerts(DEFAULT = "exception", + CHROME = "function DOMRect() { [native code] }", FF = "function DOMRect() {\n [native code]\n}") public void domRect() throws Exception { test("DOMRect"); @@ -3439,8 +3439,7 @@ * @throws Exception if an error occurs */ @Test - @Alerts(DEFAULT = "function ClientRectList() { [native code] }", - FF = "exception", + @Alerts(DEFAULT = "exception", IE = "[object ClientRectList]") public void clientRectList() throws Exception { test("ClientRectList"); @@ -4487,6 +4486,7 @@ */ @Test @Alerts(DEFAULT = "exception", + CHROME = "function DOMMatrixReadOnly() { [native code] }", FF = "function DOMMatrixReadOnly() {\n [native code]\n}") public void domMatrixReadOnly() throws Exception { test("DOMMatrixReadOnly"); @@ -4741,7 +4741,8 @@ * @throws Exception if the test fails */ @Test - @Alerts("exception") + @Alerts(DEFAULT = "exception", + CHROME = "function NetworkInformation() { [native code] }") public void networkInformation() throws Exception { test("NetworkInformation"); } @@ -5889,6 +5890,7 @@ */ @Test @Alerts(DEFAULT = "exception", + CHROME = "function DOMMatrix() { [native code] }", FF = "function DOMMatrix() {\n [native code]\n}") public void domMatrix() throws Exception { test("DOMMatrix"); @@ -8215,6 +8217,7 @@ */ @Test @Alerts(DEFAULT = "exception", + CHROME = "function DOMPointReadOnly() { [native code] }", FF = "function DOMPointReadOnly() {\n [native code]\n}") public void domPointReadOnly() throws Exception { test("DOMPointReadOnly"); @@ -8245,6 +8248,7 @@ */ @Test @Alerts(DEFAULT = "exception", + CHROME = "function DOMPoint() { [native code] }", FF = "function DOMPoint() {\n [native code]\n}") public void domPoint() throws Exception { test("DOMPoint"); @@ -8283,6 +8287,7 @@ */ @Test @Alerts(DEFAULT = "exception", + CHROME = "function DOMRectReadOnly() { [native code] }", FF = "function DOMRectReadOnly() {\n [native code]\n}") public void domRectReadOnly() throws Exception { test("DOMRectReadOnly"); @@ -9070,7 +9075,7 @@ */ @Test @Alerts(DEFAULT = "exception", - CHROME = "function WebKitCSSMatrix() { [native code] }", + CHROME = "function DOMMatrix() { [native code] }", EDGE = "function WebKitCSSMatrix() { [native code] }", FF52 = "function WebKitCSSMatrix() {\n [native code]\n}") public void webKitCSSMatrix() throws Exception { Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/intl/DateTimeFormatTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/intl/DateTimeFormatTest.java 2017-09-07 18:25:12 UTC (rev 14810) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/intl/DateTimeFormatTest.java 2017-09-08 07:23:42 UTC (rev 14811) @@ -319,8 +319,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "\u0662\u0660\u200F/\u0661\u0662\u200F/\u0662\u0660\u0661\u0662", - FF = "20\u200F/12\u200F/2012", + @Alerts(DEFAULT = "20\u200F/12\u200F/2012", IE = "\u200F20\u200F-\u200F12\u200F-\u200F2012") public void format_ar_dz() throws Exception { test("new Intl.DateTimeFormat('ar-DZ').format(date)"); @@ -380,8 +379,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "\u0662\u0660\u200F/\u0661\u0662\u200F/\u0662\u0660\u0661\u0662", - FF = "20\u200F/12\u200F/2012", + @Alerts(DEFAULT = "20\u200F/12\u200F/2012", IE = "\u200F20\u200F/\u200F12\u200F/\u200F2012") public void format_ar_ly() throws Exception { test("new Intl.DateTimeFormat('ar-LY').format(date)"); @@ -391,8 +389,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "\u0662\u0660\u200F/\u0661\u0662\u200F/\u0662\u0660\u0661\u0662", - FF = "20\u200F/12\u200F/2012", + @Alerts(DEFAULT = "20\u200F/12\u200F/2012", IE = "\u200F20\u200F-\u200F12\u200F-\u200F2012") public void format_ar_ma() throws Exception { test("new Intl.DateTimeFormat('ar-MA').format(date)"); @@ -422,9 +419,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "\u0662\u0660\u200F/\u0661\u0662\u200F/\u0662\u0660\u0661\u0662", - IE = "\u200F\u0660\u0667\u200F/\u200F\u0660\u0662\u200F/\u200F\u0661\u0664\u0663\u0664", - FF = "\u0667\u200F/\u0662\u200F/\u0661\u0664\u0663\u0664 \u0647\u0640") + @Alerts(DEFAULT = "\u0667\u200F/\u0662\u200F/\u0661\u0664\u0663\u0664 \u0647\u0640", + IE = "\u200F\u0660\u0667\u200F/\u200F\u0660\u0662\u200F/\u200F\u0661\u0664\u0663\u0664") public void format_ar_sa() throws Exception { test("new Intl.DateTimeFormat('ar-SA').format(date)"); } @@ -453,8 +449,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "\u0662\u0660\u200F/\u0661\u0662\u200F/\u0662\u0660\u0661\u0662", - FF = "20\u200F/12\u200F/2012", + @Alerts(DEFAULT = "20\u200F/12\u200F/2012", IE = "\u200F20\u200F-\u200F12\u200F-\u200F2012") public void format_ar_tn() throws Exception { test("new Intl.DateTimeFormat('ar-TN').format(date)"); @@ -749,8 +744,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "12/20/2012", - FF = "20/12/2012", + @Alerts(DEFAULT = "20/12/2012", IE = "\u200E20\u200E/\u200E12\u200E/\u200E2012") public void format_en_sg() throws Exception { test("new Intl.DateTimeFormat('en-SG').format(date)"); @@ -810,8 +804,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "20/12/2012", - FF = "20-12-2012", + @Alerts(DEFAULT = "20-12-2012", IE = "\u200E20\u200E-\u200E12\u200E-\u200E2012") public void format_es_cl() throws Exception { test("new Intl.DateTimeFormat('es-CL').format(date)"); @@ -911,8 +904,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "20/12/2012", - FF = "12/20/2012", + @Alerts(DEFAULT = "12/20/2012", IE = "\u200E12\u200E/\u200E20\u200E/\u200E2012") public void format_es_pa() throws Exception { test("new Intl.DateTimeFormat('es-PA').format(date)"); @@ -932,8 +924,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "20/12/2012", - FF = "12/20/2012", + @Alerts(DEFAULT = "12/20/2012", IE = "\u200E20\u200E/\u200E12\u200E/\u200E2012") public void format_es_pr() throws Exception { test("new Intl.DateTimeFormat('es-PR').format(date)"); |