Title: [196884] trunk/LayoutTests
Revision
196884
Author
[email protected]
Date
2016-02-21 17:29:43 -0800 (Sun, 21 Feb 2016)

Log Message

Adding ios-simulator baseline for js/number-toLocaleString.html
https://bugs.webkit.org/show_bug.cgi?id=154524

Unreviewed test gardening.

* platform/ios-simulator/js/number-toLocaleString-expected.txt: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (196883 => 196884)


--- trunk/LayoutTests/ChangeLog	2016-02-22 01:27:43 UTC (rev 196883)
+++ trunk/LayoutTests/ChangeLog	2016-02-22 01:29:43 UTC (rev 196884)
@@ -1,5 +1,14 @@
 2016-02-21  Ryan Haddad  <[email protected]>
 
+        Adding ios-simulator baseline for js/number-toLocaleString.html
+        https://bugs.webkit.org/show_bug.cgi?id=154524
+
+        Unreviewed test gardening.
+
+        * platform/ios-simulator/js/number-toLocaleString-expected.txt: Added.
+
+2016-02-21  Ryan Haddad  <[email protected]>
+
         Rebaseline imported/w3c/web-platform-tests/html/dom/reflection-forms.html for ios-simulator after r196846
 
         Unreviewed test gardening.

Added: trunk/LayoutTests/platform/ios-simulator/js/number-toLocaleString-expected.txt (0 => 196884)


--- trunk/LayoutTests/platform/ios-simulator/js/number-toLocaleString-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/js/number-toLocaleString-expected.txt	2016-02-22 01:29:43 UTC (rev 196884)
@@ -0,0 +1,30 @@
+This test checks the behavior of Number.prototype.toLocaleString as described in the ECMAScript Internationalization API Specification (ECMA-402 2.0).
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS Number.prototype.toLocaleString.length is 0
+PASS Object.getOwnPropertyDescriptor(Number.prototype, 'toLocaleString').enumerable is false
+PASS Object.getOwnPropertyDescriptor(Number.prototype, 'toLocaleString').configurable is true
+PASS Object.getOwnPropertyDescriptor(Number.prototype, 'toLocaleString').writable is true
+PASS Number.prototype.toLocaleString.call(0) did not throw exception.
+PASS Number.prototype.toLocaleString.call(NaN) did not throw exception.
+PASS Number.prototype.toLocaleString.call(Infinity) did not throw exception.
+PASS Number.prototype.toLocaleString.call(new Number) did not throw exception.
+PASS Number.prototype.toLocaleString.call() threw exception TypeError: Number.prototype.toLocaleString called on incompatible undefined.
+PASS Number.prototype.toLocaleString.call(undefined) threw exception TypeError: Number.prototype.toLocaleString called on incompatible undefined.
+PASS Number.prototype.toLocaleString.call(null) threw exception TypeError: Number.prototype.toLocaleString called on incompatible object.
+PASS Number.prototype.toLocaleString.call('1') threw exception TypeError: Number.prototype.toLocaleString called on incompatible string.
+PASS Number.prototype.toLocaleString.call([]) threw exception TypeError: Number.prototype.toLocaleString called on incompatible object.
+PASS Number.prototype.toLocaleString.call(Symbol()) threw exception TypeError: Number.prototype.toLocaleString called on incompatible symbol.
+PASS (0).toLocaleString() is "0"
+PASS new Number(1).toLocaleString() is "1"
+PASS (0).toLocaleString('i') threw exception RangeError: invalid language tag: i.
+FAIL Infinity.toLocaleString() should be ∞. Was INF.
+PASS (123456.789).toLocaleString('ar') is "١٢٣٬٤٥٦٫٧٨٩"
+PASS (123456.789).toLocaleString('zh-Hans-CN-u-nu-hanidec') is "一二三,四五六.七八九"
+PASS (123.456).toLocaleString('en', { maximumSignificantDigits: 3 }) is "123"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to