Commit 6ee9ec5c authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

[Intl] Remove --harmony-intl-list-format flag from test

This is part 1 of 2 of clean up. C++ change in Part 2 next.

Bug: v8:8705
Change-Id: Ibf4425c141391581b963f4775286b65b652452e2
Reviewed-on: https://chromium-review.googlesource.com/c/1461172Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59581}
parent 200ad461
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
var locales = ["tlh", "id", "en"]; var locales = ["tlh", "id", "en"];
var input = "foo and bar"; var input = "foo and bar";
var refBreakIterator = new Intl.v8BreakIterator(locales); var refBreakIterator = new Intl.v8BreakIterator(locales);
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
// ListFormat constructor can't be called as function. // ListFormat constructor can't be called as function.
assertThrows(() => Intl.ListFormat(['sr']), TypeError); assertThrows(() => Intl.ListFormat(['sr']), TypeError);
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
// The following test are not part of the comformance. Just some output in // The following test are not part of the comformance. Just some output in
// English to verify the format does return something reasonable for English. // English to verify the format does return something reasonable for English.
// It may be changed when we update the CLDR data. // It may be changed when we update the CLDR data.
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
function assertListFormat(listFormat, input) { function assertListFormat(listFormat, input) {
var result; var result;
try { try {
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
function assertListFormat(listFormat, input) { function assertListFormat(listFormat, input) {
try { try {
let result = listFormat.format(input); let result = listFormat.format(input);
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
// The following test are not part of the comformance. Just some output in // The following test are not part of the comformance. Just some output in
// Chinese to verify the format does return something reasonable for Chinese. // Chinese to verify the format does return something reasonable for Chinese.
// It may be changed when we update the CLDR data. // It may be changed when we update the CLDR data.
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
let listFormat = new Intl.ListFormat(); let listFormat = new Intl.ListFormat();
// The default style is 'long' // The default style is 'long'
assertEquals('long', listFormat.resolvedOptions().style); assertEquals('long', listFormat.resolvedOptions().style);
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
assertEquals(typeof Intl.ListFormat.supportedLocalesOf, "function", assertEquals(typeof Intl.ListFormat.supportedLocalesOf, "function",
"Intl.ListFormat.supportedLocalesOf should be a function"); "Intl.ListFormat.supportedLocalesOf should be a function");
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-intl-list-format
var locales = ["tlh", "id", "en"]; var locales = ["tlh", "id", "en"];
var input = ["a", "b", "c"]; var input = ["a", "b", "c"];
var referenceListFormat = new Intl.ListFormat(locales); var referenceListFormat = new Intl.ListFormat(locales);
......
// Copyright 2015 the V8 project authors. All rights reserved. // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Flags: --harmony-intl-list-format
new Intl.ListFormat("en", {style: 'narrow'}) new Intl.ListFormat("en", {style: 'narrow'})
*%(basename)s:7: RangeError: When style is 'narrow', 'unit' is the only allowed value for the type option. *%(basename)s:4: RangeError: When style is 'narrow', 'unit' is the only allowed value for the type option.
new Intl.ListFormat("en", {style: 'narrow'}) new Intl.ListFormat("en", {style: 'narrow'})
^ ^
RangeError: When style is 'narrow', 'unit' is the only allowed value for the type option. RangeError: When style is 'narrow', 'unit' is the only allowed value for the type option.
at new ListFormat (<anonymous>) at new ListFormat (<anonymous>)
at *%(basename)s:7:1 at *%(basename)s:4:1
...@@ -49,7 +49,6 @@ FEATURE_FLAGS = { ...@@ -49,7 +49,6 @@ FEATURE_FLAGS = {
'String.prototype.matchAll': '--harmony-string-matchall', 'String.prototype.matchAll': '--harmony-string-matchall',
'Symbol.matchAll': '--harmony-string-matchall', 'Symbol.matchAll': '--harmony-string-matchall',
'numeric-separator-literal': '--harmony-numeric-separator', 'numeric-separator-literal': '--harmony-numeric-separator',
'Intl.ListFormat': '--harmony-intl-list-format',
'Intl.Locale': '--harmony-locale', 'Intl.Locale': '--harmony-locale',
'Intl.Segmenter': '--harmony-intl-segmenter', 'Intl.Segmenter': '--harmony-intl-segmenter',
'Symbol.prototype.description': '--harmony-symbol-description', 'Symbol.prototype.description': '--harmony-symbol-description',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment