Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / selection-plugin-clear-crash.html
blobfc66b5e2b98e57c923d7b66f03b44082b85bbaec
1 <!DOCTYPE html>
2 <html>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function runTest()
9 var obj = document.getElementById("test");
10 var s = window.getSelection();
11 // The cleardocumentduringnew attribute intends to clear document.body when the
12 // embed element is loaded and it is used for only tests. See:
13 // https://code.google.com/p/chromium/codesearch#chromium/src/content/shell/tools/plugin/main.cpp&q=cleardocumentduringnew&type=cs&sq=package:chromium&l=247
14 // It causes a timing issue that |obj| exists on Linux but not on Windows.
15 if (obj)
16 s.collapse(obj, 0);
17 else
18 s.removeAllRanges();
19 document.body.innerHTML = "PASS";
21 </script>
22 <body onload="runTest()">
23 <div>
24 <object id="test"></object>
25 <embed type="application/x-webkit-test-netscape" cleardocumentduringnew></embed>
26 </div>
27 </body>
28 </html>