summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests')
-rw-r--r--WebCore/manual-tests/autocorrection/autocorrection-contraction.html52
-rw-r--r--WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html49
-rw-r--r--WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html49
-rw-r--r--WebCore/manual-tests/indexeddb-persists.html4
-rw-r--r--WebCore/manual-tests/input-type-datetime-default-value.html80
5 files changed, 232 insertions, 2 deletions
diff --git a/WebCore/manual-tests/autocorrection/autocorrection-contraction.html b/WebCore/manual-tests/autocorrection/autocorrection-contraction.html
new file mode 100644
index 0000000..ef5bb68
--- /dev/null
+++ b/WebCore/manual-tests/autocorrection/autocorrection-contraction.html
@@ -0,0 +1,52 @@
+<html>
+<head>
+
+<style>
+.editing {
+ border: 2px solid red;
+ padding: 12px;
+ font-size: 24px;
+}
+</style>
+<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+function keepTyping() {
+ typeCharacterCommand('\'');
+ typeCharacterCommand('t');
+ typeCharacterCommand(' ');
+}
+
+function editingTest() {
+ typeCharacterCommand('t');
+ typeCharacterCommand('h');
+ typeCharacterCommand('i');
+ typeCharacterCommand('s');
+ typeCharacterCommand(' ');
+ typeCharacterCommand('w');
+ typeCharacterCommand('o');
+ typeCharacterCommand('u');
+ typeCharacterCommand('l');
+ typeCharacterCommand('d');
+ typeCharacterCommand('n');
+ setTimeout("keepTyping()", 1000);
+}
+
+</script>
+
+<title>Delete to Dismiss Reversion Panel Test</title>
+</head>
+<body>
+<div><p>This test verifies that, after typing an apostrophe, if the current word is part of a contraction, previously shown autocorrection will not be applied.</p>
+<p>After loading the page, you should see correction panel shows "would" for "wouldn". Then after typing "'t", the correction panel dissappears and the final sentence is "this wouldn't".</p>
+<div contenteditable id="root" class="editing">
+<span id="test"></span>
+</div>
+
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
diff --git a/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html b/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html
new file mode 100644
index 0000000..56724f1
--- /dev/null
+++ b/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html
@@ -0,0 +1,49 @@
+<html>
+<head>
+
+<style>
+.editing {
+ border: 2px solid red;
+ padding: 12px;
+ font-size: 24px;
+}
+</style>
+<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+function editingTest() {
+ typeCharacterCommand('t');
+ typeCharacterCommand('h');
+ typeCharacterCommand('e');
+ typeCharacterCommand(' ');
+ typeCharacterCommand('m');
+ typeCharacterCommand('e');
+ typeCharacterCommand('s');
+ typeCharacterCommand('a');
+ typeCharacterCommand('e');
+ typeCharacterCommand('g');
+ typeCharacterCommand('e');
+ typeCharacterCommand('e');
+ typeCharacterCommand(' ');
+ execMoveSelectionBackwardByCharacterCommand();
+}
+
+</script>
+
+<title>Dismiss Multiple Guesses Test</title>
+</head>
+<body>
+<div><p>This test verifies that pressing ESC key diusmisses multiple guesses panel correctly</p>
+<p>After seeing the panel with multiple candidates, pressing ESC key to dismiss the panel.</p>
+<p style="color:green">Note, this test can fail due to user specific spell checking data. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
+<div contenteditable id="root" class="editing">
+<span id="test"></span>
+</div>
+
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
diff --git a/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html b/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html
new file mode 100644
index 0000000..dc8881f
--- /dev/null
+++ b/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html
@@ -0,0 +1,49 @@
+<html>
+<head>
+
+<style>
+.editing {
+ border: 2px solid red;
+ padding: 12px;
+ font-size: 24px;
+}
+</style>
+<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+function editingTest() {
+ typeCharacterCommand('t');
+ typeCharacterCommand('h');
+ typeCharacterCommand('e');
+ typeCharacterCommand(' ');
+ typeCharacterCommand('m');
+ typeCharacterCommand('e');
+ typeCharacterCommand('s');
+ typeCharacterCommand('a');
+ typeCharacterCommand('e');
+ typeCharacterCommand('g');
+ typeCharacterCommand('e');
+ typeCharacterCommand('e');
+ typeCharacterCommand(' ');
+ execMoveSelectionBackwardByCharacterCommand();
+}
+
+</script>
+
+<title>Select From Multiple Guesses Test</title>
+</head>
+<body>
+<div><p>This test verifies that multiple guesses on mispelled word is working correctly</p>
+<p>After seeing the panel with multiple candidates, use left and/or right arrow key to select the desired candidate, and then use return key to confirm. You can also use this test to test that pressing ESC key will dismiss the panel.</p>
+<p style="color:green">Note, this test can fail due to user specific spell checking data. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
+<div contenteditable id="root" class="editing">
+<span id="test"></span>
+</div>
+
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
diff --git a/WebCore/manual-tests/indexeddb-persists.html b/WebCore/manual-tests/indexeddb-persists.html
index 6f5e036..d8061e1 100644
--- a/WebCore/manual-tests/indexeddb-persists.html
+++ b/WebCore/manual-tests/indexeddb-persists.html
@@ -33,8 +33,8 @@ function setData()
webkitIndexedDB.open("someDB", "some description").onsuccess = function() {
event.result.setVersion("some version").onsuccess = function() {
var db = event.source;
- while (db.objectStores.length)
- db.removeObjectStore(db.objectStores[0]);
+ while (db.objectStoreNames.length)
+ db.removeObjectStore(db.objectStoreNames[0]);
db.createObjectStore("test").put("value", "key").onsuccess = function() {
status("Value set", "green");
}
diff --git a/WebCore/manual-tests/input-type-datetime-default-value.html b/WebCore/manual-tests/input-type-datetime-default-value.html
new file mode 100644
index 0000000..8be15d8
--- /dev/null
+++ b/WebCore/manual-tests/input-type-datetime-default-value.html
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head><title>Default values for date/time input (type= date, datetime, datetime-local, month, time, week)</title></head>
+
+<p>Enter Up or Down, or click the spin buttons for each input field.</p>
+
+<form>
+ <ul>
+ <li>Emtpy values, no steps
+ <ul>
+ <li>date: <input type="date" size="32" value="" />
+ <li>datetime: <input type="datetime" size="32" value="" />
+ <li>datetime-local: <input type="datetime-local" size="32" value="" />
+ <li>month: <input type="month" size="32" value="" />
+ <li>time: <input type="time" size="32" value="" />
+ <li>week <input type="week" size="32" value="" />
+ </ul>
+ <li>Invalid values, no steps
+ <ul>
+ <li>date: <input type="date" size="32" value="foo" />
+ <li>datetime: <input type="datetime" size="32" value="foo" />
+ <li>datetime-local: <input type="datetime-local" size="32" value="foo" />
+ <li>month: <input type="month" size="32" value="foo" />
+ <li>time: <input type="time" size="32" value="foo" />
+ <li>week <input type="week" size="32" value="foo" />
+ </ul>
+ <li>Emtpy values, invalid steps
+ <ul>
+ <li>date: <input type="date" size="32" value="" step="foo" />
+ <li>datetime: <input type="datetime" size="32" value="" step="foo" />
+ <li>datetime-local: <input type="datetime-local" size="32" value="" step="foo" />
+ <li>month: <input type="month" size="32" value="" step="foo" />
+ <li>time: <input type="time" size="32" value="" step="foo" />
+ <li>week <input type="week" size="32" value="" step="foo" />
+ </ul>
+ <li>Invalid values, invalid steps
+ <ul>
+ <li>date: <input type="date" size="32" value="foo" step="foo" />
+ <li>datetime: <input type="datetime" size="32" value="foo" step="foo" />
+ <li>datetime-local: <input type="datetime-local" size="32" value="foo" step="foo" />
+ <li>month: <input type="month" size="32" value="foo" step="foo" />
+ <li>time: <input type="time" size="32" value="foo" step="foo" />
+ <li>week <input type="week" size="32" value="foo" step="foo" />
+ </ul>
+ <li>Emtpy values, step=any
+ <ul>s
+ <li>date: <input type="date" size="32" value="" step="any" />
+ <li>datetime: <input type="datetime" size="32" value="" step="any" />
+ <li>datetime-local: <input type="datetime-local" size="32" value="" step="any" />
+ <li>month: <input type="month" size="32" value="" step="any" />
+ <li>time: <input type="time" size="32" value="" step="any" />
+ <li>week <input type="week" size="32" value="" step="any" />
+ </ul>
+ <li>Invalid values, step=any
+ <ul>
+ <li>date: <input type="date" size="32" value="foo" step="any" />
+ <li>datetime: <input type="datetime" size="32" value="foo" step="any" />
+ <li>datetime-local: <input type="datetime-local" size="32" value="foo" step="any" />
+ <li>month: <input type="month" size="32" value="foo" step="any" />
+ <li>time: <input type="time" size="32" value="foo" step="any" />
+ <li>week <input type="week" size="32" value="foo" step="any" />
+ </ul>
+ </ul>
+</form>
+
+<p>The input fields should show the current local/UTC date/time (with + or - a unit date/time described below except for step=any).</p>
+
+<p>Unit dates/times</p>
+<ul>
+ <li>date: 1 day (local time)
+ <li>datetime: 1 minute (UTC)
+ <li>datetime-local: 1 minute (local time)
+ <li>month: 1 month (local time)
+ <li>time: 1 minute (local time)
+ <li>week: 1 week (local time)
+</ul>
+
+<p>As for step=any, the values don't change by stepping-up/-down.<p>
+
+</body></html>