use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testEtc_Zulu.
@Test
public void testEtc_Zulu() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("Etc/Zulu"));
assertEquals("UTC", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testInvalidTimezone.
@Test
public void testInvalidTimezone() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("invalid"));
assertEquals("UTC", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testGMTWithOffset.
@Test
public void testGMTWithOffset() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("GMT-08:00"));
assertEquals("UTC", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testWSU.
@Test
public void testWSU() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("W-SU"));
assertEquals("Europe/Moscow", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testEtc_Greenwich.
@Test
public void testEtc_Greenwich() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("Etc/Greenwich"));
assertEquals("UTC", resolvedTimeZone(realm));
}
Aggregations