⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118633 in webkit


Ignore:
Timestamp:
May 27, 2012, 5:28:49 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

fast/dom/shadow/content-element-in-media.html is wrong.
https://bugs.webkit.org/show_bug.cgi?id=81310

Modifying to check() to dump expected and actual text at the same
absolute position, because DumpRenderTree dumps absolute x,y-position
information for a layer which contains RenderVideo. For example,
backgroundClip at (8,163), clip at (8, 163) and so on.

Patch by Takashi Sakamoto <tasak@google.com> on 2012-05-27
Reviewed by Hajime Morita.

  • fast/dom/resources/shadow-test-driver.js:

(check):
Disabled actual block when dumping expected block as text, and vice
versa.

  • platform/chromium/test_expectations.txt:

Removed BUGWK81310.

Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r118631 r118633  
     12012-05-27  Takashi Sakamoto  <tasak@google.com>
     2
     3        fast/dom/shadow/content-element-in-media.html is wrong.
     4        https://bugs.webkit.org/show_bug.cgi?id=81310
     5
     6        Modifying to check() to dump expected and actual text at the same
     7        absolute position, because DumpRenderTree dumps absolute x,y-position
     8        information for a layer which contains RenderVideo. For example,
     9        backgroundClip at (8,163), clip at (8, 163) and so on.
     10
     11        Reviewed by Hajime Morita.
     12
     13        * fast/dom/resources/shadow-test-driver.js:
     14        (check):
     15        Disabled actual block when dumping expected block as text, and vice
     16        versa.
     17        * platform/chromium/test_expectations.txt:
     18        Removed BUGWK81310.
     19
    1202012-05-27  Benjamin Poulain  <bpoulain@apple.com>
    221
  • trunk/LayoutTests/fast/dom/resources/shadow-test-driver.js

    r110014 r118633  
    3737
    3838function check() {
    39     var refContainerRenderTree = internals.elementRenderTreeAsText(document.getElementById('expect-container'));
     39    var expectContainer = document.getElementById('expect-container');
     40    var actualContainer = document.getElementById('actual-container');
     41    var originalDisplayValue = actualContainer.style.display;
     42    actualContainer.style.display = 'none';
     43    expectContainer.offsetLeft;
     44    var refContainerRenderTree = internals.elementRenderTreeAsText(expectContainer);
    4045    var refRenderTree = removeContainerLines(refContainerRenderTree);
     46    actualContainer.style.display = originalDisplayValue;
    4147
    42     var targetContainerRenderTree = internals.elementRenderTreeAsText(document.getElementById('actual-container'));
     48    originalDisplayValue = expectContainer.style.display;
     49    expectContainer.style.display = 'none';
     50    actualContainer.offsetLeft;
     51    var targetContainerRenderTree = internals.elementRenderTreeAsText(actualContainer);
    4352    var targetRenderTree = removeContainerLines(targetContainerRenderTree);
     53    expectContainer.style.display = originalDisplayValue;
    4454
    4555    if (targetRenderTree == refRenderTree)
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r118578 r118633  
    27422742BUGCR85292 : platform/chromium/permissionclient/storage-permission.html = PASS TEXT
    27432743
    2744 BUGWK81310 : fast/dom/shadow/content-element-in-media-element.html = TEXT
    2745 
    27462744// two regions reftests failing on Chromium
    27472745BUGWK74219 : fast/regions/positioned-objects-block-static-spanning-regions-rtl.html = PASS IMAGE
Note: See TracChangeset for help on using the changeset viewer.