Reviewed by Alexey.
- fix http://bugs.webkit.org/show_bug.cgi?id=11814
REGRESSION(r18098): Find does not work with capital letters
Test: editing/execCommand/findString-3.html
* wtf/unicode/icu/UnicodeIcu.h:
(WTF::Unicode::foldCase): Changed to not return an error if the result fits
in the buffer without a null terminator.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18247
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-12-16 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Alexey.
+
+ - fix http://bugs.webkit.org/show_bug.cgi?id=11814
+ REGRESSION(r18098): Find does not work with capital letters
+
+ Test: editing/execCommand/findString-3.html
+
+ * wtf/unicode/icu/UnicodeIcu.h:
+ (WTF::Unicode::foldCase): Changed to not return an error if the result fits
+ in the buffer without a null terminator.
+
2006-12-13 Maciej Stachowiak <mjs@apple.com>
Reviewed by Anders.
{
UErrorCode status = U_ZERO_ERROR;
int32_t realLength = u_strFoldCase(result, resultLength, src, srcLength, U_FOLD_CASE_DEFAULT, &status);
- *error = !(U_SUCCESS(status) && realLength < resultLength);
+ *error = !U_SUCCESS(status);
return realLength;
}
+2006-12-16 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Alexey.
+
+ - test for http://bugs.webkit.org/show_bug.cgi?id=11814
+ REGRESSION(r18098): Find does not work with capital letters
+
+ * editing/execCommand/findString-3-expected.txt: Added.
+ * editing/execCommand/findString-3.html: Added.
+
2006-12-15 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin.
--- /dev/null
+Test for http://bugs.webkit.org/show_bug.cgi?id=11814 REGRESSION(r18098): Find does not work with capital letters.
+
+The word “uppercase” should be selected.
+
+PASS
+
+
--- /dev/null
+<p>
+ Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11814">http://bugs.webkit.org/show_bug.cgi?id=11814</a>
+ REGRESSION(r18098): Find does not work with capital letters</i>.
+</p>
+<p>
+ The word “uppercase” should be selected.
+</p>
+<hr>
+<p id="result">
+ FAIL
+</p>
+<script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+ if (document.execCommand("FindString", false, "UPPERcase"))
+ document.getElementById("result").innerText = "PASS";
+</script>