use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testUCT.
@Test
public void testUCT() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("UCT"));
assertEquals("UTC", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testZulu.
@Test
public void testZulu() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("Zulu"));
assertEquals("UTC", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testUTC.
@Test
public void testUTC() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("UTC"));
assertEquals("UTC", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testGMTWithHourOffset.
@Test
public void testGMTWithHourOffset() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("GMT-8"));
assertEquals("UTC", resolvedTimeZone(realm));
}
use of com.github.anba.es6draft.runtime.Realm in project es6draft by anba.
the class DefaultLocaleTimezone method testGMT.
@Test
public void testGMT() throws Exception {
Realm realm = newRealm(TimeZone.getTimeZone("GMT"));
assertEquals("UTC", resolvedTimeZone(realm));
}
Aggregations