Reproducible ASSERTion failure when toggling layer borders with find-in-page up
[WebKit-https.git] / LayoutTests / editing / document-marker-null-check.html
1 <html>
2 <head>
3 <title>This test that we don't crash on a null text node with marker on it.</title>
4 <style>
5 div:before {
6         content: "foobar";
7         display: table;
8 }
9 </style>
10 </head>
11 <body>
12 <div>Pass if no crash or assert.</div>
13 <script>
14 if (window.testRunner)
15     testRunner.dumpAsText();
16
17 if (window.internals) {
18         internals.settings.setSimpleLineLayoutEnabled(false);   
19         var findOptions = ['CaseInsensitive', 'AtWordStarts', 'TreatMedialCapitalAsWordStart', 'WrapAround'];
20         internals.countMatchesForText('assert', findOptions, 'mark');
21 }
22
23 document.body.offsetHeight;
24 if (window.internals)
25         internals.settings.setSimpleLineLayoutEnabled(true);
26 document.body.offsetHeight;
27 </script>
28 </body>
29 </html>