[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

eric at webkit.org eric at webkit.org
Wed Apr 7 23:17:36 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit ae2cf70c9ebdfc703f3e8f820e111c51f4c99384
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sun Nov 1 16:18:38 2009 +0000

    2009-11-01  Hironori Bono  <hbono at chromium.org>
    
            Reviewed by Darin Adler.
    
            Bug 30902: Need a layout test for Bug 28284
            This change just adds a simple test that calls TextInputController.firstRectForCharacterRange()
            before and after inserting a Thai character and compare their results.
            https://bugs.webkit.org/show_bug.cgi?id=30902
    
            * fast/text/international/thai-cursor-position-expected.txt: Added.
            * fast/text/international/thai-cursor-position.html: Added.
            * platform/gtk/Skipped: Skip this test because TextInputController is not implemented.
            * platform/qt/Skipped: ditto.
            * platform/win/Skipped: ditto.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50388 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 5a6285c..8c8063a 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,18 @@
+2009-11-01  Hironori Bono  <hbono at chromium.org>
+
+        Reviewed by Darin Adler.
+
+        Bug 30902: Need a layout test for Bug 28284
+        This change just adds a simple test that calls TextInputController.firstRectForCharacterRange()
+        before and after inserting a Thai character and compare their results.
+        https://bugs.webkit.org/show_bug.cgi?id=30902
+
+        * fast/text/international/thai-cursor-position-expected.txt: Added.
+        * fast/text/international/thai-cursor-position.html: Added.
+        * platform/gtk/Skipped: Skip this test because TextInputController is not implemented.
+        * platform/qt/Skipped: ditto.
+        * platform/win/Skipped: ditto.
+
 2009-11-01  Yuta Kitamura  <yutak at chromium.org>
 
         Reviewed by Darin Adler.
diff --git a/LayoutTests/fast/text/international/thai-cursor-position-expected.txt b/LayoutTests/fast/text/international/thai-cursor-position-expected.txt
new file mode 100644
index 0000000..1dfb360
--- /dev/null
+++ b/LayoutTests/fast/text/international/thai-cursor-position-expected.txt
@@ -0,0 +1,4 @@
+This tests that the pixel-level x coordinate of a character range (0,0) doesn't change before and after inserting a Thai character. If this test finishes successfully, this test displays "SUCCEEDED". Otherwise this test displays "FAILED".
+
+ก
+SUCCEEDED
diff --git a/LayoutTests/fast/text/international/thai-cursor-position.html b/LayoutTests/fast/text/international/thai-cursor-position.html
new file mode 100644
index 0000000..7f597c0
--- /dev/null
+++ b/LayoutTests/fast/text/international/thai-cursor-position.html
@@ -0,0 +1,40 @@
+<html>
+<head>
+<title></title>
+</head>
+<body>
+<p>This tests that the pixel-level x coordinate of a character range (0,0) doesn't change before and after inserting a Thai character. If this test finishes successfully, this test displays "SUCCEEDED". Otherwise this test displays "FAILED".</p>
+<div id="test" contenteditable></div>
+<ul id="console"></ul>
+<script type="text/javascript">
+function log(str) {
+    var li = document.createElement("li");
+    li.appendChild(document.createTextNode(str));
+    var console = document.getElementById("console");
+    console.appendChild(li);
+}
+
+if (window.layoutTestController) {
+    layoutTestController.dumpAsText();
+    var test = document.getElementById("test");
+    test.focus();
+
+    // Retrieve the pixel-level x coordinate of a character range (0,0) BEFORE inserting a Thai character.
+    var rect0 = textInputController.firstRectForCharacterRange(0, 0);
+    var x0 = rect0.toString().split(',')[0];
+
+    // Insert a Thai character U+0E01.
+    test.innerText += String.fromCharCode(0x0E01);
+
+    // Retrieve the pixel-level x coordinate of a character range (0,0) AFTER inserting a Thai character.
+    var rect1 = textInputController.firstRectForCharacterRange(0, 0);
+    var x1 = rect1.toString().split(',')[0];
+
+    // Compare the x coordinates. (They must be the same.)
+    if (x0 == x1)
+        log('SUCCEEDED');
+    else
+        log('FAILED: before=' + x0 + ', after=' + x1);
+}
+</script>
+</body>
diff --git a/LayoutTests/platform/gtk/Skipped b/LayoutTests/platform/gtk/Skipped
index 0fb5053..bc0d2ad 100644
--- a/LayoutTests/platform/gtk/Skipped
+++ b/LayoutTests/platform/gtk/Skipped
@@ -5568,6 +5568,7 @@ fast/loader/opaque-base-url.html
 # No TextInputController
 fast/forms/input-maxlength-ime-completed.html
 fast/forms/input-maxlength-ime-preedit.html
+fast/text/international/thai-cursor-position.html
 
 # No User Scripts
 userscripts
diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped
index 930f56f..5dc001f 100644
--- a/LayoutTests/platform/qt/Skipped
+++ b/LayoutTests/platform/qt/Skipped
@@ -122,6 +122,7 @@ inspector/uncaught-dom8-exception.html
 # Missing textInputController.setMarkedText()
 fast/forms/input-maxlength-ime-preedit.html
 fast/forms/input-maxlength-ime-completed.html
+fast/text/international/thai-cursor-position.html
 
 # Missing layoutTestController.overridePreference()
 fast/events/pageshow-pagehide-on-back-cached.html
diff --git a/LayoutTests/platform/win/Skipped b/LayoutTests/platform/win/Skipped
index d0e750d..d8a7e32 100644
--- a/LayoutTests/platform/win/Skipped
+++ b/LayoutTests/platform/win/Skipped
@@ -630,6 +630,7 @@ http/tests/loading/preload-img-test.html
 # No TextInputController
 fast/forms/input-maxlength-ime-completed.html
 fast/forms/input-maxlength-ime-preedit.html
+fast/text/international/thai-cursor-position.html
 
 # Failing media tests on windows <http://webkit.org/b/29047>
 media/audio-delete-while-step-button-clicked.html

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list