Changeset 133106 in webkit


Ignore:
Timestamp:
Oct 31, 2012 6:21:26 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[CSS Exclusions] Test that dynamically setting shape-inside causes relayout in child elements
https://bugs.webkit.org/show_bug.cgi?id=97721

Patch by Bear Travis <betravis@adobe.com> on 2012-10-31
Reviewed by Dirk Schulze.

Adding a test that dynamically sets shape-inside on a block containing multiple block children.

  • fast/exclusions/resources/simple-rectangle.js:

(createRectangleTest): Modifying test to work with elements with existing content.
(createRectangleTestResult): Modifying test expectation to work with elements with existing content.

  • fast/exclusions/shape-inside/shape-inside-multiple-blocks-dynamic-expected.html: Added.
  • fast/exclusions/shape-inside/shape-inside-multiple-blocks-dynamic.html: Added.
Location:
trunk/LayoutTests
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r133105 r133106  
     12012-10-31  Bear Travis  <betravis@adobe.com>
     2
     3        [CSS Exclusions] Test that dynamically setting shape-inside causes relayout in child elements
     4        https://bugs.webkit.org/show_bug.cgi?id=97721
     5
     6        Reviewed by Dirk Schulze.
     7
     8        Adding a test that dynamically sets shape-inside on a block containing multiple block children.
     9
     10        * fast/exclusions/resources/simple-rectangle.js:
     11        (createRectangleTest): Modifying test to work with elements with existing content.
     12        (createRectangleTestResult): Modifying test expectation to work with elements with existing content.
     13        * fast/exclusions/shape-inside/shape-inside-multiple-blocks-dynamic-expected.html: Added.
     14        * fast/exclusions/shape-inside/shape-inside-multiple-blocks-dynamic.html: Added.
     15
    1162012-10-31  Roger Fong  <roger_fong@apple.com>
    217
  • trunk/LayoutTests/fast/exclusions/resources/simple-rectangle.js

    r132685 r133106  
    2626    rules.push('border: 1px solid blue');
    2727    stylesheet.insertRule('#' + elementId + '::before{' + rules.join(';') + '}');
    28     elem.innerHTML = content;
     28    if (content)
     29        elem.innerHTML = content;
    2930}
    3031
     
    5253    rules.push('border: 1px solid blue');
    5354    stylesheet.insertRule('#' + elementId + '::before{' + rules.join(';') + '}');
    54     elem.innerHTML = content;
     55    if (content)
     56        elem.innerHTML = content;
    5557}
Note: See TracChangeset for help on using the changeset viewer.