summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/append-node-under-document.html
blob: 7bc9927a66c267cfaf04f49d8db33cdfd7d3ab62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<body onload="runTest()">
<script>

if (window.testRunner)
    testRunner.dumpAsText();

function runTest() {
  document.designMode = "on";
  document.open();
  var parent = document.appendChild(document.createElement('iframe'));
  parent.appendChild(document.createElement('iframe'));
  parent.focus();
  document.execCommand("InsertHorizontalRule");

  document.open();
  document.writeln('This test ensures WebKit does not crash when replacing contents in a document whose the only content is a nested iframes.<br>PASS.');
}

</script>
</body>
</html>