Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1408)

Side by Side Diff: test/intl/date-format/resolved-options.js

Issue 1522533003: Enable some passing, disabled Intl tests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/intl/date-format/timezone.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 20 matching lines...) Expand all
31 var dtfDefault = Intl.DateTimeFormat('en-US'); 31 var dtfDefault = Intl.DateTimeFormat('en-US');
32 var resolved = dtfDefault.resolvedOptions(); 32 var resolved = dtfDefault.resolvedOptions();
33 33
34 assertTrue(resolved.hasOwnProperty('locale')); 34 assertTrue(resolved.hasOwnProperty('locale'));
35 assertEquals('en-US', resolved.locale); 35 assertEquals('en-US', resolved.locale);
36 assertTrue(resolved.hasOwnProperty('numberingSystem')); 36 assertTrue(resolved.hasOwnProperty('numberingSystem'));
37 assertEquals('latn', resolved.numberingSystem); 37 assertEquals('latn', resolved.numberingSystem);
38 assertTrue(resolved.hasOwnProperty('calendar')); 38 assertTrue(resolved.hasOwnProperty('calendar'));
39 assertEquals('gregory', resolved.calendar); 39 assertEquals('gregory', resolved.calendar);
40 assertTrue(resolved.hasOwnProperty('timeZone')); 40 assertTrue(resolved.hasOwnProperty('timeZone'));
41 assertEquals(getDefaultTimeZone(), resolved.timeZone); 41 // TODO(littledan): getDefaultTimeZone() is not available from JavaScript
42 // assertEquals(getDefaultTimeZone(), resolved.timeZone);
42 // These are in by default. 43 // These are in by default.
43 assertTrue(resolved.hasOwnProperty('year')); 44 assertTrue(resolved.hasOwnProperty('year'));
44 assertEquals('numeric', resolved.year); 45 assertEquals('numeric', resolved.year);
45 assertTrue(resolved.hasOwnProperty('month')); 46 assertTrue(resolved.hasOwnProperty('month'));
46 assertEquals('numeric', resolved.month); 47 assertEquals('numeric', resolved.month);
47 assertTrue(resolved.hasOwnProperty('day')); 48 assertTrue(resolved.hasOwnProperty('day'));
48 assertEquals('numeric', resolved.day); 49 assertEquals('numeric', resolved.day);
49 // These shouldn't be in by default. 50 // These shouldn't be in by default.
50 assertFalse(resolved.hasOwnProperty('era')); 51 assertFalse(resolved.hasOwnProperty('era'));
51 assertFalse(resolved.hasOwnProperty('timeZoneName')); 52 assertFalse(resolved.hasOwnProperty('timeZoneName'));
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 assertTrue(resolved.hasOwnProperty('second')); 99 assertTrue(resolved.hasOwnProperty('second'));
99 assertTrue(resolved.hasOwnProperty('year')); 100 assertTrue(resolved.hasOwnProperty('year'));
100 assertTrue(resolved.hasOwnProperty('month')); 101 assertTrue(resolved.hasOwnProperty('month'));
101 assertTrue(resolved.hasOwnProperty('day')); 102 assertTrue(resolved.hasOwnProperty('day'));
102 assertTrue(resolved.hasOwnProperty('era')); 103 assertTrue(resolved.hasOwnProperty('era'));
103 assertEquals('short', resolved.era); 104 assertEquals('short', resolved.era);
104 assertTrue(resolved.hasOwnProperty('timeZoneName')); 105 assertTrue(resolved.hasOwnProperty('timeZoneName'));
105 assertEquals('short', resolved.timeZoneName); 106 assertEquals('short', resolved.timeZoneName);
106 assertTrue(resolved.hasOwnProperty('weekday')); 107 assertTrue(resolved.hasOwnProperty('weekday'));
107 assertEquals('short', resolved.weekday); 108 assertEquals('short', resolved.weekday);
OLDNEW
« no previous file with comments | « no previous file | test/intl/date-format/timezone.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698