[webkit-changes] cvs commit: LayoutTests/fast/dom
character-index-for-point-expected.txt
character-index-for-point.html
Eric
eseidel at opensource.apple.com
Sat Nov 26 17:46:53 PST 2005
eseidel 05/11/26 17:46:53
Modified: . ChangeLog
Added: fast/dom character-index-for-point-expected.txt
character-index-for-point.html
Log:
Bug #: 5230
Submitted by: ap
Reviewed by: mjs
Test cases for http://bugzilla.opendarwin.org/show_bug.cgi?id=5230
* fast/dom/character-index-for-point-expected.txt: Added.
* fast/dom/character-index-for-point.html: Added.
Revision Changes Path
1.101 +9 -0 LayoutTests/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/LayoutTests/ChangeLog,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- ChangeLog 27 Nov 2005 01:02:44 -0000 1.100
+++ ChangeLog 27 Nov 2005 01:46:51 -0000 1.101
@@ -1,3 +1,12 @@
+2005-11-26 Alexey Proskuryakov <ap at nypop.com>
+
+ Reviewed by mjs.
+
+ Test cases for http://bugzilla.opendarwin.org/show_bug.cgi?id=5230
+
+ * fast/dom/character-index-for-point-expected.txt: Added.
+ * fast/dom/character-index-for-point.html: Added.
+
2005-11-26 Mitz Pettel <opendarwin.org at mitzpettel.com>
Reviewed by darin, committed by eseidel.
1.1 LayoutTests/fast/dom/character-index-for-point-expected.txt
Index: character-index-for-point-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
Line 1
Line 2
Line 3
2147483647
2147483647
0
0
3
4
5
5
2147483647
2147483647
7
7
8
2147483647
2147483647
2147483647
2147483647
2147483647
14
16
19
2147483647
2147483647
2147483647
2147483647
16
1.1 LayoutTests/fast/dom/character-index-for-point.html
Index: character-index-for-point.html
===================================================================
<html>
<head>
<style>
body { margin: 10; padding: 0 }
</style>
</head>
<body>
<div contenteditable id='test'>Line 1<div>Line 2</div><p>Line <i>3</i></p></div>
<p><ol id="console"></ol></p>
<script type="text/javascript">
function log(message)
{
var item = document.createElement("li");
item.appendChild(document.createTextNode(message));
document.getElementById("console").appendChild(item);
}
if (window.layoutTestController) {
try {
layoutTestController.dumpAsText();
window.getSelection().setPosition(document.getElementById("test"), 0);
log(textInputController.characterIndexForPoint(5, 600-5));
log(textInputController.characterIndexForPoint(5, 600-20));
log(textInputController.characterIndexForPoint(12, 600-16));
log(textInputController.characterIndexForPoint(16, 600-20));
log(textInputController.characterIndexForPoint(36, 600-17));
log(textInputController.characterIndexForPoint(40, 600-17));
log(textInputController.characterIndexForPoint(43, 600-17));
log(textInputController.characterIndexForPoint(46, 600-17));
log(textInputController.characterIndexForPoint(80, 600-17));
log(textInputController.characterIndexForPoint(5, 600-34));
log(textInputController.characterIndexForPoint(12, 600-34));
log(textInputController.characterIndexForPoint(15, 600-34));
log(textInputController.characterIndexForPoint(21, 600-34));
log(textInputController.characterIndexForPoint(63, 600-36));
log(textInputController.characterIndexForPoint(6, 600-53));
log(textInputController.characterIndexForPoint(25, 600-51));
log(textInputController.characterIndexForPoint(70, 600-55));
log(textInputController.characterIndexForPoint(3, 600-67));
log(textInputController.characterIndexForPoint(12, 600-67));
log(textInputController.characterIndexForPoint(28, 600-67));
log(textInputController.characterIndexForPoint(47, 600-67));
log(textInputController.characterIndexForPoint(73, 600-67));
log(textInputController.characterIndexForPoint(10, 600-87));
log(textInputController.characterIndexForPoint(28, 600-52));
log(textInputController.characterIndexForPoint(28, 600-61));
log(textInputController.characterIndexForPoint(27, 600-64));
} catch (ex) {
log("Exception: " + ex.description);
}
} else {
document.write("(cannot run interactively)");
}
</script>
</body>
</html>
More information about the webkit-changes
mailing list