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

Unified Diff: LayoutTests/fast/regions/selecting-text-in-empty-region.html

Issue 25868002: [CSS Regions] Selection layout tests moved to specific folder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/regions/selecting-text-in-empty-region-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/regions/selecting-text-in-empty-region.html
diff --git a/LayoutTests/fast/regions/selecting-text-in-empty-region.html b/LayoutTests/fast/regions/selecting-text-in-empty-region.html
deleted file mode 100644
index 760fc1aa02760d0a631eb7b8d0987c360f0ed2ef..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/selecting-text-in-empty-region.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <style>
- body { font: 20px/1 monospace; margin: 20px; }
- #region { -webkit-flow-from: undefined; width: 100px; height: 100px; border: 10px solid blue; }
- </style>
- </head>
- <body>
- <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=107752"> [CSS Regions] Selecting text inside an empty region causes selection outside the region area</a>.</p>
- <p>The blue border box is a region without flowed content.</p>
- <p>To test manually, move the mouse in the top left corner of the region and try to select the region content.</p>
- <p>You should not see any selected text: <span id="result"></span></p>
- <div id="region"></div>
- <script>
- if (window.testRunner) {
- window.testRunner.dumpAsText();
- var selection = window.getSelection();
-
- var region = document.getElementById("region");
- var startPositionX = region.offsetLeft + 10;
- var startPositionY = region.offsetTop + 10;
- var endPositionX = startPositionX + 100;
- var endPositionY = startPositionY + 100;
-
- eventSender.mouseMoveTo(startPositionX, startPositionY);
- eventSender.mouseDown();
- eventSender.mouseMoveTo(endPositionX, endPositionY);
- eventSender.mouseUp();
-
- document.getElementById("result").innerHTML = (selection.toString().length == 0) ? "PASS" : "FAIL";
- }
- </script>
- </body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/fast/regions/selecting-text-in-empty-region-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698