55 lines
1.4 KiB
HTML
55 lines
1.4 KiB
HTML
<html>
|
|
<head>
|
|
|
|
<style>
|
|
.editing {
|
|
border: 2px solid red;
|
|
padding: 12px;
|
|
font-size: 24px;
|
|
}
|
|
.scenario:first-line { font-weight: bold; font-size: 24px; }
|
|
.expected:first-line { font-weight: bold; font-size: 24px; }
|
|
.citation { margin-top: 0px margin-bottom: 0px; border: 2px solid blue; font-size: 24px; }
|
|
</style>
|
|
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
|
|
|
|
<script>
|
|
|
|
function editingTest() {
|
|
moveSelectionForwardByCharacterCommand();
|
|
moveSelectionForwardByCharacterCommand();
|
|
moveSelectionForwardByCharacterCommand();
|
|
moveSelectionForwardByCharacterCommand();
|
|
insertNewlineInQuotedContentCommand();
|
|
}
|
|
|
|
</script>
|
|
|
|
<title>Editing Test</title>
|
|
</head>
|
|
<body id="root">
|
|
<div class="explanation">
|
|
<div class="scenario">
|
|
Splitting Mail blockquotes.
|
|
</div>
|
|
<div class="expected">
|
|
Expected Results:
|
|
<br>
|
|
Two blockquotes, with an unquoted blank line in between.<br>
|
|
The first blockquote contains two lines, the second one is blank.<br>
|
|
The second blockquote contains two lines, the first one is blank.<br>
|
|
</div>
|
|
</div>
|
|
<div contenteditable class="editing">My citation:
|
|
<div id="test">
|
|
<blockquote class="citation" type="cite"><div>one</div><div style="min-height: 24px;"><div style="min-height: 24px;"><div style="min-height: 24px;"><br></div></div></div><br><div>two</div></blockquote>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
runEditingTest();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|