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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/details-mouse-click.html

Issue 2670273002: Move tests for DETAILS and SUMMARY elements to html/details_summary/. (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/html/details-mouse-click.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/details-mouse-click.html b/third_party/WebKit/LayoutTests/fast/html/details-mouse-click.html
deleted file mode 100644
index 319d787ceb95b032d820c6de0f14694d97594037..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/html/details-mouse-click.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-<head>
-<style>
-body {
- margin: 0px;
-}
-div {
- width:200px;
- height:80px;
-}
-summary {
- background-color: red;
-}
-</style>
-
-<script>
-
-var error = false;
-
-var writeLog = function (msg)
-{
- var results = document.getElementById('results');
- results.innerHTML += msg + '<br>';
-};
-
-var clickElement = function (element) {
-
- var detail = document.getElementById("details" + element);
- var old = detail.open;
-
- eventSender.mouseDown();
- eventSender.mouseUp();
-
- if (old !== detail.open) {
- writeLog("details" + element + "'s open attribute is expected to be'" + !old + "' and is.");
- } else {
- writeLog("details" + element + "'s open attribute is expected to be'" + !old + "' but instead is '" + old + "'.");
- error = true;
- }
-};
-
-var testElement = function (element) {
- switch (element) {
- case 0:
- eventSender.mouseMoveTo(2, 2);
- break;
- case 1:
- eventSender.mouseMoveTo(2, 158);
- break;
- case 2:
- eventSender.mouseMoveTo(2, 162);
- break;
- case 3:
- eventSender.mouseMoveTo(198, 242);
- break;
- }
-
- clickElement(element);
- clickElement(element);
-};
-
-var runTests = function () {
-
- if (!window.testRunner || !window.eventSender)
- return;
-
- testRunner.dumpAsText();
-
- testElement(0);
- testElement(2);
- testElement(3);
-
- writeLog(error ? "FAIL" : "PASS");
-}
-
-</script>
-
-</head>
-
-<body onload="runTests()">
-
-<div style="-webkit-writing-mode:horizontal-tb;">
- <details id="details0"><input></details>
-</div>
-
-<div>
- <details id="details1"><input></details>
-</div>
-
-<div style="-webkit-writing-mode:vertical-lr;">
- <details id="details2"><input></details>
-</div>
-
-<div style="-webkit-writing-mode:vertical-rl;">
- <details id="details3"><input></details>
-</div>
-
-<div id="results">
-</div>
-
-</body>
-

Powered by Google App Engine
This is Rietveld 408576698