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

Unified Diff: LayoutTests/editing/text-iterator/findString.html

Issue 624483002: Make TextIterator not stop at IMG element for finding text separating inline image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/editing/text-iterator/findString-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/text-iterator/findString.html
diff --git a/LayoutTests/editing/text-iterator/findString.html b/LayoutTests/editing/text-iterator/findString.html
index bd79c38b121e23ca64e86742026fdf8c148cdd5a..6f914190906dc8fce9ce8d40577191f61a207c8a 100644
--- a/LayoutTests/editing/text-iterator/findString.html
+++ b/LayoutTests/editing/text-iterator/findString.html
@@ -12,7 +12,7 @@
log("Searching for \u2018" + target + "\u2019 " + (text.length <= 64 ? "in \u2018" + text + "\u2019 " : "in long string ") + "with options [" + options.join(", ") + "]:");
var container = document.getElementById("container");
- container.innerText = text;
+ container.innerHTML = text;
document.body.offsetTop;
var selection = getSelection();
selection.empty();
@@ -109,5 +109,7 @@
testFindString("Use an @import rule", "@", ["AtWordStarts"], [[7, 8], []]);
testFindString("If ((x + 5) * 2) = 14, then x = 2", "(x", ["AtWordStarts"], [[4, 6], []]);
+ testFindString("hello<img src='../resources/abe.png'>world", "lowo", [], [[3, 2], []]);
+
document.getElementById("console").style.removeProperty("visibility");
</script>
« no previous file with comments | « no previous file | LayoutTests/editing/text-iterator/findString-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698