Index: test/intl/break-iterator/resolved-options-is-method.js |
diff --git a/src/extensions/i18n/header.js b/test/intl/break-iterator/resolved-options-is-method.js |
similarity index 83% |
copy from src/extensions/i18n/header.js |
copy to test/intl/break-iterator/resolved-options-is-method.js |
index 1c0a2d8874b5aa982ca2be2fb39f2ead1c4a9622..981fac2c9dfe25d6d7c1b676f702d7226e12e8fb 100644 |
--- a/src/extensions/i18n/header.js |
+++ b/test/intl/break-iterator/resolved-options-is-method.js |
@@ -26,16 +26,16 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// limitations under the License. |
-// ECMAScript 402 API implementation is broken into separate files for |
-// each service. The build system combines them together into one |
-// Intl namespace. |
+// Test that resolvedOptions is a method, not a property getter and that |
+// the result is mutable. |
-/** |
- * Intl object is a single object that has some named properties, |
- * all of which are constructors. |
- */ |
-var Intl = (function() { |
+var iterator = new Intl.v8BreakIterator(); |
-'use strict'; |
+var result = iterator.resolvedOptions(); |
-var Intl = {}; |
+assertTrue(result instanceof Object); |
+ |
+// Result should be mutable. |
+result.locale = 'xx'; |
+ |
+assertEquals(result.locale, 'xx'); |