Changeset 218025 in webkit


Ignore:
Timestamp:
Jun 9, 2017 3:45:00 PM (7 years ago)
Author:
Darin Adler
Message:

REGRESSION: LayoutTest js/intl-datetimeformat.html is failing
https://bugs.webkit.org/show_bug.cgi?id=172720

Patch by Andy VanWagoner <thetalecrafter@gmail.com> on 2017-06-09
Reviewed by Darin Adler.

Reenable DateTimeFormat tests, allowing for some variation in the
formatting of time zone names.

  • js/intl-datetimeformat-expected.txt:
  • js/script-tests/intl-datetimeformat.js:
  • platform/mac/TestExpectations:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r218020 r218025  
     12017-06-09  Andy VanWagoner  <thetalecrafter@gmail.com>
     2
     3        REGRESSION: LayoutTest js/intl-datetimeformat.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=172720
     5
     6        Reviewed by Darin Adler.
     7
     8        Reenable DateTimeFormat tests, allowing for some variation in the
     9        formatting of time zone names.
     10
     11        * js/intl-datetimeformat-expected.txt:
     12        * js/script-tests/intl-datetimeformat.js:
     13        * platform/mac/TestExpectations:
     14
    1152017-06-09  Joseph Pecoraro  <pecoraro@apple.com>
    216
  • trunk/LayoutTests/js/intl-datetimeformat-expected.txt

    r216122 r218025  
    378378PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric', timeZoneName:'short', timeZone: 'UTC' }).format(0) is '12:00 AM GMT'
    379379PASS Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long' }).resolvedOptions().timeZoneName is 'long'
    380 PASS Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long', timeZone: 'UTC' }).format(0) is '00:00 GMT'
     380PASS ['00:00 GMT','00:00 Horário do Meridiano de Greenwich'].includes(Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long', timeZone: 'UTC' }).format(0)) is true
    381381PASS
    382382    var options = { weekday: "short", year: "numeric", month: "short", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric" };
     
    25562556    hour: "numeric", minute: "numeric", second: "numeric",
    25572557    year: "numeric", month: "long", day: "numeric", weekday: "long",
    2558     timeZoneName: "long", era: "long", timeZone: "UTC"
     2558    timeZoneName: "short", era: "long", timeZone: "UTC"
    25592559  }).formatToParts(0)
    25602560) is JSON.stringify([
  • trunk/LayoutTests/js/script-tests/intl-datetimeformat.js

    r217560 r218025  
    1 //@ skip
     1//@ skip if $hostOS == "windows"
    22description("This test checks the behavior of Intl.DateTimeFormat as described in the ECMAScript Internationalization API Specification (ECMA-402 2.0).");
    33
     
    462462shouldBe("Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric', timeZoneName:'short', timeZone: 'UTC' }).format(0)", "'12:00 AM GMT'");
    463463shouldBe("Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long' }).resolvedOptions().timeZoneName", "'long'");
    464 shouldBe("Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long', timeZone: 'UTC' }).format(0)", "'00:00 GMT'")
     464shouldBeTrue("['00:00 GMT','00:00 Horário do Meridiano de Greenwich'].includes(Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long', timeZone: 'UTC' }).format(0))");
    465465
    466466let localesSample = [
     
    579579    hour: "numeric", minute: "numeric", second: "numeric",
    580580    year: "numeric", month: "long", day: "numeric", weekday: "long",
    581     timeZoneName: "long", era: "long", timeZone: "UTC"
     581    timeZoneName: "short", era: "long", timeZone: "UTC"
    582582  }).formatToParts(0)
    583583)`, `JSON.stringify([
  • trunk/LayoutTests/platform/mac/TestExpectations

    r218009 r218025  
    15431543webkit.org/b/172469 [ ElCapitan ] imported/w3c/web-platform-tests/WebCryptoAPI/import_export/test_rsa_importKey.https.html [ Timeout ]
    15441544
    1545 webkit.org/b/172720 [ Sierra+ ] js/intl-datetimeformat.html [ Failure ]
    1546 
    15471545# This test tests a feature that only exists on iOS.
    15481546webkit.org/b/172737 fast/text/accessibility-bold-system-font-2.html [ ImageOnlyFailure ]
Note: See TracChangeset for help on using the changeset viewer.