Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1746)

Unified Diff: test/webkit/fast/js/string-fontcolor-expected.txt

Issue 21070002: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/webkit/fast/js/string-fontcolor.js ('k') | test/webkit/fast/js/string-fontsize.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/string-fontcolor-expected.txt
diff --git a/test/webkit/date-utc-timeclip-expected.txt b/test/webkit/fast/js/string-fontcolor-expected.txt
similarity index 67%
copy from test/webkit/date-utc-timeclip-expected.txt
copy to test/webkit/fast/js/string-fontcolor-expected.txt
index 4901631d59c8d8f729458d1be81c33c57fcac8f8..af2c707f37501ae685a01a5f780bb0f87885224d 100644
--- a/test/webkit/date-utc-timeclip-expected.txt
+++ b/test/webkit/fast/js/string-fontcolor-expected.txt
@@ -21,19 +21,20 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-Date.UTC() should apply TimeClip operation according to ECMA-262.
+This is a test case for String.prototype.fontcolor(color).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS Date.UTC(275760, 8, 12, 23, 59, 59, 999) is 8639999999999999
-PASS Date.UTC(275760, 8, 13) is 8640000000000000
-PASS isNaN(Date.UTC(275760, 8, 13, 0, 0, 0, 1)) is true
-PASS isNaN(Date.UTC(275760, 8, 14)) is true
-PASS Date.UTC(-271821, 3, 20, 0, 0, 0, 1) is -8639999999999999
-PASS Date.UTC(-271821, 3, 20) is -8640000000000000
-PASS isNaN(Date.UTC(-271821, 3, 19, 23, 59, 59, 999)) is true
-PASS isNaN(Date.UTC(-271821, 3, 19)) is true
+PASS '_'.fontcolor('b') is "<font color=\"b\">_</font>"
+PASS '<'.fontcolor('b') is "<font color=\"b\"><</font>"
+PASS '_'.fontcolor(0x2A) is "<font color=\"42\">_</font>"
+PASS '_'.fontcolor('"') is "<font color=\"&quot;\">_</font>"
+PASS '_'.fontcolor('" size="2px') is "<font color=\"&quot; size=&quot;2px\">_</font>"
+PASS String.prototype.fontcolor.call(0x2A, 0x2A) is "<font color=\"42\">42</font>"
+FAIL String.prototype.fontcolor.call(undefined) should throw TypeError: Type error. Was <font color="undefined">undefined</font>.
+FAIL String.prototype.fontcolor.call(null) should throw TypeError: Type error. Was <font color="undefined">null</font>.
+PASS String.prototype.fontcolor.length is 1
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « test/webkit/fast/js/string-fontcolor.js ('k') | test/webkit/fast/js/string-fontsize.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698