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

Unified Diff: LayoutTests/platform/chromium/editing/text-iterator/findString-start-search-after-selection.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/editing/text-iterator/findString-start-search-after-selection.html
diff --git a/LayoutTests/platform/chromium/editing/text-iterator/findString-start-search-after-selection.html b/LayoutTests/platform/chromium/editing/text-iterator/findString-start-search-after-selection.html
deleted file mode 100644
index 69c1b03e0b9d4b9bebd956e7a3b00c19865c4897..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/editing/text-iterator/findString-start-search-after-selection.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<link rel="stylesheet" href="../../../../fast/js/resources/js-test-style.css">
-<script src=../../../../fast/js/resources/js-test-pre.js language="javascript" type="text/javascript"></script>
-<title>Testing that searching for text starts at the active selection</title>
-</head>
-<body>
- <div id="container">
- The _before_selection_ word is before the selection, so we shouldn't be able to find it if span_to_select is selected.
- <br/>
- <span id="span_to_select">The _in_selection_ word is in the selection and we should always be able to find it.</span>
- <br/>
- The _after_selection_ word is after the selection and we should always be able to find that too.
- </div>
-<pre id="console" style="visibility: hidden;"></pre>
-<script>
-function log(message)
-{
- document.getElementById("console").appendChild(document.createTextNode(message + "\n"));
-}
-
-function selectText()
-{
- var selection = window.getSelection();
- var range = document.createRange();
- var spanToSelect = document.getElementById('span_to_select');
- range.setStartBefore(spanToSelect);
- range.setEndAfter(spanToSelect);
- selection.addRange(range);
-}
-
-if (!window.testRunner)
- testFailed('This test requires the testRunner object');
-else {
- shouldBeTrue('testRunner.findString("_before_selection_", [])');
- shouldBeTrue('testRunner.findString("_in_selection_", [])');
- shouldBeTrue('testRunner.findString("_after_selection_", [])');
-
- debug('Selecting some text. This should make it not possible to find the _before_selection_ word without enabling wrap-around.');
- selectText();
-
- shouldBeFalse('testRunner.findString("_before_selection_", [])');
- shouldBeTrue('testRunner.findString("_in_selection_", [])');
- shouldBeTrue('testRunner.findString("_after_selection_", [])');
-}
-
-document.getElementById("console").style.removeProperty("visibility");
-
-var successfullyParsed = true;
-</script>
-<script src="../../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698