blob: 28ec1b57cd8d70b054549720a2fac0dfaed1cba3 [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: 2px solid red;
font-size: 24px;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
.scenario { margin-bottom: 16px;}
.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
.expected-results:first-line { font-weight: bold }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 4; i++)
moveSelectionForwardByCharacterCommand();
for (i = 0; i < 3; i++)
extendSelectionForwardByCharacterCommand();
copyCommand();
for (i = 0; i < 4; i++)
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
pasteAndMatchStyleCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div class="explanation">
<div class="scenario">
Tests:
<br>
Fix for this bug:
<a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=3429">&lt;http://bugzilla.opendarwin.org/show_bug.cgi?id=3429&gt;</a> Text transformed with text-transform does not copy with transform applied
</div>
<div class="expected-results">
Expected Results:
<br>
Should see the string <pre>Foo Bar baz Bar</pre> (case sensitive).
</div>
</div>
<div contenteditable id="root" class="editing">
<span id="test"><span style="text-transform: capitalize;">foo bar</span> baz</span>
</div>
<script>
runEditingTest();
</script>
</body>
</html>