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

Unified Diff: LayoutTests/fast/regions/hover-on-child-in-region.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-on-child-in-region.html
diff --git a/LayoutTests/fast/regions/hover-on-child-in-region.html b/LayoutTests/fast/regions/hover-on-child-in-region.html
deleted file mode 100644
index 4bd3e9cf346ab91b9091d0a32027d78e01696c16..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/hover-on-child-in-region.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!doctype html>
-<html lang="en">
-<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;
- }
-
- .box {
- width: 100px;
- height: 100px;
- }
- #parent {
- background-color: green;
- }
- #parent:hover {
- color: red;
- }
- #child {
- background-color: orange;
- -webkit-flow-into: f;
- }
- #region {
- -webkit-flow-from: f;
- }
- </style>
-
- <script src="../../resources/js-test.js"></script>
-</head>
-<body>
- <ol>
- <li>Move the mouse over the orange square</li>
- <li>The text should turn red</li>
- </ol>
- <div class="box" id="parent">
- <div class="box" id="child">Red = hover</div>
- </div>
- <div class="box" id="region"></div>
-
- <script type="text/javascript">
- description("Test hover on child when flowed into region.")
-
- if (window.eventSender) {
- var child = document.querySelector("#child");
- var parent = document.querySelector("#parent");
-
- // move mouse on the child object
- eventSender.mouseMoveTo(child.offsetLeft + 10, child.offsetTop + 50);
- eventSender.mouseDown(0);
- eventSender.leapForward(500);
- eventSender.mouseUp(0);
-
- var computedStyle = window.getComputedStyle(parent);
- var clr = computedStyle.getPropertyValue("color");
- if (clr == "rgb(255, 0, 0)")
- testPassed("Hover event processed OK.");
- else
- testFailed("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