blob: 4fb7abc804b48a457bb64370e9e98f5cfb8f9904 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ ColorFilterEnabled=true ] -->
<html>
<head>
<script src="resources/dump-attributed-string.js"></script>
<script>
shouldAutoDump = false;
</script>
</head>
<body>
<div id="editor" style="-apple-color-filter: apple-invert-lightness(); color: rgba(20, 20, 20, 0.4); background: #ccc;" contenteditable>Some text here</div>
<pre id="result">This test requires DumpRenderTree</pre>
<script type="text/javascript">
document.getElementById("editor").focus();
getSelection().setPosition(editor, 0);
if (window.testRunner) {
var attribString = textInputController.attributedStringForTyping()
var serialized = serializeAttributedString(attribString);
result.textContent = 'Input:\n' + editor.outerHTML.trim() + '\n\nOutput:\n' + serialized;
}
</script>
</body>
</html>