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

Unified Diff: LayoutTests/fast/dom/shadow/tabstop-property.html

Issue 1152623012: WIP: delegatesFocus (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: LayoutTests/fast/dom/shadow/tabstop-property.html
diff --git a/LayoutTests/fast/dom/shadow/tabstop-property.html b/LayoutTests/fast/dom/shadow/tabstop-property.html
deleted file mode 100644
index 05a008162759e05434fb4929f07992893328161a..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/shadow/tabstop-property.html
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<p>This is basic behavior test for tabStop attribute.</p>
-<pre id="console"></pre>
-<script>
-var div;
-
-function resetAttributes(el)
-{
- el.removeAttribute("tabindex");
- el.removeAttribute("tabstop");
-}
-
-function tabStopShouldBe(el, expected)
-{
- shouldBe(el + ".tabStop", expected);
- shouldBeEqualToString(el + ".getAttribute('tabstop')", expected);
-}
-
-function test() {
- debug("Testing tabStop property and attribute");
-
- debug("Test tabStop normal assignment behavior");
- div = document.createElement("div");
-
- resetAttributes(div);
- var flag = div.tabStop;
- shouldBeFalse("div.tabStop");
-
- div.tabStop = flag;
- tabStopShouldBe("div", "false");
-
- div.removeAttribute('tabstop');
- shouldBeFalse("div.tabStop");
- shouldBeFalse("div.hasAttribute('tabstop')");
-
- div.tabStop = true;
- tabStopShouldBe("div", "true");
-
- div.removeAttribute('tabstop');
- shouldBeFalse("div.tabStop");
- shouldBeFalse("div.hasAttribute('tabstop')");
-
-
- debug("Test tabStop value implicitly set by tabindex property");
- resetAttributes(div);
- div.tabIndex = 0;
- shouldBeTrue("div.tabStop");
-
- div.tabIndex = -1;
- shouldBeFalse("div.tabStop");
-
- div.tabIndex = 1;
- shouldBeTrue("div.tabStop");
-
- resetAttributes(div);
- shouldBeFalse("div.tabStop");
-
-
- debug("Test explicit tabStop not overridable by tabindex attribute");
- resetAttributes(div);
- div.tabStop = false;
- div.setAttribute("tabindex", "0");
- tabStopShouldBe("div", "false");
-
- div.tabStop = true;
- div.setAttribute("tabindex", "-1");
- tabStopShouldBe("div", "true");
-
- div.tabStop = false;
- div.setAttribute("tabIndex", "1");
- tabStopShouldBe("div", "false");
-
- resetAttributes(div);
- shouldBeFalse("div.tabStop");
- shouldBeFalse("div.hasAttribute('tabstop')");
-
-
- debug("Test tabStop change with explicit tabindex change");
- resetAttributes(div);
-
- div.tabIndex = 0;
- shouldBeTrue("div.tabStop");
- div.tabStop = false;
- tabStopShouldBe("div", "false");
- resetAttributes(div);
-
- div.tabIndex = -1;
- shouldBeFalse("div.tabStop");
- div.tabStop = true;
- tabStopShouldBe("div", "true");
- resetAttributes(div);
-
- debug("Test tabStop with invalid value");
- resetAttributes(div);
-
- div.tabIndex = 0;
- div.tabStop = false;
- tabStopShouldBe("div", "false");
- div.setAttribute("tabstop", "invalid");
- shouldBeTrue("div.tabStop");
- shouldBeEqualToString("div.getAttribute('tabstop')", "invalid");
-
- div.tabIndex = -1;
- div.tabStop = true;
- tabStopShouldBe("div", "true");
- div.setAttribute("tabstop", "invalid");
- shouldBeFalse("div.tabStop");
- shouldBeEqualToString("div.getAttribute('tabstop')", "invalid");
-}
-
-function run_test() {
- if (window.testRunner)
- testRunner.dumpAsText();
-
- test();
-
- debug('Test finished.');
-}
-
-run_test();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698