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

Side by Side Diff: LayoutTests/platform/chromium/editing/text-iterator/findString-restarts-at-last-position.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../../fast/js/resources/js-test-style.css">
5 <script src=../../../../fast/js/resources/js-test-pre.js language="javascript" t ype="text/javascript"></script>
6 <title>Testing that searching for text restarts at the last active match.</title >
7 </head>
8 <body>
9 <div id="container">
10 Failure: If the second search ends up finding the text in this line we d idn't restart the search from the last active match: last_step.<br />
11 Start: The first search should match this word: first_step.<br />
12 Success: The second search should match this word: last_step. Subsequent searches should fail.
13 </div>
14 <pre id="console" style="visibility: hidden;"></pre>
15 <script>
16 function log(message)
17 {
18 document.getElementById("console").appendChild(document.createTextNode(messa ge + "\n"));
19 }
20
21 if (!window.testRunner)
22 testFailed('This test requires the testRunner object');
23 else {
24 shouldBeTrue('testRunner.findString("first_", [])');
25 shouldBeTrue('testRunner.findString("first_step", [])');
26 shouldBeTrue('testRunner.findString("last_step", [])');
27 shouldBeFalse('testRunner.findString("last_step", [])');
28 }
29
30 document.getElementById("console").style.removeProperty("visibility");
31
32 var successfullyParsed = true;
33 </script>
34 <script src="../../../../fast/js/resources/js-test-post.js"></script>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698