Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 + "')",
- "''");
-}

Powered by Google App Engine
This is Rietveld 408576698