From 81bc750723a18f21cd17d1b173cd2a4dda9cea6e Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Tue, 24 May 2011 11:24:40 +0100 Subject: Merge WebKit at r80534: Intial merge by Git Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61 --- .../autocorrection/autocorrection-contraction.html | 2 +- .../autocorrection/autocorrection-in-iframe.html | 16 ++ .../autocorrection/document-for-iframe-test.html | 36 +++ ...-on-contraction-when-autocorrection-is-off.html | 24 ++ .../type-whitespace-to-dismiss-reversion.html | 6 +- .../autocorrection/undo-autocorrection.html | 24 ++ .../manual-tests/database-callback-deferred.html | 17 ++ .../manual-tests/input-number-localization.html | 30 +++ Source/WebCore/manual-tests/media-controls.html | 258 +++++++++++++++++++++ ...navigation-during-onload-triggered-by-back.html | 16 ++ .../manual-tests/plugins/windowed-in-iframe.html | 21 ++ .../popup-width-restriction-within-screen.html | 71 ++++++ .../navigation-during-onload-container.html | 10 + 13 files changed, 526 insertions(+), 5 deletions(-) create mode 100644 Source/WebCore/manual-tests/autocorrection/autocorrection-in-iframe.html create mode 100644 Source/WebCore/manual-tests/autocorrection/document-for-iframe-test.html create mode 100644 Source/WebCore/manual-tests/autocorrection/spellcheck-on-contraction-when-autocorrection-is-off.html create mode 100644 Source/WebCore/manual-tests/autocorrection/undo-autocorrection.html create mode 100644 Source/WebCore/manual-tests/database-callback-deferred.html create mode 100644 Source/WebCore/manual-tests/input-number-localization.html create mode 100644 Source/WebCore/manual-tests/media-controls.html create mode 100644 Source/WebCore/manual-tests/navigation-during-onload-triggered-by-back.html create mode 100644 Source/WebCore/manual-tests/plugins/windowed-in-iframe.html create mode 100644 Source/WebCore/manual-tests/popup-width-restriction-within-screen.html create mode 100644 Source/WebCore/manual-tests/resources/navigation-during-onload-container.html (limited to 'Source/WebCore/manual-tests') diff --git a/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html b/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html index 39ad7f7..ca40d62 100644 --- a/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html +++ b/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html @@ -27,7 +27,7 @@ function editingTest() { -Delete to Dismiss Reversion Panel Test +Autocorrection with Contraction Test

This test verifies that, after typing an apostrophe, if the current word is part of a contraction, previously shown autocorrection will not be applied.

diff --git a/Source/WebCore/manual-tests/autocorrection/autocorrection-in-iframe.html b/Source/WebCore/manual-tests/autocorrection/autocorrection-in-iframe.html new file mode 100644 index 0000000..c4ebbcf --- /dev/null +++ b/Source/WebCore/manual-tests/autocorrection/autocorrection-in-iframe.html @@ -0,0 +1,16 @@ + + + +Test autocorreciton UI positioning in iframe + + +

This test verifies that autocorrection UI is positioned correctly when the corrected word is in an iframe.

+

After typing "the manag", you should see the autocorrection UI is shown below the bounding box of the corrected word "manag".

+
+
+
+
+ +
+ + diff --git a/Source/WebCore/manual-tests/autocorrection/document-for-iframe-test.html b/Source/WebCore/manual-tests/autocorrection/document-for-iframe-test.html new file mode 100644 index 0000000..629a830 --- /dev/null +++ b/Source/WebCore/manual-tests/autocorrection/document-for-iframe-test.html @@ -0,0 +1,36 @@ + + + + + + + + +
+ +
+ + + + + diff --git a/Source/WebCore/manual-tests/autocorrection/spellcheck-on-contraction-when-autocorrection-is-off.html b/Source/WebCore/manual-tests/autocorrection/spellcheck-on-contraction-when-autocorrection-is-off.html new file mode 100644 index 0000000..5e84078 --- /dev/null +++ b/Source/WebCore/manual-tests/autocorrection/spellcheck-on-contraction-when-autocorrection-is-off.html @@ -0,0 +1,24 @@ + + + + + +Undo Autocorrection Test + + +

This test verifies that common contraction is not marked as misspelled when autocorrection is off.

+

Step 1: Bring up contextual manual, and uncheck "Spelling and Grammar -> Correct Spelling Automatically" and "Substitutions -> Text Replacement".

+

Step 2: Type "this wasn't", and verify that "wasn't" isn't marked as mispelled.

+

Step 3: Restore the settings in contextual manual, otherwise it may affect the result of other autocorrection related tests.

+
+ +
+ + + diff --git a/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html b/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html index 41191fb..8eb346a 100644 --- a/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html +++ b/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html @@ -31,10 +31,8 @@ function editingTest() { Type Whitespace to Dismiss Reversion Panel Test -

This test verifies that, after reversion panel is shown, typing whitespace will dismiss the reversion panel. -It also keep the existing autocorrection underline.

-

After seeing the reversion panel, type whitespace. You should see the panel being dismissed once you start typing. -However, the word "message" still has blue underline.

+

This test verifies that, after reversion panel is shown, typing whitespace will dismiss the reversion panel.

+

After seeing the reversion panel, type whitespace. You should see the panel being dismissed once you start typing.

Note, this test can fail due to user specific spell checking data. If the user has previously frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.

diff --git a/Source/WebCore/manual-tests/autocorrection/undo-autocorrection.html b/Source/WebCore/manual-tests/autocorrection/undo-autocorrection.html new file mode 100644 index 0000000..972c88b --- /dev/null +++ b/Source/WebCore/manual-tests/autocorrection/undo-autocorrection.html @@ -0,0 +1,24 @@ + + + + + +Undo Autocorrection Test + + +

This test verifies the behavior of undoing autocorrection.

+

Test 1: Type "the mesage". After seeing the correction panel, type whitespace to accept the correction, then select undo. You should see the second word being reverted to "message".

+

Test 2: Type "the ". Set font to bold, then type "me". Set font to regular, then type "sage". After seeing the correction panel, type whitespace to accept the correction, then select undo. You should see the second word being reverted to "message" with "me" in bold font.

+

Note, this test can fail due to user specific spell checking data. If the user has previously frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.

+
+ +
+ + + diff --git a/Source/WebCore/manual-tests/database-callback-deferred.html b/Source/WebCore/manual-tests/database-callback-deferred.html new file mode 100644 index 0000000..cf3d03a --- /dev/null +++ b/Source/WebCore/manual-tests/database-callback-deferred.html @@ -0,0 +1,17 @@ + + + +

Wait...

+ + diff --git a/Source/WebCore/manual-tests/input-number-localization.html b/Source/WebCore/manual-tests/input-number-localization.html new file mode 100644 index 0000000..4647aa5 --- /dev/null +++ b/Source/WebCore/manual-tests/input-number-localization.html @@ -0,0 +1,30 @@ + + + +Number type input shows and accepts localized numbers + + + +
+ +

Output test: The following text field should have a localized representation for "-1234.56". +e.g. "-1,234.56" for en_US locale, "-1.234,56" for fr_FR locale.

+
+ +

Input test: Type a localized representation of a number into the following text field. +You'll see an equivalent number in the standard format on the bottom of the text field.

+
+
Standard format:
+ + + + diff --git a/Source/WebCore/manual-tests/media-controls.html b/Source/WebCore/manual-tests/media-controls.html new file mode 100644 index 0000000..1837e59 --- /dev/null +++ b/Source/WebCore/manual-tests/media-controls.html @@ -0,0 +1,258 @@ + + + + + + + + +
+

Manual Tests of Media Controls Appearance

+
+
+ +
+
+ + diff --git a/Source/WebCore/manual-tests/navigation-during-onload-triggered-by-back.html b/Source/WebCore/manual-tests/navigation-during-onload-triggered-by-back.html new file mode 100644 index 0000000..09a5f57 --- /dev/null +++ b/Source/WebCore/manual-tests/navigation-during-onload-triggered-by-back.html @@ -0,0 +1,16 @@ + + + + +

Same-document navigation in onload triggered by back navigation.

+
    +
  1. Start the layout test web server with Tools/Scripts/run-webkit-httpd.
  2. +
  3. Click here.
  4. +
  5. Click Back.
  6. +
+

You should not crash.

+

We cannot use history.back() to test this, because it calls Page::goToItem +(which calls FrameLoader::stopAllLoaders) first. Chromium's back button does +not call stopAllLoaders first.

+ + diff --git a/Source/WebCore/manual-tests/plugins/windowed-in-iframe.html b/Source/WebCore/manual-tests/plugins/windowed-in-iframe.html new file mode 100644 index 0000000..fdb937c --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/windowed-in-iframe.html @@ -0,0 +1,21 @@ + + + + +Flash In IFrame Test File + + + + + This manual tests verifies that when a plugin is loaded as the src of an iframe + and that iframe is outside of the viewport of the page, the plugin does not appear + in the upper left of the frame. When this page loads you should not see the Flash movie. + It should be shown only after you scroll to the bottom of the page. This was a problem for + GTK+ in bug 37769

+
 
+ + +
+ + + diff --git a/Source/WebCore/manual-tests/popup-width-restriction-within-screen.html b/Source/WebCore/manual-tests/popup-width-restriction-within-screen.html new file mode 100644 index 0000000..1ef2567 --- /dev/null +++ b/Source/WebCore/manual-tests/popup-width-restriction-within-screen.html @@ -0,0 +1,71 @@ + + + + +Test the popup list box's width is rectricted within screen. + + + + +

Test left to right popup list box's width is restricted within the left screen.

+
    +
  1. Setup dual screens.
  2. +
  3. Launch browser and maximize the browser window size in the left screen.
  4. +
  5. Enter a very long string into "Left to right" text input box.
  6. +
  7. Hit enter.
  8. +
  9. Go back and start to enter the same string again.
  10. +
  11. Make sure the popup list box's width which suggests the result doesn't exceed the left screen width.
  12. +
+ +

Test right to left popup window width is restricted within the right screen.

+
    +
  1. Setup dual screens.
  2. +
  3. Launch browser and maximize the browser window size in the right screen.
  4. +
  5. Enter a very long string into "Right to Left" text input box.
  6. +
  7. Hit enter.
  8. +
  9. Go back and start to enter the same string again.
  10. +
  11. Make sure the popup list box's width which suggests the result doesn't exceed the right screen width.
  12. +
+ +
+
+ Left to right
+ Right to left
+ +
+ +

Test left to right select window width is restricted within the left screen.

+
    +
  1. Setup dual screens.
  2. +
  3. Launch browser and maximize the browser window size in the left screen.
  4. +
  5. Click the following <select> item.
  6. +
  7. Make sure the drop-down box width in the following <select> doesn't exceed the left screen width.
  8. +
+ + + +

Test right to left select window width is restricted within the right screen.

+
    +
  1. Setup dual screens.
  2. +
  3. Launch browser and maximize the browser window size in the right screen.
  4. +
  5. Click the following <select> item.
  6. +
  7. Make sure the drop-down box width in the following <select> doesn't exceed the right screen width.
  8. +
+ + + + + + diff --git a/Source/WebCore/manual-tests/resources/navigation-during-onload-container.html b/Source/WebCore/manual-tests/resources/navigation-during-onload-container.html new file mode 100644 index 0000000..cbeb992 --- /dev/null +++ b/Source/WebCore/manual-tests/resources/navigation-during-onload-container.html @@ -0,0 +1,10 @@ + +container + +

+Click the back button and see if the browser crashes. +

-- cgit v1.1