Changeset 126384 in webkit


Ignore:
Timestamp:
Aug 22, 2012 7:33:37 PM (12 years ago)
Author:
mrowe@apple.com
Message:

Fix some tests on safari-536.26-branch.
https://bugs.webkit.org/show_bug.cgi?id=94759

Patch by Mark Lam <mark.lam@apple.com> on 2012-08-22
Reviewed by Mark Rowe.

  • animations/animation-shorthand-name-order.html:
  • compositing/repaint/newly-composited-on-scroll.html:
  • editing/execCommand/crash-extend-selection-forward.html:
  • fast/events/drag-display-none-element.html:
  • fast/forms/autocomplete-off-with-default-value-does-not-clear.html:
  • fast/forms/hidden/change-type-to-hidden-after-updating-value.html:
  • fast/table/auto-table-layout-colgroup-removal-crash.html:
  • fast/text/title-crash-expected.txt: Added.
  • http/tests/security/video-poster-cross-origin-crash.html:
  • platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt:
  • plugins/npruntime/overrides-all-properties.html:
Location:
branches/safari-536.26-branch/LayoutTests
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-536.26-branch/LayoutTests/ChangeLog

    r126173 r126384  
     12012-08-22  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix some tests on safari-536.26-branch.
     4        https://bugs.webkit.org/show_bug.cgi?id=94759
     5
     6        Reviewed by Mark Rowe.
     7
     8        * animations/animation-shorthand-name-order.html:
     9        * compositing/repaint/newly-composited-on-scroll.html:
     10        * editing/execCommand/crash-extend-selection-forward.html:
     11        * fast/events/drag-display-none-element.html:
     12        * fast/forms/autocomplete-off-with-default-value-does-not-clear.html:
     13        * fast/forms/hidden/change-type-to-hidden-after-updating-value.html:
     14        * fast/table/auto-table-layout-colgroup-removal-crash.html:
     15        * fast/text/title-crash-expected.txt: Added.
     16        * http/tests/security/video-poster-cross-origin-crash.html:
     17        * platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt:
     18        * plugins/npruntime/overrides-all-properties.html:
     19
    1202012-08-20  Mark Rowe  <mrowe@apple.com>
    221
  • branches/safari-536.26-branch/LayoutTests/animations/animation-shorthand-name-order.html

    r124138 r126384  
    122122                runIndividualTest(numTestsComplete);
    123123            else {
    124                 if (window.testRunner)
    125                     testRunner.notifyDone();
     124                if (window.layoutTestController)
     125                    layoutTestController.notifyDone();
    126126            }
    127127        }, 0);
     
    129129}
    130130
    131 if (window.testRunner) {
    132     testRunner.dumpAsText();
    133     testRunner.waitUntilDone();
     131if (window.layoutTestController) {
     132    layoutTestController.dumpAsText();
     133    layoutTestController.waitUntilDone();
    134134}
    135135
  • branches/safari-536.26-branch/LayoutTests/compositing/repaint/newly-composited-on-scroll.html

    r125459 r126384  
    5757
    5858<script>
    59     if (window.testRunner) {
    60         testRunner.dumpAsText(true);
    61         testRunner.waitUntilDone();
     59    if (window.layoutTestController) {
     60        layoutTestController.dumpAsText(true);
     61        layoutTestController.waitUntilDone();
    6262    }
    6363
    6464    function repaintTest() {
    65         if (window.testRunner)
    66             testRunner.display();
     65        if (window.layoutTestController)
     66            layoutTestController.display();
    6767
    6868        document.getElementById('overflow').scrollTop = 30;
    69         if (window.testRunner)
    70             testRunner.display();
     69        if (window.layoutTestController)
     70            layoutTestController.display();
    7171
    7272        window.setTimeout(function() {
    7373            document.getElementById('overflow').scrollTop = 50;
    74             testRunner.notifyDone();
     74            layoutTestController.notifyDone();
    7575        }, 0);
    7676    }
  • branches/safari-536.26-branch/LayoutTests/editing/execCommand/crash-extend-selection-forward.html

    r124657 r126384  
    44<script src=../editing.js></script>
    55<script>
    6 if (window.testRunner) {
    7     testRunner.dumpAsText();
    8     testRunner.waitUntilDone();
     6if (window.layoutTestController) {
     7    layoutTestController.dumpAsText();
     8    layoutTestController.waitUntilDone();
    99}
    1010
     
    1616
    1717    test1.innerHTML = "PASS. WebKit didn't crash.";
    18     if (window.testRunner)
    19         testRunner.notifyDone();
     18    if (window.layoutTestController)
     19        layoutTestController.notifyDone();
    2020}
    2121</script>
  • branches/safari-536.26-branch/LayoutTests/fast/events/drag-display-none-element.html

    r124534 r126384  
    1313    var dragme = document.getElementById('dragme');
    1414    dragme.addEventListener('dragend', function () {
    15         if (window.testRunner)
    16             testRunner.notifyDone();
     15        if (window.layoutTestController)
     16            layoutTestController.notifyDone();
    1717        document.getElementById('console').appendChild(document.createTextNode('PASS'));
    1818    });
    1919
    20     if (!window.testRunner)
     20    if (!window.layoutTestController)
    2121        return;
    2222
    23     testRunner.waitUntilDone();
    24     testRunner.dumpAsText();
     23    layoutTestController.waitUntilDone();
     24    layoutTestController.dumpAsText();
    2525
    2626    eventSender.mouseMoveTo(dragme.offsetLeft + dragme.offsetWidth / 2, dragme.offsetTop + dragme.offsetHeight / 2);
  • branches/safari-536.26-branch/LayoutTests/fast/forms/autocomplete-off-with-default-value-does-not-clear.html

    r125327 r126384  
    11<script>
    22
    3 if (window.testRunner) {
    4         testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
    5         testRunner.dumpAsText();
    6         testRunner.waitUntilDone();
     3if (window.layoutTestController) {
     4        layoutTestController.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
     5        layoutTestController.dumpAsText();
     6        layoutTestController.waitUntilDone();
    77}
    88
     
    2222{
    2323        document.getElementById("logger").innerText = document.getElementById("testInput").value;
    24         if (window.testRunner)
    25                 testRunner.notifyDone();
     24        if (window.layoutTestController)
     25                layoutTestController.notifyDone();
    2626}
    2727
  • branches/safari-536.26-branch/LayoutTests/fast/forms/hidden/change-type-to-hidden-after-updating-value.html

    r124656 r126384  
    11<input type="text" id="input1">
    22<script>
    3 if (window.testRunner)
    4     testRunner.dumpAsText();
     3if (window.layoutTestController)
     4    layoutTestController.dumpAsText();
    55document.getElementById('input1').value = 'value';
    66document.getElementById('input1').type = 'hidden';
  • branches/safari-536.26-branch/LayoutTests/fast/table/auto-table-layout-colgroup-removal-crash.html

    r124532 r126384  
    99</table>
    1010<script>
    11     if (window.testRunner)
    12         testRunner.dumpAsText();
     11    if (window.layoutTestController)
     12        layoutTestController.dumpAsText();
    1313
    1414    document.body.offsetTop;
  • branches/safari-536.26-branch/LayoutTests/http/tests/security/video-poster-cross-origin-crash.html

    r125134 r126384  
    11<sub id=tCF1></sub>>>><button hidden=false id=tCF7>><video crossorigin="" poster="http://localhost:8080/misc/resources/compass.jpg">><style>
    22.c29:nth-child(1814762996n + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) { -webkit-locale: "zh_CN";</style><script>
    3 if (window.testRunner) {
    4     testRunner.dumpAsText();
    5     testRunner.waitUntilDone();
     3if (window.layoutTestController) {
     4    layoutTestController.dumpAsText();
     5    layoutTestController.waitUntilDone();
    66}
    77docElement = document.body ? document.body : document.documentElement;
     
    1919window.scrollBy(-484, -400);
    2020try { tCF7.innerText = tCF44.textContent; } catch(e) {}
    21 if (window.testRunner)
    22     testRunner.notifyDone();
     21if (window.layoutTestController)
     22    layoutTestController.notifyDone();
    2323}</script>
  • branches/safari-536.26-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt

    r124117 r126384  
    1 This test checks that markers are correct when auto correcting in the blockquote. If you type "n" and " ", there should be blue dots under information, but is off by one.
     1This test checks that markers are correct when auto correcting in the blockquote. If you type "n" and " ", there should be blue dots under information, but is off by one.
     2Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'notational' as the correct spelling of 'notationl' several times, the spell checker will not provide 'information' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling.
    23
    34PASS internals.hasAutocorrectedMarker(document, 0, 1) is true
  • branches/safari-536.26-branch/LayoutTests/plugins/npruntime/overrides-all-properties.html

    r125127 r126384  
    22
    33<script>
    4 if (window.testRunner) {
    5     testRunner.dumpAsText();
    6     testRunner.waitUntilDone();
     4if (window.layoutTestController) {
     5    layoutTestController.dumpAsText();
     6    layoutTestController.waitUntilDone();
    77}
    88
    99function runTest() {
    10     if (!window.testRunner) {
     10    if (!window.layoutTestController) {
    1111        log("This test can only be run under WebKit's testRunner environment");
    1212        return;
    1313    }
    1414
    15     testRunner.evaluateScriptInIsolatedWorld(0, " \
     15    layoutTestController.evaluateScriptInIsolatedWorld(0, " \
    1616        function test(msg, expected) \
    1717        { \
     
    5151    ");
    5252
    53     if (window.testRunner)
    54         testRunner.notifyDone();
     53    if (window.layoutTestController)
     54        layoutTestController.notifyDone();
    5555}
    5656</script>
Note: See TracChangeset for help on using the changeset viewer.