Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / window-find.html
blobde26dec3e1803bee9decce28b5af2fe3550b1392
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function fail(s) {
10 document.body.innerHTML = "FAIL: " + s;
13 function runTest() {
14 // Need to force layout for window.find() to operate correctly.
15 var forceLayout = document.body.offsetHeight;
16 if (window.find('nonsense')) fail('found: nonsense');
17 // https://bugs.webkit.org/show_bug.cgi?id=53654 -- failure when flipping
18 // case sensitivity back-to-back.
19 if (window.find('nonsense', true)) fail('found: nonsense');
20 if (window.find('nonsense', false)) fail('found: nonsense');
21 if (!window.find('for')) fail('not found: for');
22 if (window.find('for')) fail('found: for');
23 // Go backwards.
24 if (!window.find('test', true, true, false)) fail('not found: test');
25 if (window.find('for', true, true, false)) fail('found: for');
26 // Backwards and case sensitivity.
27 if (window.find('this', true, true, false)) fail('found: this');
28 if (!window.find('This', true, true, false)) fail('not found: This');
29 // Wrap-around forwards.
30 if (!window.find('for', true, false, true)) fail('not found: for');
31 if (!window.find('for', true, false, true)) fail('not found: for');
32 // Wrap-around backwards.
33 if (!window.find('for', true, true, true)) fail('not found: for');
34 if (!window.find('for', true, true, true)) fail('not found: for');
35 // Case sensitivity, forwards.
36 if (!window.find('for', true, false, true)) fail('not found: for');
37 if (!window.find('fOR', false, false, true)) fail('not found: for');
38 if (!window.find('for', false, false, true)) fail('not found: for');
39 if (!window.find('for', true, false, true)) fail('not found: for');
40 if (window.find('FOR', true, false, true)) fail('found: FOR');
41 // WholeWord.
42 if (!window.find('for', false, false, true, true)) fail('whole word not found: for');
43 if (!window.find('find', false, false, true, true)) fail('whole word not found: find');
44 if (window.find('this', true, false, false, true)) fail('whole word found: this');
45 if (window.find('est', false, false, false, true)) fail('whole word found: est');
46 if (window.find('succ', false, false, false, true)) fail('whole word found: succ');
48 if (window.testRunner)
49 testRunner.notifyDone();
51 </script>
52 </head>
53 <body onload="runTest()">
54 This is a test for window.find(). SUCCESS!
55 </body>
56 </html>