| OLD | NEW |
| 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 Loading... |
| 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); |
| OLD | NEW |