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

Side by Side Diff: test/intl/break-iterator/default-locale.js

Issue 21512002: Reenable tests that need to access the default timezone. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/intl/break-iterator/wellformed-unsupported-locale.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 iterator = new Intl.v8BreakIterator([]); 31 var iterator = new Intl.v8BreakIterator([]);
32 32
33 var options = iterator.resolvedOptions(); 33 var options = iterator.resolvedOptions();
34 34
35 // Check it's none of these first. 35 // Check it's none of these first.
36 assertFalse(options.locale === 'und'); 36 assertFalse(options.locale === 'und');
37 assertFalse(options.locale === ''); 37 assertFalse(options.locale === '');
38 assertFalse(options.locale === undefined); 38 assertFalse(options.locale === undefined);
39 39
40 // Then check for equality. 40 // Then check for equality.
41 assertEquals(options.locale, getDefaultLocale()); 41 assertEquals(options.locale, %GetDefaultICULocale());
42 42
43 var iteratorNone = new Intl.v8BreakIterator(); 43 var iteratorNone = new Intl.v8BreakIterator();
44 assertEquals(options.locale, iteratorNone.resolvedOptions().locale); 44 assertEquals(options.locale, iteratorNone.resolvedOptions().locale);
45 45
46 // TODO(cira): remove support for {} to mean empty list. 46 // TODO(cira): remove support for {} to mean empty list.
47 var iteratorBraket = new Intl.v8BreakIterator({}); 47 var iteratorBraket = new Intl.v8BreakIterator({});
48 assertEquals(options.locale, iteratorBraket.resolvedOptions().locale); 48 assertEquals(options.locale, iteratorBraket.resolvedOptions().locale);
OLDNEW
« no previous file with comments | « no previous file | test/intl/break-iterator/wellformed-unsupported-locale.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698