| Index: third_party/WebKit/LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js b/third_party/WebKit/LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js
|
| deleted file mode 100644
|
| index e04a8604767cf78e7ac0d1b7efe8882b69a6b72b..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js
|
| +++ /dev/null
|
| @@ -1,63 +0,0 @@
|
| -description("Test reflecting boolean attributes.");
|
| -
|
| -var attributes = [
|
| - [ "area", "noHref" ],
|
| - [ "dir", "compact" ],
|
| - [ "dl", "compact" ],
|
| - [ "form", "noValidate" ],
|
| - [ "frame", "noResize" ],
|
| - [ "hr", "noShade" ],
|
| - [ "iframe", "allowFullscreen" ],
|
| - [ "img", "isMap" ],
|
| - [ "input", "autofocus" ],
|
| - [ "input", "defaultChecked", "checked" ],
|
| - [ "input", "disabled" ],
|
| - [ "input", "formNoValidate" ],
|
| - [ "input", "multiple" ],
|
| - [ "input", "readOnly" ],
|
| - [ "input", "required" ],
|
| - [ "link", "disabled" ],
|
| - [ "menu", "compact" ],
|
| - [ "menuitem", "checked" ],
|
| - [ "menuitem", "default" ],
|
| - [ "menuitem", "disabled" ],
|
| - [ "object", "declare" ],
|
| - [ "ol", "compact" ],
|
| - [ "option", "defaultSelected", "selected" ],
|
| - [ "script", "defer" ],
|
| - [ "select", "multiple" ],
|
| - [ "td", "noWrap" ],
|
| - [ "ul", "compact" ],
|
| - [ "video", "autoplay" ],
|
| - [ "video", "controls" ],
|
| - [ "video", "loop" ],
|
| -];
|
| -
|
| -function make(tag)
|
| -{
|
| - return document.createElement(tag);
|
| -}
|
| -
|
| -for (var i = 0; i < attributes.length; ++i) {
|
| - var tag = attributes[i][0];
|
| - var reflectingAttribute = attributes[i][1];
|
| - var contentAttribute = attributes[i][2] || reflectingAttribute.toLowerCase();
|
| - shouldBe("e = make('" + tag + "'); "
|
| - + "e.removeAttribute('" + contentAttribute + "'); "
|
| - + "e." + reflectingAttribute,
|
| - "false");
|
| - shouldBe("e = make('" + tag + "'); "
|
| - + "e.setAttribute('" + contentAttribute + "', ''); "
|
| - + "e." + reflectingAttribute,
|
| - "true");
|
| - shouldBe("e = make('" + tag + "'); "
|
| - + "e.setAttribute('" + contentAttribute + "', 'x'); "
|
| - + "e." + reflectingAttribute + " = false; "
|
| - + "e.getAttribute('" + contentAttribute + "')",
|
| - "null");
|
| - shouldBe("e = make('" + tag + "'); "
|
| - + "e.setAttribute('" + contentAttribute + "', 'x'); "
|
| - + "e." + reflectingAttribute + " = true; "
|
| - + "e.getAttribute('" + contentAttribute + "')",
|
| - "''");
|
| -}
|
|
|