| Index: test/intl/number-format/parse-invalid-input.js
|
| diff --git a/src/extensions/i18n/header.js b/test/intl/number-format/parse-invalid-input.js
|
| similarity index 80%
|
| copy from src/extensions/i18n/header.js
|
| copy to test/intl/number-format/parse-invalid-input.js
|
| index 1c0a2d8874b5aa982ca2be2fb39f2ead1c4a9622..8c84d0b87e28f58e8d47d8569552aa5762b46878 100644
|
| --- a/src/extensions/i18n/header.js
|
| +++ b/test/intl/number-format/parse-invalid-input.js
|
| @@ -24,18 +24,15 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // 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.
|
| +// Invalid input is handled properly.
|
|
|
| -/**
|
| - * Intl object is a single object that has some named properties,
|
| - * all of which are constructors.
|
| - */
|
| -var Intl = (function() {
|
| +var nf = new Intl.NumberFormat(['en']);
|
|
|
| -'use strict';
|
| -
|
| -var Intl = {};
|
| +assertEquals(undefined, nf.v8Parse(''));
|
| +assertEquals(undefined, nf.v8Parse('A'));
|
| +assertEquals(undefined, nf.v8Parse(new Date()));
|
| +assertEquals(undefined, nf.v8Parse(undefined));
|
| +assertEquals(undefined, nf.v8Parse(null));
|
| +assertEquals(undefined, nf.v8Parse());
|
| +assertEquals(undefined, nf.v8Parse('Text before 12345'));
|
|
|