Java tutorial
/* * Copyright (c) 2002-2016 Gargoyle Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.gargoylesoftware.htmlunit.general; import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME; import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.EDGE; import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.FF; import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.IE; import java.awt.Color; import java.awt.GradientPaint; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import javax.imageio.ImageIO; import org.apache.commons.io.FileUtils; import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.category.LayeredBarRenderer; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.util.SortOrder; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.ComparisonFailure; import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.WebDriverTestCase; import com.gargoylesoftware.htmlunit.html.HtmlPageTest; /** * Tests all properties of an object. * * @author Ahmed Ashour * @author Ronald Brill */ @RunWith(BrowserRunner.class) public class ElementPropertiesTest extends WebDriverTestCase { private static DefaultCategoryDataset DATASET_; private static StringBuilder HTML_ = new StringBuilder(); private static BrowserVersion BROWSER_VERSION_; private static int IMPLEMENTED_COUNT_; private static int TOTAL_COUNT_; private void test(final String tagName) throws Exception { testString("document.createElement('" + tagName + "'), unknown"); } private void testString(final String string) throws Exception { final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_ + "<html><head><script>\n" + " var ieMethods = ['abort', 'add', 'addBehavior', 'AddChannel', 'AddDesktopComponent', " + "'addElement', 'AddFavorite', 'addFilter', 'addImport', 'AddInPrivateSubscription', 'addPageRule', " + "'addReadRequest', 'addRule', 'AddSearchProvider', 'AddService', 'AddToFavoritesBar', 'alert', " + "'appendChild', 'appendData', 'applyElement', 'assign', 'attachEvent', 'AutoCompleteSaveForm', " + "'AutoScan', 'back', 'blur', 'bubbleEvent', 'ChooseColorDlg', 'clear', 'clearAttributes', " + "'clearData', 'clearInterval', 'clearRequest', 'clearTimeout', 'click', 'cloneNode', 'close', " + "'collapse', 'compareEndPoints', 'componentFromPoint', 'confirm', 'contains', " + "'ContentDiscoveryReset', 'createAttribute', 'createCaption', 'createComment', " + "'createControlRange', 'createDocumentFragment', 'createElement', 'createEventObject', " + "'createPopup', 'createRange', 'createRangeCollection', 'createStyleSheet', 'createTextNode', " + "'createTextRange', 'createTFoot', 'createTHead', 'deleteCaption', 'deleteCell', 'deleteData', " + "'deleteRow', 'deleteTFoot', 'deleteTHead', 'detachEvent', 'doImport', 'doReadRequest', 'doScroll', " + "'dragDrop', 'duplicate', 'elementFromPoint', 'empty', 'execCommand', 'execScript', 'expand', " + "'findText', 'fireEvent', 'firstPage', 'focus', 'forward', 'getAdjacentText', " + "'getAllResponseHeaders', 'getAttribute', 'getAttributeNode', 'getBookmark', " + "'getBoundingClientRect', 'getCharset', 'getClientRects', 'getData', 'getElementById', " + "'getElementsByName', 'getElementsByTagName', 'getExpression', 'getItem', 'getNamedItem', " + "'getResponseHeader', 'go', 'hasAttribute', 'hasChildNodes', 'hasFeature', 'hasFocus', 'hide', " + "'ImportExportFavorites', 'inRange', 'insertAdjacentElement', 'insertAdjacentHTML', " + "'insertAdjacentText', 'insertBefore', 'insertCell', 'insertData', 'insertRow', 'isEqual', " + "'IsSearchProviderInstalled', 'IsServiceInstalled', 'IsSubscribed', 'item', 'Item', 'javaEnabled', " + "'key', 'lastPage', 'mergeAttributes', 'move', 'moveBy', 'moveEnd', 'moveRow', 'moveStart', " + "'moveTo', 'moveToBookmark', 'moveToElementText', 'moveToPoint', 'namedItem', 'namedRecordset', " + "'navigate', 'NavigateAndFind', 'nextPage', 'normalize', 'open', 'parentElement', 'pasteHTML', " + "'postMessage', 'previousPage', 'print', 'prompt', 'queryCommandEnabled', 'queryCommandIndeterm', " + "'queryCommandState', 'queryCommandSupported', 'queryCommandValue', 'querySelector', " + "'querySelectorAll', 'raiseEvent', 'recalc', 'refresh', 'releaseCapture', 'reload', 'remove', " + "'removeAttribute', 'removeAttributeNode', 'removeBehavior', 'removeChild', 'removeExpression', " + "'removeImport', 'removeItem', 'removeNamedItem', 'removeNode', 'removeRule', 'replace', " + "'replaceAdjacentText', 'replaceChild', 'replaceData', 'replaceNode', 'reset', 'resizeBy', " + "'resizeTo', 'scroll', 'scrollBy', 'scrollIntoView', 'scrollTo', 'select', 'send', 'setActive', " + "'setAttribute', 'setAttributeNode', 'setCapture', 'setContextMenu', 'setData', 'setEndPoint', " + "'setExpression', 'setInterval', 'setItem', 'setNamedItem', 'setRequestHeader', 'setTimeout', " + "'show', 'ShowBrowserUI', 'showHelp', 'showModalDialog', 'showModelessDialog', 'splitText', " + "'start', 'stop', 'submit', 'substringData', 'swapNode', 'tags', 'taintEnabled', 'toStaticHTML', " + "'updateSettings', 'urns', 'write', 'writeln'];\n" + " function test(event) {\n" + " var xmlDocument = createXmlDocument();\n" + " var element = xmlDocument.createElement('wakwak');\n" + " var unknown = document.createElement('harhar');\n" + " var div = document.createElement('div');\n" + " process(" + string + ");\n" + " }\n" + "\n" + " /*\n" + " * Alerts all properties (including functions) of the specified object.\n" + " *\n" + " * @param object the object to write the property of\n" + " * @param parent the direct parent of the object (or child of that parent), can be null.\n" + " * The parent is used to exclude any inherited properties.\n" + " */\n" + " function process(object, parent) {\n" + " var all = [];\n" + " for (var property in object) {\n" + " try {\n" + " if (parent == null || !(property in parent)) {\n" + " if (typeof object[property] == 'function')\n" + " all.push(property + '()');\n" + " else\n" + " all.push(property);\n" + " }\n" + " } catch(e) {\n" + " try{\n" + " if (typeof object[property] == 'function')\n" + " all.push(property + '()');\n" + " else\n" + " all.push(property);\n" + " } catch (e) {\n" + " all.push(property.toString());\n" + " }\n" + " }\n" + " }\n" + " if (document.all) {\n" + " for (var index in ieMethods) {\n" + " var method = ieMethods[index];\n" + " try {\n" + " if (object[method] !== undefined && (parent == null || parent[method] === undefined)) {\n" + " all.push(method + '()');\n" + " }\n" + " } catch(e) {\n" + " all.push(method + '()');\n" + " }\n" + " }\n" + " }\n" + " all.sort(sortFunction);\n" + " alert(all);\n" + " }\n" + " function sortFunction(s1, s2) {\n" + " return s1.toLowerCase() > s2.toLowerCase() ? 1 : -1;\n" + " }\n" + " function createXmlDocument() {\n" + " if (document.implementation && document.implementation.createDocument)\n" + " return document.implementation.createDocument('', '', null);\n" + " else if (window.ActiveXObject)\n" + " return new ActiveXObject('Microsoft.XMLDOM');\n" + " }\n" + "</script></head><body onload='test(event)'>\n" + "</body></html>"; if (BROWSER_VERSION_ == null) { BROWSER_VERSION_ = getBrowserVersion(); } final String expected = getExpectedAlerts().length == 0 ? "" : getExpectedAlerts()[0]; String actual; ComparisonFailure failure = null; try { loadPageWithAlerts2(html); actual = expected; } catch (final ComparisonFailure c) { failure = c; actual = c.getActual(); actual = actual.substring(1, actual.length() - 1); } final List<String> realProperties = stringAsArray(expected); final List<String> simulatedProperties = stringAsArray(actual); final List<String> erroredProperties = new ArrayList<>(simulatedProperties); erroredProperties.removeAll(realProperties); final List<String> implementedProperties = new ArrayList<>(simulatedProperties); implementedProperties.retainAll(realProperties); IMPLEMENTED_COUNT_ += implementedProperties.size(); TOTAL_COUNT_ += realProperties.size(); String methodName = null; for (final StackTraceElement e : new Exception().getStackTrace()) { if (e.getClassName().equals(getClass().getName())) { methodName = e.getMethodName(); } else { break; } } htmlDetails(methodName, HTML_, realProperties, implementedProperties, erroredProperties); DATASET_.addValue(implementedProperties.size(), "Implemented", methodName); DATASET_.addValue(realProperties.size(), getBrowserVersion().getNickname().replace("FF", "Firefox ").replace("IE", "Internet Explorer "), methodName); DATASET_.addValue(erroredProperties.size(), "Should not be implemented", methodName); if (failure != null) { throw failure; } } private static List<String> stringAsArray(final String string) { if (string.isEmpty()) { return Collections.emptyList(); } return Arrays.asList(string.split(",")); } /** * Resets browser-specific values. */ @BeforeClass public static void beforeClass() { DATASET_ = new DefaultCategoryDataset(); HTML_.setLength(0); BROWSER_VERSION_ = null; IMPLEMENTED_COUNT_ = 0; TOTAL_COUNT_ = 0; } /** * Saves HTML and PNG files. * * @throws IOException if an error occurs */ @AfterClass public static void saveAll() throws IOException { saveChart(); FileUtils.writeStringToFile( new File(getTargetDirectory() + "/properties-" + BROWSER_VERSION_.getNickname() + ".html"), htmlHeader().append(overview()).append(htmlDetailsHeader()).append(HTML_) .append(htmlDetailsFooter()).append(htmlFooter()).toString()); } private static void saveChart() throws IOException { final JFreeChart chart = ChartFactory.createBarChart( "HtmlUnit implemented properties and methods for " + BROWSER_VERSION_.getNickname(), "Objects", "Count", DATASET_, PlotOrientation.HORIZONTAL, true, true, false); final CategoryPlot plot = (CategoryPlot) chart.getPlot(); final NumberAxis axis = (NumberAxis) plot.getRangeAxis(); axis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); final LayeredBarRenderer renderer = new LayeredBarRenderer(); plot.setRenderer(renderer); plot.setRowRenderingOrder(SortOrder.DESCENDING); renderer.setSeriesPaint(0, new GradientPaint(0, 0, Color.green, 0, 0, new Color(0, 64, 0))); renderer.setSeriesPaint(1, new GradientPaint(0, 0, Color.blue, 0, 0, new Color(0, 0, 64))); renderer.setSeriesPaint(2, new GradientPaint(0, 0, Color.red, 0, 0, new Color(64, 0, 0))); ImageIO.write(chart.createBufferedImage(1200, 2400), "png", new File(getTargetDirectory() + "/properties-" + BROWSER_VERSION_.getNickname() + ".png")); } /** * Returns the 'target' directory. * @return the 'target' directory */ public static String getTargetDirectory() { final String dirName = "./target"; final File dir = new File(dirName); if (!dir.exists()) { if (!dir.mkdir()) { throw new RuntimeException("Could not create artifacts directory"); } } return dirName; } private static StringBuilder htmlHeader() { final StringBuilder html = new StringBuilder(); html.append("<html><head>\n"); html.append("<style type=\"text/css\">\n"); html.append("table.bottomBorder { border-collapse:collapse; }\n"); html.append("table.bottomBorder td, table.bottomBorder th { " + "border-bottom:1px dotted black;padding:5px; }\n"); html.append("table.bottomBorder td.numeric { text-align:right; }\n"); html.append("</style>\n"); html.append("</head><body>\n"); html.append("<div align='center'>").append("<h2>") .append("HtmlUnit implemented properties and methods for " + BROWSER_VERSION_.getNickname()) .append("</h2>").append("</div>\n"); return html; } private static StringBuilder overview() { final StringBuilder html = new StringBuilder(); html.append("<table class='bottomBorder'>"); html.append("<tr>\n"); html.append("<th>Total Implemented:</th>\n"); html.append("<td>" + IMPLEMENTED_COUNT_).append(" / " + TOTAL_COUNT_).append("</td>\n"); html.append("</tr>\n"); html.append("</table>\n"); html.append("<p><br></p>\n"); return html; } private static StringBuilder htmlFooter() { final StringBuilder html = new StringBuilder(); html.append("<br>").append("Legend:").append("<br>").append("<span style='color: blue'>") .append("To be implemented").append("</span>").append("<br>").append("<span style='color: green'>") .append("Implemented").append("</span>").append("<br>").append("<span style='color: red'>") .append("Should not be implemented").append("</span>"); html.append("\n"); html.append("</body>\n"); html.append("</html>\n"); return html; } private static StringBuilder htmlDetailsHeader() { final StringBuilder html = new StringBuilder(); html.append("<table class='bottomBorder' width='100%'>"); html.append("<tr>\n"); html.append("<th>Class</th><th>Methods/Properties</th><th>Counts</th>\n"); html.append("</tr>"); return html; } private static StringBuilder htmlDetails(final String name, final StringBuilder html, final List<String> realProperties, final List<String> implementedProperties, final List<String> erroredProperties) { html.append("<tr>").append('\n').append("<td rowspan='2'>").append("<a name='" + name + "'>").append(name) .append("</a>").append("</td>").append('\n').append("<td>"); int implementedCount = 0; for (int i = 0; i < realProperties.size(); i++) { final String color; if (implementedProperties.contains(realProperties.get(i))) { color = "green"; implementedCount++; } else { color = "blue"; } html.append("<span style='color: " + color + "'>").append(realProperties.get(i)).append("</span>"); if (i < realProperties.size() - 1) { html.append(',').append(' '); } } if (realProperties.isEmpty()) { html.append(" "); } html.append("</td>").append("<td>").append(implementedCount).append('/').append(realProperties.size()) .append("</td>").append("</tr>").append('\n'); html.append("<tr>").append("<td>"); for (int i = 0; i < erroredProperties.size(); i++) { html.append("<span style='color: red'>").append(erroredProperties.get(i)).append("</span>"); if (i < erroredProperties.size() - 1) { html.append(',').append(' '); } } if (erroredProperties.isEmpty()) { html.append(" "); } html.append("</td>").append("<td>").append(erroredProperties.size()).append("</td>").append("</tr>\n"); return html; } private static StringBuilder htmlDetailsFooter() { final StringBuilder html = new StringBuilder(); html.append("</table>"); return html; } /** * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "appendData(),data,deleteData(),insertData(),length,replaceData(),splitText(),substringData()," + "wholeText", IE = "appendData(),data,deleteData(),insertData(),length,replaceData(),replaceWholeText(),splitText()," + "substringData()," + "wholeText", EDGE = "appendData(),data,deleteData(),insertData(),length,replaceData(),replaceWholeText(),splitText()," + "substringData()," + "wholeText") @NotYetImplemented({ IE, EDGE }) public void text() throws Exception { testString("document.createTextNode('some text'), unknown"); } /** * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "name,ownerElement,specified,value", IE = "expando,name,ownerElement,specified,value") @NotYetImplemented(EDGE) public void attr() throws Exception { testString("document.createAttribute('some_attrib'), unknown"); } /** * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "appendData(),data,deleteData(),insertData(),length,replaceData(),substringData()", IE = "appendData(),data,deleteData(),insertData(),length,replaceData(),substringData(),text", EDGE = "appendData(),data,deleteData(),insertData(),length,replaceData(),substringData(),text") @NotYetImplemented(EDGE) public void comment() throws Exception { testString("document.createComment('come_comment'), unknown"); } /** * @throws Exception if the test fails */ @Test @Alerts(IE = "namedRecordset(),recordset") @NotYetImplemented(IE) public void unknown() throws Exception { testString("unknown, div"); } /** * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "accessKey,blur(),click(),contentEditable,dataset,dir,draggable,focus(),hidden," + "innerText,isContentEditable,lang,onabort," + "onautocomplete,onautocompleteerror,onblur,oncancel,oncanplay,oncanplaythrough,onchange,onclick," + "onclose,oncontextmenu,oncuechange,ondblclick,ondrag,ondragend,ondragenter,ondragleave,ondragover," + "ondragstart,ondrop,ondurationchange,onemptied,onended,onerror,onfocus,oninput,oninvalid," + "onkeydown,onkeypress,onkeyup,onload,onloadeddata,onloadedmetadata,onloadstart,onmousedown," + "onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup,onmousewheel,onpause," + "onplay,onplaying,onprogress,onratechange,onreset,onresize,onscroll,onseeked,onseeking,onselect," + "onshow,onstalled,onsubmit,onsuspend,ontimeupdate,ontoggle,onvolumechange,onwaiting,outerText," + "spellcheck,style,tabIndex,title,translate," + "webkitdropzone", FF31 = "accessKey,accessKeyLabel,blur(),className,click(),contentEditable,contextMenu,dataset,dir," + "draggable,focus(),hidden,isContentEditable,itemId,itemProp,itemRef,itemScope,itemType,itemValue," + "lang,offsetHeight,offsetLeft,offsetParent,offsetTop,offsetWidth,onabort,onblur,oncanplay," + "oncanplaythrough,onchange,onclick,oncontextmenu,oncopy,oncut,ondblclick,ondrag,ondragend," + "ondragenter,ondragleave,ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror," + "onfocus,oninput,oninvalid,onkeydown,onkeypress,onkeyup,onload,onloadeddata,onloadedmetadata," + "onloadstart,onmousedown,onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup," + "onmozfullscreenchange,onmozfullscreenerror,onmozpointerlockchange,onmozpointerlockerror,onpaste," + "onpause,onplay,onplaying,onprogress,onratechange,onreset,onscroll,onseeked,onseeking,onselect," + "onshow,onstalled,onsubmit,onsuspend,ontimeupdate,onvolumechange,onwaiting,properties,spellcheck," + "style,tabIndex," + "title", FF38 = "accessKey,accessKeyLabel,blur(),click(),contentEditable,contextMenu,dataset,dir," + "draggable,focus(),hidden,isContentEditable,itemId,itemProp,itemRef,itemScope,itemType,itemValue," + "lang,offsetHeight,offsetLeft,offsetParent,offsetTop,offsetWidth,onabort,onblur,oncanplay," + "oncanplaythrough,onchange,onclick,oncontextmenu,oncopy,oncut,ondblclick,ondrag,ondragend," + "ondragenter,ondragleave,ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror," + "onfocus,oninput,oninvalid,onkeydown,onkeypress,onkeyup,onload,onloadeddata,onloadedmetadata," + "onloadstart,onmousedown,onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup," + "onmozfullscreenchange,onmozfullscreenerror,onmozpointerlockchange,onmozpointerlockerror,onpaste," + "onpause,onplay,onplaying,onprogress,onratechange,onreset,onresize,onscroll,onseeked,onseeking," + "onselect,onshow,onstalled,onsubmit,onsuspend,ontimeupdate,onvolumechange,onwaiting,properties," + "spellcheck,style,tabIndex," + "title", IE = "accessKey,applyElement(),blur(),canHaveChildren,canHaveHTML,children,classList,className," + "clearAttributes(),click(),componentFromPoint(),contains(),contentEditable,createControlRange()," + "currentStyle,dataset,dir,disabled,dragDrop(),draggable,focus(),getAdjacentText()," + "getElementsByClassName(),hidden,hideFocus,id,innerHTML,innerText,insertAdjacentElement()," + "insertAdjacentHTML(),insertAdjacentText(),isContentEditable,isDisabled,isMultiLine,isTextEdit," + "lang,language,mergeAttributes(),msGetInputContext(),namedRecordset(),offsetHeight,offsetLeft," + "offsetParent,offsetTop,offsetWidth,onabort,onactivate,onbeforeactivate,onbeforecopy,onbeforecut," + "onbeforedeactivate,onbeforepaste,onblur,oncanplay,oncanplaythrough,onchange,onclick," + "oncontextmenu,oncopy,oncuechange,oncut,ondblclick,ondeactivate,ondrag,ondragend,ondragenter," + "ondragleave,ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror,onfocus," + "onfocusin,onfocusout,onhelp,oninput,onkeydown,onkeypress,onkeyup,onload,onloadeddata," + "onloadedmetadata,onloadstart,onmousedown,onmouseenter,onmouseleave,onmousemove,onmouseout," + "onmouseover,onmouseup,onmousewheel,onmscontentzoom,onmsmanipulationstatechanged,onpaste,onpause," + "onplay,onplaying,onprogress,onratechange,onreset,onscroll,onseeked,onseeking,onselect," + "onselectstart,onstalled,onsubmit,onsuspend,ontimeupdate,onvolumechange,onwaiting,outerHTML," + "outerText,parentElement,parentTextEdit,recordNumber,recordset,releaseCapture(),removeNode()," + "replaceAdjacentText(),replaceNode(),runtimeStyle,scrollIntoView(),setActive(),setCapture()," + "sourceIndex,spellcheck,style,swapNode(),tabIndex,title,uniqueID," + "uniqueNumber", EDGE = "accessKey,blur(),children,className,click(),contentEditable,dataset,dir,dragDrop(),draggable," + "focus(),getElementsByClassName(),hidden,hideFocus,innerHTML,innerText,insertAdjacentElement()," + "insertAdjacentHTML(),insertAdjacentText(),isContentEditable,lang,msGetInputContext()," + "offsetHeight,offsetLeft,offsetParent,offsetTop,offsetWidth,onabort,onactivate,onbeforeactivate," + "onbeforecopy,onbeforecut,onbeforedeactivate,onbeforepaste,onblur,oncanplay,oncanplaythrough," + "onchange,onclick,oncontextmenu,oncopy,oncuechange,oncut,ondblclick,ondeactivate,ondrag,ondragend," + "ondragenter,ondragleave,ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror," + "onfocus,oninput,onkeydown,onkeypress,onkeyup,onload,onloadeddata,onloadedmetadata,onloadstart," + "onmousedown,onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup,onmousewheel," + "onmscontentzoom,onmsmanipulationstatechanged,onpaste,onpause,onplay,onplaying,onprogress," + "onratechange,onreset,onscroll,onseeked,onseeking,onselect,onselectstart,onstalled,onsubmit," + "onsuspend,ontimeupdate,onvolumechange,onwaiting,outerHTML,outerText,scrollIntoView(),setActive()," + "spellcheck,style,tabIndex," + "title") @NotYetImplemented public void htmlElement() throws Exception { testString("unknown, element"); } /** * @throws Exception if the test fails */ @Test @Alerts(IE = "blockDirection,clipBottom,clipLeft,clipRight,clipTop,hasLayout") @NotYetImplemented(IE) public void currentStyle() throws Exception { testString("document.body.currentStyle, document.body.style"); } /** * @throws Exception if the test fails */ @Test @Alerts(CHROME = "AT_TARGET,BLUR,bubbles,BUBBLING_PHASE,cancelable,cancelBubble,CAPTURING_PHASE,CHANGE,CLICK," + "currentTarget,DBLCLICK,defaultPrevented,DRAGDROP,eventPhase,FOCUS,initEvent(),isTrusted," + "KEYDOWN,KEYPRESS,KEYUP,MOUSEDOWN,MOUSEDRAG,MOUSEMOVE,MOUSEOUT,MOUSEOVER,MOUSEUP,NONE," + "path,preventDefault(),returnValue,SELECT,srcElement,stopImmediatePropagation(),stopPropagation()," + "target,timeStamp,type", FF31 = "ALT_MASK,AT_TARGET,bubbles,BUBBLING_PHASE,cancelable,CAPTURING_PHASE,CONTROL_MASK,currentTarget," + "defaultPrevented,eventPhase,explicitOriginalTarget,getPreventDefault(),initEvent(),isTrusted," + "META_MASK,NONE,originalTarget,preventDefault(),SHIFT_MASK,stopImmediatePropagation()," + "stopPropagation(),target,timeStamp," + "type", FF38 = "ALT_MASK,AT_TARGET,bubbles,BUBBLING_PHASE,cancelable,CAPTURING_PHASE,CONTROL_MASK,currentTarget," + "defaultPrevented,eventPhase,explicitOriginalTarget,getPreventDefault(),initEvent(),isTrusted," + "META_MASK,NONE,originalTarget,preventDefault(),SHIFT_MASK,stopImmediatePropagation()," + "stopPropagation(),target,timeStamp," + "type", IE = "AT_TARGET,bubbles,BUBBLING_PHASE,cancelable,cancelBubble,CAPTURING_PHASE,currentTarget," + "defaultPrevented,eventPhase,initEvent(),isTrusted,preventDefault(),srcElement," + "stopImmediatePropagation(),stopPropagation(),target,timeStamp," + "type", EDGE = "AT_TARGET,bubbles,BUBBLING_PHASE,cancelable,cancelBubble,CAPTURING_PHASE,currentTarget," + "defaultPrevented,eventPhase,initEvent(),isTrusted,preventDefault(),returnValue,srcElement," + "stopImmediatePropagation(),stopPropagation(),target,timeStamp," + "type") @NotYetImplemented public void event() throws Exception { testString("event ? event : window.event, null"); } /** * @throws Exception if the test fails */ @Test @Alerts(CHROME = "addEventListener(),alert(),applicationCache,atob(),blur(),btoa(),caches,cancelAnimationFrame()," + "captureEvents(),chrome,clearInterval(),clearTimeout(),clientInformation,close(),closed,confirm()," + "console,createXmlDocument(),crypto,defaultstatus,defaultStatus,devicePixelRatio," + "dispatchEvent(),document,external,fetch(),find(),focus(),frameElement,frames,getComputedStyle()," + "getMatchedCSSRules(),getSelection(),history,ieMethods,indexedDB,innerHeight,innerWidth,length," + "localStorage,location,locationbar,matchMedia(),menubar,moveBy(),moveTo(),name,navigator,onabort," + "onanimationend,onanimationiteration,onanimationstart," + "onautocomplete,onautocompleteerror,onbeforeunload,onblur,oncancel,oncanplay,oncanplaythrough," + "onchange,onclick,onclose,oncontextmenu,oncuechange,ondblclick,ondevicemotion,ondeviceorientation," + "ondrag,ondragend,ondragenter,ondragleave,ondragover,ondragstart,ondrop,ondurationchange," + "onemptied,onended,onerror,onfocus,onhashchange,oninput,oninvalid,onkeydown,onkeypress,onkeyup," + "onlanguagechange,onload(),onloadeddata,onloadedmetadata,onloadstart,onmessage,onmousedown," + "onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup,onmousewheel,onoffline," + "ononline,onpagehide,onpageshow,onpause,onplay,onplaying,onpopstate,onprogress,onratechange," + "onreset,onresize,onscroll,onsearch,onseeked,onseeking,onselect,onshow,onstalled,onstorage," + "onsubmit,onsuspend,ontimeupdate,ontoggle,ontransitionend,onunload,onvolumechange,onwaiting," + "onwebkitanimationend,onwebkitanimationiteration,onwebkitanimationstart,onwebkittransitionend," + "onwheel,open(),openDatabase(),opener,outerHeight,outerWidth,pageXOffset,pageYOffset,parent," + "performance,PERSISTENT,personalbar,postMessage(),print(),process(),prompt(),releaseEvents()," + "removeEventListener(),requestAnimationFrame(),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(),webkitCancelRequestAnimationFrame()," + "webkitIndexedDB,webkitRequestAnimationFrame(),webkitRequestFileSystem()," + "webkitResolveLocalFileSystemURL(),webkitStorageInfo," + "window", FF31 = "addEventListener(),alert(),applicationCache,atob(),back(),blur(),btoa(),cancelAnimationFrame()," + "captureEvents(),clearInterval(),clearTimeout(),close(),closed,confirm(),console,content," + "createXmlDocument(),crypto,devicePixelRatio,dispatchEvent(),document,dump(),external,find()," + "focus(),forward(),frameElement,frames,fullScreen,getComputedStyle(),getDefaultComputedStyle()," + "getInterface(),getSelection(),history,home(),ieMethods,indexedDB,innerHeight,innerWidth," + "InstallTrigger,length,localStorage,location,locationbar,matchMedia(),menubar,moveBy(),moveTo()," + "mozAnimationStartTime,mozCancelAnimationFrame(),mozCancelRequestAnimationFrame(),mozIndexedDB," + "mozInnerScreenX,mozInnerScreenY,mozPaintCount,mozRequestAnimationFrame(),name,navigator,onabort," + "onafterprint,onafterscriptexecute,onbeforeprint,onbeforescriptexecute,onbeforeunload,onblur," + "oncanplay,oncanplaythrough,onchange,onclick,oncontextmenu,oncopy,oncut,ondblclick,ondevicelight," + "ondevicemotion,ondeviceorientation,ondeviceproximity,ondrag,ondragend,ondragenter,ondragleave," + "ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror,onfocus," + "ongotpointercapture,onhashchange,oninput,oninvalid,onkeydown,onkeypress,onkeyup,onload()," + "onloadeddata,onloadedmetadata,onloadstart,onlostpointercapture,onmessage,onmousedown," + "onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup,onmozfullscreenchange," + "onmozfullscreenerror,onmozpointerlockchange,onmozpointerlockerror,onoffline,ononline,onpagehide," + "onpageshow,onpaste,onpause,onplay,onplaying,onpointercancel,onpointerdown,onpointerenter," + "onpointerleave,onpointermove,onpointerout,onpointerover,onpointerup,onpopstate,onprogress," + "onratechange,onreset,onresize,onscroll,onseeked,onseeking,onselect,onshow,onstalled,onsubmit," + "onsuspend,ontimeupdate,onunload,onuserproximity,onvolumechange,onwaiting,onwheel,open()," + "openDialog(),opener,outerHeight,outerWidth,pageXOffset,pageYOffset,parent,performance," + "personalbar,postMessage(),print(),process(),prompt(),releaseEvents(),removeEventListener()," + "requestAnimationFrame(),resizeBy(),resizeTo(),screen,screenX,screenY,scroll(),scrollbars," + "scrollBy(),scrollByLines(),scrollByPages(),scrollMaxX,scrollMaxY,scrollTo(),scrollX,scrollY,self," + "sessionStorage,setInterval(),setResizable(),setTimeout(),showModalDialog(),sidebar," + "sizeToContent(),sortFunction(),speechSynthesis,status,statusbar,stop(),test(),toolbar,top," + "updateCommands()," + "window", FF38 = "addEventListener(),alert(),applicationCache,atob(),blur(),btoa(),cancelAnimationFrame()," + "captureEvents(),clearInterval(),clearTimeout(),close(),closed,confirm(),console,content," + "createXmlDocument(),crypto,devicePixelRatio,dispatchEvent(),document,dump(),external,find()," + "focus(),frameElement,frames,fullScreen,getComputedStyle(),getDefaultComputedStyle()," + "getSelection(),history,ieMethods,indexedDB,innerHeight,innerWidth," + "InstallTrigger,length,localStorage,location,locationbar,matchMedia(),menubar,moveBy(),moveTo()," + "mozAnimationStartTime,mozCancelAnimationFrame(),mozCancelRequestAnimationFrame()," + "mozInnerScreenX,mozInnerScreenY,mozPaintCount,mozRequestAnimationFrame(),name,navigator,onabort," + "onafterprint,onbeforeprint,onbeforeunload,onblur," + "oncanplay,oncanplaythrough,onchange,onclick,oncontextmenu,ondblclick,ondevicelight," + "ondevicemotion,ondeviceorientation,ondeviceproximity,ondrag,ondragend,ondragenter,ondragleave," + "ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror,onfocus," + "onhashchange,oninput,oninvalid,onkeydown,onkeypress,onkeyup,onlanguagechange,onload()," + "onloadeddata,onloadedmetadata,onloadstart,onmessage,onmousedown," + "onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup,onmozfullscreenchange," + "onmozfullscreenerror,onmozpointerlockchange,onmozpointerlockerror,onoffline,ononline,onpagehide," + "onpageshow,onpause,onplay,onplaying," + "onpopstate,onprogress," + "onratechange,onreset,onresize,onscroll,onseeked,onseeking,onselect,onshow,onstalled,onsubmit," + "onsuspend,ontimeupdate,onunload,onuserproximity,onvolumechange,onwaiting,onwheel,open()," + "opener,outerHeight,outerWidth,pageXOffset,pageYOffset,parent,performance," + "personalbar,postMessage(),print(),process(),prompt(),releaseEvents(),removeEventListener()," + "requestAnimationFrame(),resizeBy(),resizeTo(),screen,screenX,screenY,scroll(),scrollbars," + "scrollBy(),scrollByLines(),scrollByPages(),scrollMaxX,scrollMaxY,scrollTo(),scrollX,scrollY,self," + "sessionStorage,setInterval(),setResizable(),setTimeout(),showModalDialog(),sidebar," + "sizeToContent(),sortFunction(),status,statusbar,stop(),test(),toolbar,top," + "updateCommands()," + "window", IE = "addEventListener(),alert(),animationStartTime,applicationCache,atob(),blur(),btoa()," + "cancelAnimationFrame(),captureEvents(),clearImmediate(),clearInterval(),clearTimeout()," + "clientInformation,clipboardData,close(),closed,confirm(),console,createXmlDocument()," + "defaultStatus,devicePixelRatio,dispatchEvent(),document,doNotTrack,event,external,focus()," + "frameElement,frames,getComputedStyle(),getSelection(),history,ieMethods,indexedDB,innerHeight," + "innerWidth,item(),length,localStorage,location,matchMedia(),maxConnectionsPerServer,moveBy()," + "moveTo(),msAnimationStartTime,msCancelRequestAnimationFrame(),msClearImmediate(),msCrypto," + "msIndexedDB,msIsStaticHTML(),msMatchMedia(),msRequestAnimationFrame(),msSetImmediate()," + "msWriteProfilerMark(),name,navigate(),navigator,offscreenBuffering,onabort,onafterprint," + "onbeforeprint,onbeforeunload,onblur,oncanplay,oncanplaythrough,onchange,onclick,oncontextmenu," + "ondblclick,ondrag,ondragend,ondragenter,ondragleave,ondragover,ondragstart,ondrop," + "ondurationchange,onemptied,onended,onerror,onfocus,onfocusin,onfocusout,onhashchange,onhelp," + "oninput,onkeydown,onkeypress,onkeyup,onload(),onloadeddata,onloadedmetadata,onloadstart," + "onmessage,onmousedown,onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover,onmouseup," + "onmousewheel,onmsgesturechange,onmsgesturedoubletap,onmsgestureend,onmsgesturehold," + "onmsgesturestart,onmsgesturetap,onmsinertiastart,onmspointercancel,onmspointerdown," + "onmspointerenter,onmspointerleave,onmspointermove,onmspointerout,onmspointerover,onmspointerup," + "onoffline,ononline,onpagehide,onpageshow,onpause,onplay,onplaying,onpointercancel,onpointerdown," + "onpointerenter,onpointerleave,onpointermove,onpointerout,onpointerover,onpointerup,onpopstate," + "onprogress,onratechange,onreadystatechange,onreset,onresize,onscroll,onseeked,onseeking,onselect," + "onstalled,onstorage,onsubmit,onsuspend,ontimeupdate,onunload,onvolumechange,onwaiting,open()," + "opener,outerHeight,outerWidth,pageXOffset,pageYOffset,parent,performance,postMessage(),print()," + "process(),prompt(),releaseEvents(),removeEventListener(),requestAnimationFrame(),resizeBy()," + "resizeTo(),screen,screenLeft,screenTop,screenX,screenY,scroll(),scrollBy(),scrollTo(),self," + "sessionStorage,setImmediate(),setInterval(),setTimeout(),showHelp(),showModalDialog()," + "showModelessDialog(),sortFunction(),status,styleMedia,test(),top,toStaticHTML(),toString()," + "window", EDGE = "addEventListener(),alert(),applicationCache,atob(),blur(),btoa(),cancelAnimationFrame()," + "captureEvents(),chrome,clearImmediate(),clearInterval(),clearTimeout(),clientInformation,close()," + "closed,confirm(),console,createXmlDocument(),crypto,defaultStatus,devicePixelRatio," + "dispatchEvent(),document,doNotTrack,event,external,focus(),frameElement,frames," + "getComputedStyle(),getMatchedCSSRules(),getSelection(),history,ieMethods,indexedDB,innerHeight," + "innerWidth,length,localStorage,location,locationbar,matchMedia(),menubar,moveBy(),moveTo()," + "msWriteProfilerMark(),name,navigator,offscreenBuffering,onabort,onafterprint,onbeforeprint," + "onbeforeunload,onblur,oncanplay,oncanplaythrough,onchange,onclick,oncompassneedscalibration," + "oncontextmenu,ondblclick,ondevicemotion,ondeviceorientation,ondrag,ondragend,ondragenter," + "ondragleave,ondragover,ondragstart,ondrop,ondurationchange,onemptied,onended,onerror,onfocus," + "onhashchange,oninput,onkeydown,onkeypress,onkeyup,onload(),onloadeddata,onloadedmetadata," + "onloadstart,onmessage,onmousedown,onmouseenter,onmouseleave,onmousemove,onmouseout,onmouseover," + "onmouseup,onmousewheel,onmsgesturechange,onmsgesturedoubletap,onmsgestureend,onmsgesturehold," + "onmsgesturestart,onmsgesturetap,onmsinertiastart,onoffline,ononline,onpagehide,onpageshow," + "onpause,onplay,onplaying,onpointercancel,onpointerdown,onpointerenter,onpointerleave," + "onpointermove,onpointerout,onpointerover,onpointerup,onpopstate,onprogress,onratechange," + "onreadystatechange,onreset,onresize,onscroll,onseeked,onseeking,onselect,onstalled,onstorage," + "onsubmit,onsuspend,ontimeupdate,onunload,onvolumechange,onwaiting,onwheel,open(),opener," + "outerHeight,outerWidth,pageXOffset,pageYOffset,parent,performance,personalbar,postMessage()," + "print(),process(),prompt(),releaseEvents(),removeEventListener(),requestAnimationFrame()," + "resizeBy(),resizeTo(),screen,screenLeft,screenTop,screenX,screenY,scroll(),scrollbars,scrollBy()," + "scrollTo(),scrollX,scrollY,self,sessionStorage,setImmediate(),setInterval(),setTimeout()," + "sortFunction(),status,statusbar,styleMedia,test(),toolbar,top,webkitCancelAnimationFrame()," + "webkitConvertPointFromNodeToPage(),webkitConvertPointFromPageToNode()," + "webkitRequestAnimationFrame()," + "window") @NotYetImplemented public void window() throws Exception { testString("window, null"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlAbbreviated}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void abbr() throws Exception { test("abbr"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlAcronym}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void acronym() throws Exception { test("acronym"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlAnchor}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "charset,coords,download,hash,host,hostname,href,hreflang,name,origin,password,pathname,ping," + "port,protocol,rel,rev,search,shape,target,text,type," + "username", FF = "charset,coords,download,hash,host,hostname,href,hreflang,name,origin,password,pathname,ping," + "port,protocol,rel,relList,rev,search,searchParams,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", EDGE = "charset,coords,hash,host,hostname,href,hreflang,Methods,mimeType,name,nameProp,pathname,port," + "protocol,protocolLong,rel,rev,search,shape,target,text,type," + "urn") @NotYetImplemented(EDGE) public void a() throws Exception { test("a"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlAddress}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,clear,width") @NotYetImplemented(IE) public void address() throws Exception { test("address"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlApplet}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,alt,archive,code,codeBase,height,hspace,name,object,vspace,width", IE = "align,alt,altHtml,archive,BaseHref,border,classid,code,codeBase,codeType,contentDocument,data," + "declare,form,height,hspace,name,object,standby,type,useMap,vspace,width", EDGE = "align,alt,altHtml,archive,BaseHref,border,code,codeBase,codeType,contentDocument,data,declare," + "form,height,hspace,name,object,standby,type,useMap,vspace," + "width") @NotYetImplemented public void applet() throws Exception { test("applet"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlArea}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "alt,coords,hash,host,hostname,href,noHref,origin,password,pathname,ping,port,protocol,search," + "shape,target,username", FF = "alt,coords,download,hash,host,hostname,href,noHref,origin,password,pathname,ping,port,protocol," + "rel,relList,search,searchParams,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 public void area() throws Exception { test("area"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlArticle}. * * @throws Exception if the test fails */ @Test public void article() throws Exception { test("article"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlAside}. * * @throws Exception if the test fails */ @Test public void aside() throws Exception { test("aside"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlAudio}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "addTextTrack(),autoplay,buffered,canPlayType(),controls,crossOrigin,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,HAVE_CURRENT_DATA,HAVE_ENOUGH_DATA," + "HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,load(),loop,mediaKeys,muted,NETWORK_EMPTY,NETWORK_IDLE," + "NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,onencrypted,onwebkitkeyadded,onwebkitkeyerror," + "onwebkitkeymessage,onwebkitneedkey,pause(),paused,play(),playbackRate,played,preload,readyState," + "seekable,seeking,setMediaKeys(),src,textTracks,volume,webkitAddKey(),webkitAudioDecodedByteCount," + "webkitCancelKeyRequest(),webkitGenerateKeyRequest(),webkitVideoDecodedByteCount", FF31 = "addTextTrack(),autoplay,buffered,canPlayType(),controls,crossOrigin,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,fastSeek(),HAVE_CURRENT_DATA," + "HAVE_ENOUGH_DATA,HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,load(),loop,mozAudioCaptured," + "mozAudioChannelType,mozAutoplayEnabled,mozCaptureStream(),mozCaptureStreamUntilEnded()," + "mozFragmentEnd,mozGetMetadata(),mozPreservesPitch,mozSrcObject,muted,NETWORK_EMPTY,NETWORK_IDLE," + "NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,pause(),paused,play(),playbackRate,played,preload," + "readyState,seekable,seeking,src,textTracks,volume", FF38 = "addTextTrack(),autoplay,buffered,canPlayType(),controls,crossOrigin,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,fastSeek(),HAVE_CURRENT_DATA," + "HAVE_ENOUGH_DATA,HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,load(),loop,mozAudioCaptured," + "mozAudioChannelType,mozAutoplayEnabled,mozCaptureStream(),mozCaptureStreamUntilEnded()," + "mozFragmentEnd,mozGetMetadata(),mozPreservesPitch,mozSrcObject,muted,NETWORK_EMPTY,NETWORK_IDLE," + "NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,pause(),paused,play(),playbackRate,played,preload," + "readyState,seekable,seeking,src,textTracks,volume", IE = "addTextTrack(),audioTracks,autobuffer,autoplay,buffered,canPlayType(),controls,currentSrc," + "currentTime,defaultPlaybackRate,duration,ended,error,HAVE_CURRENT_DATA,HAVE_ENOUGH_DATA," + "HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,initialTime,load(),loop,msPlayToDisabled," + "msPlayToPreferredSourceUri,msPlayToPrimary,muted,NETWORK_EMPTY,NETWORK_IDLE,NETWORK_LOADING," + "NETWORK_NO_SOURCE,networkState,pause(),paused,play(),playbackRate,played,preload,readyState," + "seekable,seeking,src,textTracks,volume", EDGE = "addTextTrack(),audioTracks,autoplay,buffered,canPlayType(),controls,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,HAVE_CURRENT_DATA,HAVE_ENOUGH_DATA," + "HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,load(),loop,msGraphicsTrustStatus,msKeys," + "msPlayToDisabled,msPlayToPreferredSourceUri,msPlayToPrimary,msSetMediaKeys(),muted,NETWORK_EMPTY," + "NETWORK_IDLE,NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,onmsneedkey,pause(),paused,play()," + "playbackRate,played,preload,readyState,seekable,seeking,src,srcObject,textTracks,videoTracks," + "volume") @NotYetImplemented({ CHROME, IE, FF, EDGE }) public void audio() throws Exception { test("audio"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBackgroundSound}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "balance,loop,src,volume") @NotYetImplemented(IE) public void bgsound() throws Exception { test("bgsound"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBase}. * * @throws Exception if the test fails */ @Test @Alerts("href,target") public void base() throws Exception { test("base"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBaseFont}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "color,face,size", EDGE = "color,face,size") public void basefont() throws Exception { test("basefont"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBidirectionalIsolation}. * * @throws Exception if the test fails */ @Test public void bdi() throws Exception { test("bdi"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBidirectionalOverride}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void bdo() throws Exception { test("bdo"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBig}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void big() throws Exception { test("big"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBlink}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void blink() throws Exception { test("blink"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBlockQuote}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "cite", IE = "cite,clear,width") @NotYetImplemented(IE) public void blockquote() throws Exception { test("blockquote"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBody}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "aLink,background,bgColor,link,onbeforeunload,onhashchange,onlanguagechange,onmessage,onoffline," + "ononline,onpagehide,onpageshow,onpopstate,onstorage,onunload,text," + "vLink", FF31 = "aLink,background,bgColor,link,onafterprint,onbeforeprint,onbeforeunload,onhashchange,onmessage," + "onoffline,ononline,onpagehide,onpageshow,onpopstate,onresize,onunload,text," + "vLink", FF38 = "aLink,background,bgColor,link,onafterprint,onbeforeprint,onbeforeunload,onhashchange," + "onlanguagechange,onmessage," + "onoffline,ononline,onpagehide,onpageshow,onpopstate,onunload,text," + "vLink", IE = "aLink,background,bgColor,bgProperties,bottomMargin,createTextRange(),leftMargin,link,noWrap," + "onafterprint,onbeforeprint,onbeforeunload,onhashchange,onmessage,onoffline,ononline,onpagehide," + "onpageshow,onpopstate,onresize,onstorage,onunload,rightMargin,scroll,text,topMargin," + "vLink", EDGE = "aLink,background,bgColor,bgProperties,link,noWrap,onafterprint,onbeforeprint,onbeforeunload," + "onhashchange,onmessage,onoffline,ononline,onpagehide,onpageshow,onpopstate,onresize,onstorage," + "onunload,text," + "vLink") @NotYetImplemented public void body() throws Exception { test("body"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBold}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void b() throws Exception { test("b"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlBreak}. * * @throws Exception if the test fails */ @Test @Alerts("clear") public void br() throws Exception { test("br"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlButton}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "autofocus,checkValidity(),disabled,form,formAction,formEnctype,formMethod,formNoValidate," + "formTarget,labels,name,reportValidity(),setCustomValidity(),type,validationMessage,validity," + "value," + "willValidate", FF31 = "autofocus,checkValidity(),disabled,form,formAction,formEnctype,formMethod,formNoValidate," + "formTarget,name,setCustomValidity(),type,validationMessage,validity,value," + "willValidate", FF38 = "autofocus,checkValidity(),disabled,form,formAction,formEnctype,formMethod,formNoValidate," + "formTarget,name,setCustomValidity(),type,validationMessage,validity,value," + "willValidate", IE = "autofocus,checkValidity(),createTextRange(),form,formAction,formEnctype,formMethod," + "formNoValidate,formTarget,name,setCustomValidity(),status,type,validationMessage,validity,value," + "willValidate", EDGE = "autofocus,checkValidity(),disabled,form,formAction,formEnctype,formMethod,formNoValidate," + "formTarget,name,setCustomValidity(),status,type,validationMessage,validity,value," + "willValidate") @NotYetImplemented public void button() throws Exception { test("button"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlCanvas}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "getContext(),height,toDataURL(),width", FF = "getContext(),height,mozGetAsFile(),mozOpaque,mozPrintCallback,toBlob(),toDataURL(),width", IE = "getContext(),height,msToBlob(),toDataURL(),width", EDGE = "getContext(),height,msToBlob(),toDataURL(),width") @NotYetImplemented({ IE, FF, EDGE }) public void canvas() throws Exception { test("canvas"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlCaption}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,vAlign", EDGE = "align,vAlign") @NotYetImplemented(EDGE) public void caption() throws Exception { test("caption"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlCenter}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,clear,width") @NotYetImplemented(IE) public void center() throws Exception { test("center"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlCitation}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void cite() throws Exception { test("cite"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlCode}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void code() throws Exception { test("code"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlCommand}. * * @throws Exception if the test fails */ @Test public void command() throws Exception { test("command"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDataList}. * * @throws Exception if the test fails */ @Test @Alerts("options") @NotYetImplemented(EDGE) public void datalist() throws Exception { test("datalist"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDefinition}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void dfn() throws Exception { test("dfn"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDefinitionDescription}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "noWrap") @NotYetImplemented(IE) public void dd() throws Exception { test("dd"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDeletedText}. * * @throws Exception if the test fails */ @Test @Alerts("cite,dateTime") public void del() throws Exception { test("del"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDetails}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "", CHROME = "open") @NotYetImplemented(CHROME) public void details() throws Exception { test("details"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDialog}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "", CHROME = "close(),open,returnValue,show(),showModal()") @NotYetImplemented(CHROME) public void dialog() throws Exception { test("dialog"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDirectory}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "compact", IE = "compact,type") @NotYetImplemented(IE) public void dir() throws Exception { test("dir"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDivision}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,noWrap", EDGE = "align,noWrap") @NotYetImplemented({ IE, EDGE }) public void div() throws Exception { test("div"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDefinitionList}. * * @throws Exception if the test fails */ @Test @Alerts("compact") public void dl() throws Exception { test("dl"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlDefinitionTerm}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "noWrap") @NotYetImplemented(IE) public void dt() throws Exception { test("dt"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlEmbed}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,getSVGDocument(),height,name,src,type,width", IE = "getSVGDocument(),height,msPlayToDisabled,msPlayToPreferredSourceUri,msPlayToPrimary,name,palette," + "pluginspage,readyState,src,units," + "width", EDGE = "getSVGDocument(),height,msPlayToDisabled,msPlayToPreferredSourceUri,msPlayToPrimary,name,palette," + "pluginspage,readyState,src,units," + "width") @NotYetImplemented public void embed() throws Exception { test("embed"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlEmphasis}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void em() throws Exception { test("em"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlFieldSet}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "checkValidity(),disabled,elements,form,name,reportValidity(),setCustomValidity(),type," + "validationMessage,validity," + "willValidate", FF = "checkValidity(),disabled,elements,form,name,setCustomValidity(),type,validationMessage,validity," + "willValidate", IE = "align,checkValidity(),form,setCustomValidity(),validationMessage,validity,willValidate", EDGE = "align,checkValidity(),disabled,form,setCustomValidity(),validationMessage,validity,willValidate") @NotYetImplemented({ CHROME, IE, FF, EDGE }) public void fieldset() throws Exception { test("fieldset"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlFigureCaption}. * * @throws Exception if the test fails */ @Test public void figcaption() throws Exception { test("figcaption"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlFigure}. * * @throws Exception if the test fails */ @Test public void figure() throws Exception { test("figure"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlFont}. * * @throws Exception if the test fails */ @Test @Alerts("color,face,size") public void font() throws Exception { test("font"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlForm}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "acceptCharset,action,autocomplete,checkValidity(),elements,encoding,enctype,length,method,name," + "noValidate,reportValidity(),requestAutocomplete(),reset(),submit()," + "target", FF = "acceptCharset,action,autocomplete,checkValidity(),elements,encoding,enctype,length,method,name," + "noValidate,reset(),submit()," + "target", IE = "acceptCharset,action,autocomplete,checkValidity(),elements,encoding,enctype,item(),length,method," + "name,namedItem(),noValidate,reset(),submit()," + "target", EDGE = "acceptCharset,action,autocomplete,checkValidity(),elements,encoding,enctype,item(),length,method," + "name,namedItem(),noValidate,reset(),submit()," + "target") @NotYetImplemented public void form() throws Exception { test("form"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlFooter}. * * @throws Exception if the test fails */ @Test public void footer() throws Exception { test("footer"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlFrame}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "contentDocument,contentWindow,frameBorder,getSVGDocument(),longDesc,marginHeight,marginWidth," + "name,noResize,scrolling," + "src", FF = "contentDocument,contentWindow,frameBorder,longDesc,marginHeight,marginWidth,name,noResize," + "scrolling," + "src", IE = "border,borderColor,contentDocument,contentWindow,frameBorder,frameSpacing,getSVGDocument()," + "height,longDesc,marginHeight,marginWidth,name,noResize,scrolling,security,src," + "width", EDGE = "border,borderColor,contentDocument,contentWindow,frameBorder,frameSpacing,getSVGDocument()," + "height,longDesc,marginHeight,marginWidth,name,noResize,scrolling,src," + "width") @NotYetImplemented public void frame() throws Exception { test("frame"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlFrameSet}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "cols,onbeforeunload,onhashchange,onlanguagechange,onmessage,onoffline,ononline,onpagehide," + "onpageshow,onpopstate,onstorage,onunload," + "rows", FF31 = "cols,onafterprint,onbeforeprint,onbeforeunload,onhashchange,onmessage,onoffline,ononline," + "onpagehide,onpageshow,onpopstate,onresize,onunload," + "rows", FF38 = "cols,onafterprint,onbeforeprint,onbeforeunload,onhashchange,onlanguagechange,onmessage," + "onoffline,ononline," + "onpagehide,onpageshow,onpopstate,onunload," + "rows", IE = "border,borderColor,cols,frameBorder,frameSpacing,name,onafterprint,onbeforeprint,onbeforeunload," + "onhashchange,onmessage,onoffline,ononline,onpagehide,onpageshow,onresize,onstorage,onunload," + "rows", EDGE = "border,borderColor,cols,frameBorder,frameSpacing,name,onafterprint,onbeforeprint,onbeforeunload," + "onhashchange,onmessage,onoffline,ononline,onpagehide,onpageshow,onresize,onstorage,onunload," + "rows") @NotYetImplemented public void frameset() throws Exception { test("frameset"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHead}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "profile", EDGE = "profile") @NotYetImplemented({ IE, EDGE }) public void head() throws Exception { test("head"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHeader}. * * @throws Exception if the test fails */ @Test public void header() throws Exception { test("header"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHeading1}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,clear") @NotYetImplemented(IE) public void h1() throws Exception { test("h1"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHeading2}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,clear") @NotYetImplemented(IE) public void h2() throws Exception { test("h2"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHeading3}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,clear") @NotYetImplemented(IE) public void h3() throws Exception { test("h3"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHeading4}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,clear") @NotYetImplemented(IE) public void h4() throws Exception { test("h4"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHeading5}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,clear") @NotYetImplemented(IE) public void h5() throws Exception { test("h5"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHeading6}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,clear") @NotYetImplemented(IE) public void h6() throws Exception { test("h6"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHorizontalRule}. * * @throws Exception if the test fails */ @Test @Alerts("align,color,noShade,size,width") @NotYetImplemented public void hr() throws Exception { test("hr"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlHtml}. * * @throws Exception if the test fails */ @Test @Alerts("version") public void html() throws Exception { test("html"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlInlineFrame}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,allowFullscreen,contentDocument,contentWindow,frameBorder,getSVGDocument(),height," + "longDesc,marginHeight,marginWidth,name,sandbox,scrolling,src,srcdoc," + "width", IE = "align,border,contentDocument,contentWindow,frameBorder,frameSpacing,getSVGDocument(),height," + "hspace,longDesc,marginHeight,marginWidth,name,noResize,sandbox,scrolling,security,src,vspace," + "width", EDGE = "align,allowFullscreen,border,contentDocument,contentWindow,frameBorder,frameSpacing," + "getSVGDocument(),height,hspace,longDesc,marginHeight,marginWidth,name,noResize,sandbox,scrolling," + "src,vspace," + "width") @NotYetImplemented public void iframe() throws Exception { test("iframe"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlInlineQuotation}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "cite", IE = "cite,dateTime") public void q() throws Exception { test("q"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlImage}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,alt,border,complete,crossOrigin,currentSrc,height,hspace,isMap,longDesc,lowsrc,name," + "naturalHeight,naturalWidth,sizes,src,srcset,useMap,vspace,width,x," + "y", FF31 = "align,alt,border,complete,crossOrigin,height,hspace,isMap,longDesc,lowsrc,name,naturalHeight," + "naturalWidth,src,useMap,vspace,width,x," + "y", IE = "align,alt,border,complete,crossOrigin,dynsrc,fileCreatedDate,fileModifiedDate,fileUpdatedDate," + "height,href,hspace,isMap,longDesc,loop,lowsrc,mimeType,msPlayToDisabled," + "msPlayToPreferredSourceUri,msPlayToPrimary,name,nameProp,naturalHeight,naturalWidth,protocol,src," + "start,useMap,vrml,vspace," + "width", EDGE = "align,alt,border,complete,crossOrigin,height,hspace,isMap,longDesc,msPlayToDisabled," + "msPlayToPreferredSourceUri,msPlayToPrimary,name,naturalHeight,naturalWidth,src,srcset,useMap," + "vspace,width,x," + "y") @NotYetImplemented public void img() throws Exception { test("img"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlImage}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "align,alt,border,complete,crossOrigin,dynsrc,fileCreatedDate,fileModifiedDate,fileUpdatedDate," + "height,href,hspace,isMap,longDesc,loop,lowsrc,mimeType,msPlayToDisabled," + "msPlayToPreferredSourceUri,msPlayToPrimary,name,nameProp,naturalHeight,naturalWidth,protocol,src," + "start,useMap,vrml,vspace," + "width", EDGE = "align,alt,border,complete,crossOrigin,height,hspace,isMap,longDesc,msPlayToDisabled," + "msPlayToPreferredSourceUri,msPlayToPrimary,name,naturalHeight,naturalWidth,src,srcset,useMap," + "vspace,width,x," + "y") @NotYetImplemented({ IE, EDGE }) public void image() throws Exception { test("image"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlInsertedText}. * * @throws Exception if the test fails */ @Test @Alerts("cite,dateTime") public void ins() throws Exception { test("ins"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlIsIndex}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "action,form,prompt") @NotYetImplemented(IE) public void isindex() throws Exception { test("isindex"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlItalic}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void i() throws Exception { test("i"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlKeyboard}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void kbd() throws Exception { test("kbd"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlKeygen}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "", CHROME = "autofocus,challenge,checkValidity(),disabled,form,keytype,labels,name,reportValidity()," + "setCustomValidity(),type,validationMessage,validity," + "willValidate", IE = "cite,clear,width") @NotYetImplemented({ IE, CHROME }) public void keygen() throws Exception { test("keygen"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlLabel}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "control,form,htmlFor", IE = "form,htmlFor", EDGE = "form,htmlFor") @NotYetImplemented({ FF, CHROME }) public void label() throws Exception { test("label"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlLayer}. * * @throws Exception if the test fails */ @Test public void layer() throws Exception { test("layer"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlLegend}. * * @throws Exception if the test fails */ @Test @Alerts("align,form") @NotYetImplemented public void legend() throws Exception { test("legend"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlListing}. * * @throws Exception if the test fails */ @Test @Alerts(CHROME = "width", FF31 = "", IE = "cite,clear,width", EDGE = "width") @NotYetImplemented({ IE, EDGE }) public void listing() throws Exception { test("listing"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlListItem}. * * @throws Exception if the test fails */ @Test @Alerts("type,value") @NotYetImplemented public void li() throws Exception { test("li"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlLink}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "charset,crossOrigin,disabled,href,hreflang,import,integrity," + "media,rel,rev,sheet,sizes,target,type", FF = "charset,crossOrigin,disabled,href,hreflang,media,rel,relList,rev,sheet,sizes,target,type", IE = "charset,href,hreflang,media,rel,rev,sheet,target,type", EDGE = "charset,disabled,href,hreflang,media,rel,rev,sheet,target,type") @NotYetImplemented public void link() throws Exception { test("link"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMain}. * * @throws Exception if the test fails */ @Test public void main() throws Exception { test("main"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMap}. * * @throws Exception if the test fails */ @Test @Alerts("areas,name") @NotYetImplemented public void map() throws Exception { test("map"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMark}. * * @throws Exception if the test fails */ @Test public void mark() throws Exception { test("mark"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMarquee}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "behavior,bgColor,direction,height,hspace,loop,scrollAmount,scrollDelay,start(),stop(),trueSpeed," + "vspace,width", FF = "align", IE = "behavior,bgColor,direction,height,hspace,loop,onbounce,onfinish,onstart,scrollAmount,scrollDelay," + "start(),stop(),trueSpeed,vspace,width", EDGE = "behavior,bgColor,direction,height,hspace,loop,onbounce,onfinish,onstart,scrollAmount,scrollDelay," + "start(),stop(),trueSpeed,vspace," + "width") @NotYetImplemented({ IE, CHROME, EDGE }) public void marquee() throws Exception { test("marquee"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMenu}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "compact", FF = "compact,label,type", IE = "compact,type", EDGE = "compact,type") @NotYetImplemented(EDGE) public void menu() throws Exception { test("menu"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMenuItem}. * * @throws Exception if the test fails */ @Test @Alerts(FF = "checked,defaultChecked,disabled,icon,label,radiogroup,type") @NotYetImplemented(FF) public void menuitem() throws Exception { test("menuitem"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMeta}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "content,httpEquiv,name,scheme", IE = "charset,content,httpEquiv,name,scheme,url", EDGE = "charset,content,httpEquiv,name,scheme,url") @NotYetImplemented(EDGE) public void meta() throws Exception { test("meta"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMeter}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "high,labels,low,max,min,optimum,value", FF = "high,low,max,min,optimum,value", IE = "", EDGE = "") @NotYetImplemented(CHROME) public void meter() throws Exception { test("meter"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlMultiColumn}. * * @throws Exception if the test fails */ @Test public void multicol() throws Exception { test("multicol"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlNav}. * * @throws Exception if the test fails */ @Test public void nav() throws Exception { test("nav"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlNextId}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "n") @NotYetImplemented(IE) public void nextid() throws Exception { test("nextid"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlNoBreak}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void nobr() throws Exception { test("nobr"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlNoEmbed}. * * @throws Exception if the test fails */ @Test public void noembed() throws Exception { test("noembed"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlNoFrames}. * * @throws Exception if the test fails */ @Test public void noframes() throws Exception { test("noframes"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlNoLayer}. * * @throws Exception if the test fails */ @Test public void nolayer() throws Exception { test("nolayer"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlNoScript}. * * @throws Exception if the test fails */ @Test public void noscript() throws Exception { test("noscript"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlObject}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,archive,border,checkValidity(),code,codeBase,codeType,contentDocument,data,declare,form," + "getSVGDocument(),height,hspace,name,reportValidity(),setCustomValidity(),standby,type,useMap," + "validationMessage,validity,vspace,width,willValidate", FF31 = "align,archive,border,checkValidity(),code,codeBase,codeType,contentDocument,contentWindow,data," + "declare,form,getSVGDocument(),height,hspace,name,setCustomValidity(),standby,type,typeMustMatch," + "useMap,validationMessage,validity,vspace,width,willValidate", FF38 = "align,archive,border,checkValidity(),code,codeBase,codeType,contentDocument,contentWindow,data," + "declare,form,getSVGDocument(),height,hspace,name,setCustomValidity(),standby,type,typeMustMatch," + "useMap,validationMessage,validity,vspace,width,willValidate", IE = "align,alt,altHtml,archive,BaseHref,border,checkValidity(),classid,code,codeBase,codeType," + "contentDocument,data,declare,form,getSVGDocument(),height,hspace,msPlayToDisabled," + "msPlayToPreferredSourceUri,msPlayToPrimary,name,object,readyState,setCustomValidity(),standby," + "type,useMap,validationMessage,validity,vspace,width,willValidate", EDGE = "align,alt,altHtml,archive,BaseHref,border,checkValidity(),code,codeBase,codeType,contentDocument," + "data,declare,form,getSVGDocument(),height,hspace,msPlayToDisabled,msPlayToPreferredSourceUri," + "msPlayToPrimary,name,object,readyState,setCustomValidity(),standby,type,useMap,validationMessage," + "validity,vspace,width," + "willValidate") @NotYetImplemented public void object() throws Exception { test("object"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlOrderedList}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "compact,reversed,start,type", IE = "compact,start,type", EDGE = "compact,start,type") @NotYetImplemented public void ol() throws Exception { test("ol"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlOptionGroup}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "disabled,label", IE = "defaultSelected,form,index,label,selected,text,value", EDGE = "defaultSelected,disabled,form,index,label,selected,text,value") @NotYetImplemented({ IE, EDGE }) public void optgroup() throws Exception { test("optgroup"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlOption}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "defaultSelected,disabled,form,index,label,selected,text,value", IE = "defaultSelected,form,index,label,selected,text,value") public void option() throws Exception { test("option"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlOutput}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "checkValidity(),defaultValue,form,htmlFor,labels,name,reportValidity(),setCustomValidity(),type," + "validationMessage,validity,value," + "willValidate", FF = "checkValidity(),defaultValue,form,htmlFor,name,setCustomValidity(),type,validationMessage," + "validity,value," + "willValidate", IE = "", EDGE = "") @NotYetImplemented({ FF, CHROME }) public void output() throws Exception { test("output"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlParagraph}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align", IE = "align,clear", EDGE = "align,clear") @NotYetImplemented({ IE, EDGE }) public void p() throws Exception { test("p"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlParameter}. * * @throws Exception if the test fails */ @Test @Alerts("name,type,value,valueType") @NotYetImplemented public void param() throws Exception { test("param"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlPlainText}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,clear,width") @NotYetImplemented(IE) public void plaintext() throws Exception { test("plaintext"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlPreformattedText}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "width", IE = "cite,clear,width") @NotYetImplemented(IE) public void pre() throws Exception { test("pre"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlProgress}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "labels,max,position,value", FF = "max,position,value", IE = "form,max,position,value", EDGE = "form,max,position,value") @NotYetImplemented({ CHROME, IE, FF, EDGE }) public void progress() throws Exception { test("progress"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlRp}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") @NotYetImplemented(IE) public void rp() throws Exception { test("rp"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlRt}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") @NotYetImplemented(IE) public void rt() throws Exception { test("rt"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlRuby}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") @NotYetImplemented(IE) public void ruby() throws Exception { test("ruby"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlS}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void s() throws Exception { test("s"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSample}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void samp() throws Exception { test("samp"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlScript}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "async,charset,crossOrigin,defer,event,htmlFor,src,text,type", CHROME = "async,charset,crossOrigin,defer,event,htmlFor,integrity,src,text,type", IE = "async,charset,defer,event,htmlFor,src,text,type", EDGE = "async,charset,defer,event,htmlFor,src,text,type") @NotYetImplemented public void script() throws Exception { test("script"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSection}. * * @throws Exception if the test fails */ @Test public void section() throws Exception { test("section"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSelect}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "add(),autofocus,checkValidity(),disabled,form,item(),labels,length,multiple,name,namedItem()," + "options,reportValidity(),required,selectedIndex,selectedOptions,setCustomValidity(),size,type," + "validationMessage,validity,value," + "willValidate", FF31 = "@@iterator(),add(),autofocus,checkValidity(),disabled,form,item(),length,multiple,name," + "namedItem(),options,required,selectedIndex,selectedOptions,setCustomValidity(),size,type," + "validationMessage,validity,value," + "willValidate", FF38 = "add(),autofocus,checkValidity(),disabled,form,item(),length,multiple,name," + "namedItem(),options,required,selectedIndex,selectedOptions,setCustomValidity(),size,type," + "validationMessage,validity,value," + "willValidate", IE = "add(),autofocus,checkValidity(),form,item(),length,multiple,name,namedItem(),options,remove()," + "required,selectedIndex,setCustomValidity(),size,type,validationMessage,validity,value," + "willValidate", EDGE = "add(),autofocus,checkValidity(),disabled,form,item(),length,multiple,name,namedItem(),options," + "required,selectedIndex,selectedOptions,setCustomValidity(),size,type,validationMessage,validity," + "value," + "willValidate") @NotYetImplemented public void select() throws Exception { test("select"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSmall}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void small() throws Exception { test("small"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSource}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "media,sizes,src,srcset,type", FF31 = "media,src,type", IE = "media,src,type", EDGE = "media,msKeySystem,src,type") @NotYetImplemented({ CHROME, IE, FF, EDGE }) public void source() throws Exception { test("source"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSpan}. * * @throws Exception if the test fails */ @Test public void span() throws Exception { test("span"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlStrike}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void strike() throws Exception { test("strike"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlStrong}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void strong() throws Exception { test("strong"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlStyle}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "disabled,media,sheet,type", FF = "disabled,media,scoped,sheet,type", IE = "media,sheet,type", EDGE = "media,sheet,type") @NotYetImplemented({ FF, CHROME, EDGE }) public void style() throws Exception { test("style"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSubscript}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void sub() throws Exception { test("sub"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSummary}. * * @throws Exception if the test fails */ @Test public void summary() throws Exception { test("summary"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlSuperscript}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void sup() throws Exception { test("sup"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTable}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,bgColor,border,caption,cellPadding,cellSpacing,createCaption(),createTBody()," + "createTFoot(),createTHead(),deleteCaption(),deleteRow(),deleteTFoot(),deleteTHead(),frame," + "insertRow(),rows,rules,summary,tBodies,tFoot,tHead," + "width", IE = "align,background,bgColor,border,borderColor,borderColorDark,borderColorLight,caption,cellPadding," + "cells,cellSpacing,cols,createCaption(),createTBody(),createTFoot(),createTHead(),deleteCaption()," + "deleteRow(),deleteTFoot(),deleteTHead(),frame,height,insertRow(),moveRow(),rows,rules,summary," + "tBodies,tFoot,tHead," + "width", EDGE = "align,bgColor,border,borderColor,caption,cellPadding,cellSpacing,cols,createCaption()," + "createTBody(),createTFoot(),createTHead(),deleteCaption(),deleteRow(),deleteTFoot()," + "deleteTHead(),frame,height,insertRow(),rows,rules,summary,tBodies,tFoot,tHead," + "width") @NotYetImplemented public void table() throws Exception { test("table"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableColumn}. * * @throws Exception if the test fails */ @Test @Alerts("align,ch,chOff,span,vAlign,width") public void col() throws Exception { test("col"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableColumnGroup}. * * @throws Exception if the test fails */ @Test @Alerts("align,ch,chOff,span,vAlign,width") public void colgroup() throws Exception { test("colgroup"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableBody}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,ch,chOff,deleteRow(),insertRow(),rows,vAlign", IE = "align,bgColor,ch,chOff,deleteRow(),insertRow(),moveRow(),rows,vAlign") public void tbody() throws Exception { test("tbody"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableDataCell}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "abbr,align,axis,bgColor,cellIndex,ch,chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign," + "width", IE = "abbr,align,axis,background,bgColor,borderColor,borderColorDark,borderColorLight,cellIndex,ch," + "chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign," + "width") @NotYetImplemented public void td() throws Exception { test("td"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableHeaderCell}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "abbr,align,axis,bgColor,cellIndex,ch,chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign," + "width", IE = "abbr,align,axis,background,bgColor,borderColor,borderColorDark,borderColorLight,cellIndex,ch," + "chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign," + "width") @NotYetImplemented public void th() throws Exception { test("th"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableRow}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,bgColor,cells,ch,chOff,deleteCell(),insertCell(),rowIndex,sectionRowIndex,vAlign", IE = "align,bgColor,borderColor,borderColorDark,borderColorLight,cells,ch,chOff,deleteCell(),height," + "insertCell(),rowIndex,sectionRowIndex," + "vAlign", EDGE = "align,bgColor,cells,ch,chOff,deleteCell(),height,insertCell(),rowIndex,sectionRowIndex,vAlign") @NotYetImplemented({ IE, EDGE }) public void tr() throws Exception { test("tr"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTextArea}. * * @throws Exception if the test fails */ @Test @Alerts(CHROME = "autocapitalize,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," + "wrap", FF31 = "autofocus,checkValidity(),cols,defaultValue,disabled,form,maxLength,name,placeholder,readOnly," + "required,rows,select(),selectionDirection,selectionEnd,selectionStart,setCustomValidity()," + "setRangeText(),setSelectionRange(),textLength,type,validationMessage,validity,value,willValidate," + "wrap", FF38 = "autofocus,checkValidity(),cols,defaultValue,disabled,form,maxLength,name,placeholder,readOnly," + "required,rows,select(),selectionDirection,selectionEnd,selectionStart,setCustomValidity()," + "setRangeText(),setSelectionRange(),textLength,type,validationMessage,validity,value,willValidate," + "wrap", IE = "autofocus,checkValidity(),cols,createTextRange(),defaultValue,form,maxLength,name,placeholder," + "readOnly,required,rows,select(),selectionEnd,selectionStart,setCustomValidity()," + "setSelectionRange(),status,type,validationMessage,validity,value,willValidate," + "wrap", EDGE = "autofocus,checkValidity(),cols,defaultValue,disabled,form,maxLength,name,placeholder,readOnly," + "required,rows,select(),selectionEnd,selectionStart,setCustomValidity(),setSelectionRange()," + "status,type,validationMessage,validity,value,willValidate," + "wrap") @NotYetImplemented public void textarea() throws Exception { test("textarea"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableFooter}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,ch,chOff,deleteRow(),insertRow(),rows,vAlign", IE = "align,bgColor,ch,chOff,deleteRow(),insertRow(),moveRow(),rows,vAlign") public void tfoot() throws Exception { test("tfoot"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTableHeader}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "align,ch,chOff,deleteRow(),insertRow(),rows,vAlign", IE = "align,bgColor,ch,chOff,deleteRow(),insertRow(),moveRow(),rows,vAlign") public void thead() throws Exception { test("thead"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTeletype}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void tt() throws Exception { test("tt"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTime}. * * @throws Exception if the test fails */ @Test @Alerts(FF = "dateTime") @NotYetImplemented(FF) public void time() throws Exception { test("time"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTitle}. * * @throws Exception if the test fails */ @Test @Alerts("text") public void title() throws Exception { test("title"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTrack}. * * @throws Exception if the test fails */ @Test @Alerts("default,ERROR,kind,label,LOADED,LOADING,NONE,readyState,src,srclang,track") @NotYetImplemented({ CHROME, IE, FF, EDGE }) public void track() throws Exception { test("track"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlUnderlined}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void u() throws Exception { test("u"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlUnorderedList}. * * @throws Exception if the test fails */ @Test @Alerts("compact,type") public void ul() throws Exception { test("ul"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlVariable}. * * @throws Exception if the test fails */ @Test @Alerts(IE = "cite,dateTime") public void var() throws Exception { test("var"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlVideo}. * * @throws Exception if the test fails */ @Test @Alerts(CHROME = "addTextTrack(),autoplay,buffered,canPlayType(),controls,crossOrigin,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,HAVE_CURRENT_DATA,HAVE_ENOUGH_DATA," + "HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,height,load(),loop,mediaKeys,muted,NETWORK_EMPTY," + "NETWORK_IDLE,NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,onencrypted,onwebkitkeyadded," + "onwebkitkeyerror,onwebkitkeymessage,onwebkitneedkey,pause(),paused,play(),playbackRate,played," + "poster,preload,readyState,seekable,seeking,setMediaKeys(),src,textTracks,videoHeight,videoWidth," + "volume,webkitAddKey(),webkitAudioDecodedByteCount,webkitCancelKeyRequest(),webkitDecodedFrameCount," + "webkitDisplayingFullscreen,webkitDroppedFrameCount,webkitEnterFullscreen()," + "webkitEnterFullScreen(),webkitExitFullscreen(),webkitExitFullScreen(),webkitGenerateKeyRequest()," + "webkitSupportsFullscreen,webkitVideoDecodedByteCount," + "width", FF31 = "addTextTrack(),autoplay,buffered,canPlayType(),controls,crossOrigin,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,fastSeek(),HAVE_CURRENT_DATA," + "HAVE_ENOUGH_DATA,HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,height,load(),loop,mozAudioCaptured," + "mozAudioChannelType,mozAutoplayEnabled,mozCaptureStream(),mozCaptureStreamUntilEnded()," + "mozDecodedFrames,mozFragmentEnd,mozFrameDelay,mozGetMetadata(),mozHasAudio,mozPaintedFrames," + "mozParsedFrames,mozPresentedFrames,mozPreservesPitch,mozSrcObject,muted,NETWORK_EMPTY," + "NETWORK_IDLE,NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,pause(),paused,play(),playbackRate," + "played,poster,preload,readyState,seekable,seeking,src,textTracks,videoHeight,videoWidth,volume," + "width", FF38 = "addTextTrack(),autoplay,buffered,canPlayType(),controls,crossOrigin,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,fastSeek(),HAVE_CURRENT_DATA," + "HAVE_ENOUGH_DATA,HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,height,load(),loop,mozAudioCaptured," + "mozAudioChannelType,mozAutoplayEnabled,mozCaptureStream(),mozCaptureStreamUntilEnded()," + "mozDecodedFrames,mozFragmentEnd,mozFrameDelay,mozGetMetadata(),mozHasAudio,mozPaintedFrames," + "mozParsedFrames,mozPresentedFrames,mozPreservesPitch,mozSrcObject,muted,NETWORK_EMPTY," + "NETWORK_IDLE,NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,pause(),paused,play(),playbackRate," + "played,poster,preload,readyState,seekable,seeking,src,textTracks,videoHeight,videoWidth,volume," + "width", IE = "addTextTrack(),audioTracks,autobuffer,autoplay,buffered,canPlayType(),controls,currentSrc," + "currentTime,defaultPlaybackRate,duration,ended,error,HAVE_CURRENT_DATA,HAVE_ENOUGH_DATA," + "HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,height,initialTime,load(),loop,msPlayToDisabled," + "msPlayToPreferredSourceUri,msPlayToPrimary,msZoom,muted,NETWORK_EMPTY,NETWORK_IDLE," + "NETWORK_LOADING,NETWORK_NO_SOURCE,networkState,pause(),paused,play(),playbackRate,played,poster," + "preload,readyState,seekable,seeking,src,textTracks,videoHeight,videoWidth,volume," + "width", EDGE = "addTextTrack(),audioTracks,autoplay,buffered,canPlayType(),controls,currentSrc,currentTime," + "defaultMuted,defaultPlaybackRate,duration,ended,error,getVideoPlaybackQuality()," + "HAVE_CURRENT_DATA,HAVE_ENOUGH_DATA,HAVE_FUTURE_DATA,HAVE_METADATA,HAVE_NOTHING,height,load()," + "loop,msGraphicsTrustStatus,msKeys,msPlayToDisabled,msPlayToPreferredSourceUri,msPlayToPrimary," + "msSetMediaKeys(),msZoom,muted,NETWORK_EMPTY,NETWORK_IDLE,NETWORK_LOADING,NETWORK_NO_SOURCE," + "networkState,onmsneedkey,pause(),paused,play(),playbackRate,played,poster,preload,readyState," + "seekable,seeking,src,srcObject,textTracks,videoHeight,videoTracks,videoWidth,volume," + "webkitDisplayingFullscreen,webkitEnterFullscreen(),webkitEnterFullScreen()," + "webkitExitFullscreen(),webkitExitFullScreen(),webkitSupportsFullscreen," + "width") @NotYetImplemented({ CHROME, IE, FF, EDGE }) public void video() throws Exception { test("video"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlWordBreak}. * * @throws Exception if the test fails */ @Test public void wbr() throws Exception { test("wbr"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlExample}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "width", FF = "", IE = "cite,clear,width") @NotYetImplemented({ IE, EDGE }) public void xmp() throws Exception { test("xmp"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlInput}. * * @throws Exception if the test fails */ @Test @Alerts(FF31 = "accept,align,alt,autocomplete,autofocus,checked,checkValidity(),defaultChecked,defaultValue," + "disabled,files,form,formAction,formEnctype,formMethod,formNoValidate,formTarget,height," + "indeterminate,list,max,maxLength,min,mozIsTextField(),multiple,name,pattern,placeholder,readOnly," + "required,select(),selectionDirection,selectionEnd,selectionStart,setCustomValidity()," + "setRangeText(),setSelectionRange(),size,src,step,stepDown(),stepUp(),textLength,type,useMap," + "validationMessage,validity,value,valueAsNumber,width,willValidate", FF38 = "accept,align,alt,autocomplete,autofocus,checked,checkValidity(),defaultChecked,defaultValue," + "disabled,files,form,formAction,formEnctype,formMethod,formNoValidate,formTarget,height," + "indeterminate,list,max,maxLength,min,mozIsTextField(),multiple,name,pattern,placeholder,readOnly," + "required,select(),selectionDirection,selectionEnd,selectionStart,setCustomValidity()," + "setRangeText(),setSelectionRange(),size,src,step,stepDown(),stepUp(),textLength,type,useMap," + "validationMessage,validity,value,valueAsNumber,width,willValidate", IE = "accept,align,alt,autocomplete,autofocus,border,checked,checkValidity(),complete," + "createTextRange(),defaultChecked,defaultValue,dynsrc,files,form,formAction,formEnctype," + "formMethod,formNoValidate,formTarget,height,hspace,indeterminate,list,loop,lowsrc,max,maxLength," + "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()," + "defaultChecked,defaultValue," + "dirName,disabled,files,form,formAction,formEnctype,formMethod,formNoValidate,formTarget,height," + "incremental,indeterminate,labels,list,max,maxLength,min,minLength,multiple,name,pattern," + "placeholder,readOnly,reportValidity(),required,select(),selectionDirection,selectionEnd," + "selectionStart,setCustomValidity(),setRangeText(),setSelectionRange(),size,src,step,stepDown()," + "stepUp(),type,useMap,validationMessage,validity,value,valueAsDate,valueAsNumber,webkitdirectory," + "webkitEntries,width,willValidate", EDGE = "accept,align,alt,autocomplete,autofocus,border,checked,checkValidity(),complete,defaultChecked," + "defaultValue,disabled,files,form,formAction,formEnctype,formMethod,formNoValidate,formTarget," + "height,hspace,indeterminate,list,max,maxLength,min,multiple,name,pattern,placeholder,readOnly," + "required,select(),selectionEnd,selectionStart,setCustomValidity(),setSelectionRange(),size,src," + "status,step,stepDown(),stepUp(),type,useMap,validationMessage,validity,value,valueAsDate," + "valueAsNumber,vspace,width," + "willValidate") @NotYetImplemented public void input() throws Exception { test("input"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlData}. * * @throws Exception if the test fails */ @Test @Alerts(FF = "value") @NotYetImplemented(FF) public void data() throws Exception { test("data"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlContent}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "getDistributedNodes(),select", IE = "", EDGE = "") @NotYetImplemented({ CHROME, FF }) public void content() throws Exception { test("content"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlPicture}. * * @throws Exception if the test fails */ @Test public void picutre() throws Exception { test("picture"); } /** * Test {@link com.gargoylesoftware.htmlunit.html.HtmlTemplate}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "content", IE = "", EDGE = "") @NotYetImplemented({ CHROME, FF }) public void template() throws Exception { test("template"); } /** * Test {@link com.gargoylesoftware.htmlunit.javascript.host.event.KeyboardEvent}. * * @throws Exception if the test fails */ @Test @Alerts(DEFAULT = "", CHROME = "altKey,charCode,ctrlKey,DOM_KEY_LOCATION_LEFT,DOM_KEY_LOCATION_NUMPAD,DOM_KEY_LOCATION_RIGHT," + "DOM_KEY_LOCATION_STANDARD,getModifierState(),initKeyboardEvent(),keyCode,keyIdentifier,keyLocation," + "location,metaKey,repeat," + "shiftKey", FF = "altKey,charCode,code,ctrlKey,DOM_KEY_LOCATION_LEFT,DOM_KEY_LOCATION_NUMPAD," + "DOM_KEY_LOCATION_RIGHT,DOM_KEY_LOCATION_STANDARD,DOM_VK_0,DOM_VK_1,DOM_VK_2,DOM_VK_3,DOM_VK_4," + "DOM_VK_5,DOM_VK_6,DOM_VK_7,DOM_VK_8,DOM_VK_9,DOM_VK_A,DOM_VK_ACCEPT,DOM_VK_ADD,DOM_VK_ALT," + "DOM_VK_ALTGR,DOM_VK_AMPERSAND,DOM_VK_ASTERISK,DOM_VK_AT,DOM_VK_ATTN,DOM_VK_B,DOM_VK_BACK_QUOTE," + "DOM_VK_BACK_SLASH,DOM_VK_BACK_SPACE,DOM_VK_C,DOM_VK_CANCEL,DOM_VK_CAPS_LOCK,DOM_VK_CIRCUMFLEX," + "DOM_VK_CLEAR,DOM_VK_CLOSE_BRACKET,DOM_VK_CLOSE_CURLY_BRACKET,DOM_VK_CLOSE_PAREN,DOM_VK_COLON," + "DOM_VK_COMMA,DOM_VK_CONTEXT_MENU,DOM_VK_CONTROL,DOM_VK_CONVERT,DOM_VK_CRSEL,DOM_VK_D," + "DOM_VK_DECIMAL,DOM_VK_DELETE,DOM_VK_DIVIDE,DOM_VK_DOLLAR,DOM_VK_DOUBLE_QUOTE,DOM_VK_DOWN," + "DOM_VK_E,DOM_VK_EISU,DOM_VK_END,DOM_VK_EQUALS,DOM_VK_EREOF,DOM_VK_ESCAPE,DOM_VK_EXCLAMATION," + "DOM_VK_EXECUTE,DOM_VK_EXSEL,DOM_VK_F,DOM_VK_F1,DOM_VK_F10,DOM_VK_F11,DOM_VK_F12,DOM_VK_F13," + "DOM_VK_F14,DOM_VK_F15,DOM_VK_F16,DOM_VK_F17,DOM_VK_F18,DOM_VK_F19,DOM_VK_F2,DOM_VK_F20," + "DOM_VK_F21,DOM_VK_F22,DOM_VK_F23,DOM_VK_F24,DOM_VK_F3,DOM_VK_F4,DOM_VK_F5,DOM_VK_F6,DOM_VK_F7," + "DOM_VK_F8,DOM_VK_F9,DOM_VK_FINAL,DOM_VK_G,DOM_VK_GREATER_THAN,DOM_VK_H,DOM_VK_HANGUL," + "DOM_VK_HANJA,DOM_VK_HASH,DOM_VK_HELP,DOM_VK_HOME,DOM_VK_HYPHEN_MINUS,DOM_VK_I,DOM_VK_INSERT," + "DOM_VK_J,DOM_VK_JUNJA,DOM_VK_K,DOM_VK_KANA,DOM_VK_KANJI,DOM_VK_L,DOM_VK_LEFT,DOM_VK_LESS_THAN," + "DOM_VK_M,DOM_VK_META,DOM_VK_MODECHANGE,DOM_VK_MULTIPLY,DOM_VK_N,DOM_VK_NONCONVERT," + "DOM_VK_NUM_LOCK,DOM_VK_NUMPAD0,DOM_VK_NUMPAD1,DOM_VK_NUMPAD2,DOM_VK_NUMPAD3,DOM_VK_NUMPAD4," + "DOM_VK_NUMPAD5,DOM_VK_NUMPAD6,DOM_VK_NUMPAD7,DOM_VK_NUMPAD8,DOM_VK_NUMPAD9,DOM_VK_O," + "DOM_VK_OPEN_BRACKET,DOM_VK_OPEN_CURLY_BRACKET,DOM_VK_OPEN_PAREN,DOM_VK_P,DOM_VK_PA1," + "DOM_VK_PAGE_DOWN,DOM_VK_PAGE_UP,DOM_VK_PAUSE,DOM_VK_PERCENT,DOM_VK_PERIOD,DOM_VK_PIPE," + "DOM_VK_PLAY,DOM_VK_PLUS,DOM_VK_PRINT,DOM_VK_PRINTSCREEN,DOM_VK_Q,DOM_VK_QUESTION_MARK," + "DOM_VK_QUOTE,DOM_VK_R,DOM_VK_RETURN,DOM_VK_RIGHT,DOM_VK_S,DOM_VK_SCROLL_LOCK,DOM_VK_SELECT," + "DOM_VK_SEMICOLON,DOM_VK_SEPARATOR,DOM_VK_SHIFT,DOM_VK_SLASH,DOM_VK_SLEEP,DOM_VK_SPACE," + "DOM_VK_SUBTRACT,DOM_VK_T,DOM_VK_TAB,DOM_VK_TILDE,DOM_VK_U,DOM_VK_UNDERSCORE,DOM_VK_UP,DOM_VK_V," + "DOM_VK_VOLUME_DOWN,DOM_VK_VOLUME_MUTE,DOM_VK_VOLUME_UP,DOM_VK_W,DOM_VK_WIN,DOM_VK_WIN_ICO_00," + "DOM_VK_WIN_ICO_CLEAR,DOM_VK_WIN_ICO_HELP,DOM_VK_WIN_OEM_ATTN,DOM_VK_WIN_OEM_AUTO," + "DOM_VK_WIN_OEM_BACKTAB,DOM_VK_WIN_OEM_CLEAR,DOM_VK_WIN_OEM_COPY,DOM_VK_WIN_OEM_CUSEL," + "DOM_VK_WIN_OEM_ENLW,DOM_VK_WIN_OEM_FINISH,DOM_VK_WIN_OEM_FJ_JISHO,DOM_VK_WIN_OEM_FJ_LOYA," + "DOM_VK_WIN_OEM_FJ_MASSHOU,DOM_VK_WIN_OEM_FJ_ROYA,DOM_VK_WIN_OEM_FJ_TOUROKU,DOM_VK_WIN_OEM_JUMP," + "DOM_VK_WIN_OEM_PA1,DOM_VK_WIN_OEM_PA2,DOM_VK_WIN_OEM_PA3,DOM_VK_WIN_OEM_RESET," + "DOM_VK_WIN_OEM_WSCTRL,DOM_VK_X,DOM_VK_Y,DOM_VK_Z,DOM_VK_ZOOM,getModifierState(),initKeyEvent()," + "isComposing,key,keyCode,location,metaKey,repeat,shiftKey", IE = "altKey,char,charCode,ctrlKey,DOM_KEY_LOCATION_JOYSTICK,DOM_KEY_LOCATION_LEFT," + "DOM_KEY_LOCATION_MOBILE,DOM_KEY_LOCATION_NUMPAD,DOM_KEY_LOCATION_RIGHT,DOM_KEY_LOCATION_STANDARD," + "getModifierState(),initKeyboardEvent(),key,keyCode,locale,location,metaKey,repeat,shiftKey," + "which", EDGE = "altKey,char,charCode,ctrlKey,DOM_KEY_LOCATION_JOYSTICK,DOM_KEY_LOCATION_LEFT," + "DOM_KEY_LOCATION_MOBILE,DOM_KEY_LOCATION_NUMPAD,DOM_KEY_LOCATION_RIGHT,DOM_KEY_LOCATION_STANDARD," + "getModifierState(),initKeyboardEvent(),key,keyCode,locale,location,metaKey,repeat,shiftKey," + "which") @NotYetImplemented({ CHROME, FF, IE, EDGE }) public void keyboardEvent() throws Exception { testString("document.createEvent ? document.createEvent('KeyboardEvent') : ''," + " document.createEvent ? document.createEvent('UIEvent') : ''"); } }