| Index: test/intl/number-format/parse-percent.js
|
| diff --git a/src/extensions/i18n/header.js b/test/intl/number-format/parse-percent.js
|
| similarity index 80%
|
| copy from src/extensions/i18n/header.js
|
| copy to test/intl/number-format/parse-percent.js
|
| index 1c0a2d8874b5aa982ca2be2fb39f2ead1c4a9622..1dd249c0c3df529ce86a822dd5a343b153657336 100644
|
| --- a/src/extensions/i18n/header.js
|
| +++ b/test/intl/number-format/parse-percent.js
|
| @@ -26,16 +26,12 @@
|
| // 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.
|
| +var nf = new Intl.NumberFormat(['en'], {style: 'percent'});
|
|
|
| -/**
|
| - * Intl object is a single object that has some named properties,
|
| - * all of which are constructors.
|
| - */
|
| -var Intl = (function() {
|
| -
|
| -'use strict';
|
| -
|
| -var Intl = {};
|
| +assertEquals(1.2343, nf.v8Parse('123.43%'));
|
| +assertEquals(1.23, nf.v8Parse('123%'));
|
| +assertEquals(NaN, nf.v8Parse(NaN));
|
| +assertEquals(123.23, nf.v8Parse('123,23%'));
|
| +assertEquals(123.23456, nf.v8Parse('123,23.456%'));
|
| +assertEquals(123.23456, nf.v8Parse('0000000123,23.456%'));
|
| +assertEquals(-123.23456, nf.v8Parse('-123,23.456%'));
|
|
|