blob: 420176375b30fe159c3beb060b3d3a85a9484b18 [file] [log] [blame]
<!doctype HTML>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests for a bug where indented text would appear quoted in GoogleDocs.
// Google docs uses blockquotes and FormatBlock to implement a "Quote Text"
// feature, and style rules for blockquotes appeared on the blockquotes that we
// use to implement indenting.
selection_test(
[
'<div contenteditable>',
'<div>|ab</div>',
'<blockquote>CD</blockquote>',
'</div>',
],
'indent',
[
'<div contenteditable>',
'<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">',
'<div>|ab</div>',
'</blockquote>',
'<blockquote>CD</blockquote>',
'</div>',
],
'Indent before BLOCKQUOTE');
</script>