From: <rb...@us...> - 2018-03-21 17:49:04
|
Revision: 15173 http://sourceforge.net/p/htmlunit/code/15173 Author: rbri Date: 2018-03-21 17:49:01 +0000 (Wed, 21 Mar 2018) Log Message: ----------- working on update for latest chrome (wip) Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLAnchorElement.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLAnchorElement.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLAnchorElement.java 2018-03-21 07:56:30 UTC (rev 15172) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLAnchorElement.java 2018-03-21 17:49:01 UTC (rev 15173) @@ -747,7 +747,7 @@ * Returns the {@code relList} attribute. * @return the {@code relList} attribute */ - @JsxGetter(FF) + @JsxGetter({CHROME, FF}) public DOMTokenList getRelList() { throw Context.throwAsScriptRuntimeEx(new UnsupportedOperationException()); } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2018-03-21 07:56:30 UTC (rev 15172) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2018-03-21 17:49:01 UTC (rev 15173) @@ -856,14 +856,11 @@ */ @Test @Alerts(DEFAULT = "charset,coords,download,hash,host,hostname,href,hreflang,name,origin,password,pathname,ping," - + "port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type," + + "port,protocol,referrerPolicy,rel,relList,rev,search,shape,target,text,type," + "username", FF45 = "charset,coords,download,hash,host,hostname,href,hreflang,name,origin,password,pathname,ping," + "port,protocol,rel,relList,rev,search,shape,target,text,type," + "username", - FF52 = "charset,coords,download,hash,host,hostname,href,hreflang,name,origin,password,pathname,ping," - + "port,protocol,referrerPolicy,rel,relList,rev,search,shape,target,text,type," - + "username", IE = "charset,coords,hash,host,hostname,href,hreflang,Methods,mimeType,name,nameProp,pathname,port," + "protocol,protocolLong,rel,rev,search,shape,target,text,type," + "urn", @@ -912,11 +909,9 @@ */ @Test @Alerts(DEFAULT = "alt,coords,download,hash,host,hostname,href,noHref,origin,password,pathname,ping,port," - + "protocol,referrerPolicy,rel,search,shape,target,username", + + "protocol,referrerPolicy,rel,relList,search,shape,target,username", FF45 = "alt,coords,download,hash,host,hostname,href,noHref,origin,password,pathname,ping,port,protocol," + "rel,relList,search,shape,target,username", - FF52 = "alt,coords,download,hash,host,hostname,href,noHref,origin,password,pathname,ping,port,protocol," - + "referrerPolicy,rel,relList,search,shape,target,username", IE = "alt,coords,hash,host,hostname,href,noHref,pathname,port,protocol,rel,search,shape,target", EDGE = "alt,coords,hash,host,hostname,href,noHref,pathname,port,protocol,rel,search,shape,target") @NotYetImplemented @@ -1703,7 +1698,7 @@ FF52 = "align,alt,border,complete,crossOrigin,currentSrc,height,hspace,isMap,longDesc,lowsrc,name," + "naturalHeight,naturalWidth,referrerPolicy,sizes,src,srcset,useMap,vspace,width,x," + "y", - CHROME = "align,alt,border,complete,crossOrigin,currentSrc,decode()," + CHROME = "align,alt,border,complete,crossOrigin,currentSrc,decode(),decoding," + "height,hspace,isMap,longDesc,lowsrc,name," + "naturalHeight,naturalWidth,referrerPolicy,sizes,src,srcset,useMap,vspace,width,x," + "y", @@ -2991,7 +2986,7 @@ */ @Test @Alerts(DEFAULT = "-", - CHROME = "assignedNodes(),name") + CHROME = "assignedElements(),assignedNodes(),name") @NotYetImplemented(CHROME) public void slot() throws Exception { test("slot"); @@ -3003,7 +2998,7 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "alinkColor,all,bgColor,captureEvents(),clear(),fgColor,linkColor,releaseEvents(),vlinkColor", + @Alerts(DEFAULT = "-", FF45 = "alinkColor,all,anchors,applets,bgColor,body,captureEvents(),clear(),close(),cookie,designMode," + "domain," + "embeds,execCommand(),fgColor,forms,getElementsByName(),getItems(),getSelection(),head,images," @@ -3015,8 +3010,7 @@ + "embeds,execCommand(),fgColor,forms,getElementsByName(),getSelection(),head,images," + "linkColor,links," + "open(),plugins,queryCommandEnabled(),queryCommandIndeterm(),queryCommandState()," - + "queryCommandSupported(),queryCommandValue(),releaseEvents(),scripts,vlinkColor,write(),writeln()", - IE = "-") + + "queryCommandSupported(),queryCommandValue(),releaseEvents(),scripts,vlinkColor,write(),writeln()") @NotYetImplemented public void htmlDocument() throws Exception { testString("document, xmlDocument"); |