Eric Norman created SLING-10698:
-----------------------------------

             Summary: several io.sightly.tck dateformat tests are sensitive to 
the timzone of the server
                 Key: SLING-10698
                 URL: https://issues.apache.org/jira/browse/SLING-10698
             Project: Sling
          Issue Type: Improvement
            Reporter: Eric Norman
            Assignee: Eric Norman
             Fix For: Scripting HTL Testing 1.0.32-1.4.0


Need to use GMT timezone so dateformat related tests from io.sightly.tck are 
not off by hours

If the sling runtime is not using the GMT timezone, these 4 tests may fail:
{noformat}
junit.framework.AssertionFailedError: Expected value '01-12-1918' for selector 
'#format-date-1'. Instead we got '30-11-1918'. Please check the expected markup 
from /testfiles/output/exprlang/filters.html.
    at 
io.sightly.tck.tests.TestBuilder$1.runTest(TestBuilder.java:146)Expression 
Filters: @format - #format-date-3(io.sightly.tck.tests.TestBuilder$1)  Time 
elapsed: 0 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Expected value 'December' for selector 
'#format-date-3'. Instead we got 'November'. Please check the expected markup 
from /testfiles/output/exprlang/filters.html.
    at 
io.sightly.tck.tests.TestBuilder$1.runTest(TestBuilder.java:146)Expression 
Filters: @format - #format-date-4(io.sightly.tck.tests.TestBuilder$1)  Time 
elapsed: 0 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Expected value 'Dezember' for selector 
'#format-date-4'. Instead we got 'November'. Please check the expected markup 
from /testfiles/output/exprlang/filters.html.
    at 
io.sightly.tck.tests.TestBuilder$1.runTest(TestBuilder.java:146)Expression 
Filters: @format - #format-date-5(io.sightly.tck.tests.TestBuilder$1)  Time 
elapsed: 0 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Expected value 'Wochentag: Sonntag' for 
selector '#format-date-5'. Instead we got 'Wochentag: Samstag'. Please check 
the expected markup from /testfiles/output/exprlang/filters.html.
    at 
io.sightly.tck.tests.TestBuilder$1.runTest(TestBuilder.java:146){noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to