[webkit-changes] cvs commit: LayoutTests/editing/input
range-for-empty-document-expected.txt range-for-empty-document.html
Alexey
ap at opensource.apple.com
Wed Dec 28 10:23:24 PST 2005
ap 05/12/28 10:23:24
Modified: . ChangeLog
Added: editing/input range-for-empty-document-expected.txt
range-for-empty-document.html
Log:
Reviewed by Maciej.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6246
TextIterator::rangeFromLocationAndLength() returns nil range for an
empty document
* editing/input/range-for-empty-document-expected.txt: Added.
* editing/input/range-for-empty-document.html: Added.
Revision Changes Path
1.194 +11 -0 LayoutTests/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/LayoutTests/ChangeLog,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -r1.193 -r1.194
--- ChangeLog 28 Dec 2005 03:47:47 -0000 1.193
+++ ChangeLog 28 Dec 2005 18:23:22 -0000 1.194
@@ -1,3 +1,14 @@
+2005-12-28 Alexey Proskuryakov <ap at nypop.com>
+
+ Reviewed by Maciej.
+
+ - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6246
+ TextIterator::rangeFromLocationAndLength() returns nil range for an
+ empty document
+
+ * editing/input/range-for-empty-document-expected.txt: Added.
+ * editing/input/range-for-empty-document.html: Added.
+
2005-12-27 Maciej Stachowiak <mjs at apple.com>
Rubber stamped by Eric.
1.1 LayoutTests/editing/input/range-for-empty-document-expected.txt
Index: range-for-empty-document-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
(0, 0): 0,600,0,0
1.1 LayoutTests/editing/input/range-for-empty-document.html
Index: range-for-empty-document.html
===================================================================
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</HEAD>
<BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">
<script>
var console_messages = document.createElement("ol");
function log(message)
{
var item = document.createElement("li");
item.appendChild(document.createTextNode(String(message).replace(/0x[0-9a-fA-F]{8}/g, "0xXXXXXXXX").replace(/\n/g, "\\n").replace(/\t/g, "\\t")));
console_messages.appendChild(item);
}
if (window.layoutTestController) {
try {
layoutTestController.dumpAsText();
window.getSelection().setPosition(document.body, 0);
// should not be (0, 0, 0, 0)
log("(0, 0): " + textInputController.firstRectForCharacterRange(0, 0));
document.body.innerHTML = "";
} catch (ex) {
log("Exception: " + ex.description);
}
var console = document.createElement("p");
console.appendChild(console_messages);
document.body.appendChild(console);
} else {
document.write("(cannot run interactively)");
}
</script>
</BODY>
</HTML>
More information about the webkit-changes
mailing list