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

Unified Diff: LayoutTests/fast/regions/hover-in-region-grandparent.html

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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/regions/hover-in-region-grandparent.html
diff --git a/LayoutTests/fast/regions/hover-in-region-grandparent.html b/LayoutTests/fast/regions/hover-in-region-grandparent.html
deleted file mode 100644
index 07249e7680337991f4be836a961119e50b096813..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/hover-in-region-grandparent.html
+++ /dev/null
@@ -1,169 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <style>
- /* Make sure the console and the description don't interfere with the rest of the layout. */
- #description {
- position: absolute;
- top: 0px;
- }
-
- #console {
- position: absolute;
- top: 100px;
- }
-
- #grandparent {
- width: 100px;
- height: 100px;
- border: 5px solid blue;
- background-color: lightblue;
- }
-
- #parent {
- width: 100px;
- height: 100px;
- border: 5px solid red;
- background-color: darkred;
- -webkit-flow-into: flow1;
- }
-
- #child {
- width: 100px;
- height: 100px;
- -webkit-flow-into: flow2;
- border: 5px solid green;
- background-color: orange;
- }
-
- #region1 {
- width: 150px;
- height: 150px;
- -webkit-flow-from: flow1;
- border: 1px solid lime;
- margin-top: 10px;
- margin-bottom: 10px;
- }
-
- #region2 {
- width: 150px;
- height: 150px;
- -webkit-flow-from: flow2;
- border: 1px solid lime;
- }
-
- #child:hover {
- background-color: green;
- }
-
- #parent:hover {
- background-color: green;
- }
-
- #grandparent:hover {
- background-color: green;
- }
- </style>
-
- <script src="../../resources/js-test.js"></script>
- </head>
- <body>
- <ol>
- <li>Move the mouse over the orange square
- <ul>
- <li>All three squares should turn green</li>
- </ul>
- </li>
- <li>Move the mouse over the red square
- <ul>
- <li>The first two squares should turn green</li>
- </ul>
- </li>
- </ol>
-
- <div class="box" id="grandparent">
- <div class="box" id="parent">
- <div class="box" id="child"></div>
- </div>
- </div>
- <div class="box" id="region1"></div>
- <div class="box" id="region2"></div>
-
- <script type="text/javascript">
- description("Test hover on children when flowed into region.")
-
- if (window.eventSender) {
- var child = document.querySelector("#child");
- var parent = document.querySelector("#parent");
- var grandparent = document.querySelector("#grandparent");
-
- // move mouse on the child object
- {
- eventSender.mouseMoveTo(child.offsetLeft + 10, child.offsetTop + 50);
- eventSender.mouseDown(0);
- eventSender.leapForward(500);
- eventSender.mouseUp(0);
-
- var childColor = window.getComputedStyle(child).getPropertyValue("background-color");
- var parentColor = window.getComputedStyle(parent).getPropertyValue("background-color");
- var grandparentColor = window.getComputedStyle(grandparent).getPropertyValue("background-color");
-
- if (childColor == "rgb(0, 128, 0)")
- testPassed("Child hover event processed OK.");
- else
- testFailed("Child hover event FAILED to process.");
-
- if (parentColor == "rgb(0, 128, 0)")
- testPassed("Parent hover event processed OK.");
- else
- testFailed("Parent hover event FAILED to process.");
-
- if (grandparentColor == "rgb(0, 128, 0)")
- testPassed("Grandparent hover event processed OK.");
- else
- testFailed("Grandparent hover event FAILED to process.");
- }
-
- // move mouse on the parent object
- {
- eventSender.mouseMoveTo(parent.offsetLeft + 10, parent.offsetTop + 50);
- eventSender.mouseDown(0);
- eventSender.leapForward(500);
- eventSender.mouseUp(0);
-
- var childColor = window.getComputedStyle(child).getPropertyValue("background-color");
- var parentColor = window.getComputedStyle(parent).getPropertyValue("background-color");
- var grandparentColor = window.getComputedStyle(grandparent).getPropertyValue("background-color");
-
- if (childColor != "rgb(0, 128, 0)")
- testPassed("Child hover event processed OK.");
- else
- testFailed("Child hover event FAILED to process.");
-
- if (parentColor == "rgb(0, 128, 0)")
- testPassed("Parent hover event processed OK.");
- else
- testFailed("Parent hover event FAILED to process.");
-
- if (grandparentColor == "rgb(0, 128, 0)")
- testPassed("Grandparent hover event processed OK.");
- else
- testFailed("Grandparent hover event FAILED to process.");
- }
- }
-
- if (window.testRunner) {
- var elementsToHide = document.querySelectorAll("ol, .box");
- for (var i=0; i<elementsToHide.length; i++)
- elementsToHide[i].style.visibility = "hidden";
- }
-
- else {
- var elementsToHide = document.querySelectorAll("#console, #description");
- for (var i=0; i<elementsToHide.length; i++)
- elementsToHide[i].style.visibility = "hidden";
- }
- </script>
-
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698