Changeset 240989 in webkit


Ignore:
Timestamp:
Feb 5, 2019 12:35:10 PM (5 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Fix modify-css-property-race.html test failures
https://bugs.webkit.org/show_bug.cgi?id=194282

Reviewed by Matt Baker.

Fix test failures introduced by r240946 by providing a message for expectGreaterThan assert,
so it doesn't log the actual values.

  • inspector/css/modify-css-property-race-expected.txt:
  • inspector/css/modify-css-property-race.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r240988 r240989  
     12019-02-05  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Fix modify-css-property-race.html test failures
     4        https://bugs.webkit.org/show_bug.cgi?id=194282
     5
     6        Reviewed by Matt Baker.
     7
     8        Fix test failures introduced by r240946 by providing a message for expectGreaterThan assert,
     9        so it doesn't log the actual values.
     10
     11        * inspector/css/modify-css-property-race-expected.txt:
     12        * inspector/css/modify-css-property-race.html:
     13
    1142019-02-05  Andy VanWagoner  <andy@vanwagoner.family>
    215
  • trunk/LayoutTests/inspector/css/modify-css-property-race-expected.txt

    r240946 r240989  
    44== Running test suite: ModifyCSSProperty
    55-- Running test case: ModifyCSSPropertyRace.ChangeInlineStyle
    6 PASS: expectGreaterThan(43, 42)
    7 PASS: expectGreaterThan(43, 42)
    8 PASS: Value updated to "10px".
     6PASS: Height should be greater than 42px.
     7PASS: Height should be greater than 42px.
     8PASS: Height should be 10px.
    99PASS: CSSStyleDeclaration text should update.
    10 PASS: expectGreaterThanOrEqual(10, 10)
     10PASS: Height should be greater or equal 10px.
    1111
  • trunk/LayoutTests/inspector/css/modify-css-property-race.html

    r240946 r240989  
    6767                if (!updateCount) {
    6868                    let valueNumber = parseInt(getProperty("height").rawValue);
    69                     InspectorTest.expectGreaterThan(valueNumber, 42);
     69                    InspectorTest.expectGreaterThan(valueNumber, 42, "Height should be greater than 42px.");
    7070                } else if (updateCount === 1) {
    7171                    let valueNumber = parseInt(getProperty("height").rawValue);
    72                     InspectorTest.expectGreaterThan(valueNumber, 42);
     72                    InspectorTest.expectGreaterThan(valueNumber, 42, "Height should be greater than 42px.");
    7373                    getProperty("height").rawValue = "10px";
    7474                } else if (updateCount === 2) {
    75                     InspectorTest.expectEqual(getProperty("height").rawValue, "10px", `Value updated to "10px".`);
     75                    InspectorTest.expectEqual(getProperty("height").rawValue, "10px", "Height should be 10px.");
    7676                    InspectorTest.expectEqual(getInlineStyleDeclaration().text, "height: 10px;", "CSSStyleDeclaration text should update.");
    7777                } else {
    7878                    let valueNumber = parseInt(getProperty("height").rawValue);
    79                     InspectorTest.expectGreaterThanOrEqual(valueNumber, 10);
     79                    InspectorTest.expectGreaterThanOrEqual(valueNumber, 10, "Height should be greater or equal 10px.");
    8080
    8181                    InspectorTest.evaluateInPage("stopExpanding()");
Note: See TracChangeset for help on using the changeset viewer.