Searched refs:toString (Results 1 - 25 of 3572) sorted by relevance

1234567891011>>

/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/
H A D15.9.4.2-1.js45 AddTestCase( "new Date('1/1/1999 12:30 AM').toString()",
46 new Date(1999,0,1,0,30).toString(),
47 new Date('1/1/1999 12:30 AM').toString() );
49 AddTestCase( "new Date('1/1/1999 12:30 PM').toString()",
50 new Date( 1999,0,1,12,30 ).toString(),
51 new Date('1/1/1999 12:30 PM').toString() );
55 new Date('1/1/1999 13:30 AM').toString() );
60 new Date('1/1/1999 13:30 PM').toString() );
H A D15.9.2.1.js28 expression (new Date()).toString().
57 array[item++] = new TestCase( SECTION, "Date(1970,0,1,0,0,0,0)", (new Date()).toString(), Date(1970,0,1,0,0,0,0) );
58 array[item++] = new TestCase( SECTION, "Date(1969,11,31,15,59,59,999)", (new Date()).toString(), Date(1969,11,31,15,59,59,999))
59 array[item++] = new TestCase( SECTION, "Date(1969,11,31,16,0,0,0)", (new Date()).toString(), Date(1969,11,31,16,0,0,0))
60 array[item++] = new TestCase( SECTION, "Date(1969,11,31,16,0,0,1)", (new Date()).toString(), Date(1969,11,31,16,0,0,1))
63 array[item++] = new TestCase( SECTION, "Date(1999,11,15,59,59,999)", (new Date()).toString(), Date(1999,11,15,59,59,999));
64 array[item++] = new TestCase( SECTION, "Date(1999,11,16,0,0,0,0)", (new Date()).toString(), Date(1999,11,16,0,0,0,0));
65 array[item++] = new TestCase( SECTION, "Date(1999,11,31,23,59,59,999)", (new Date()).toString(), Date(1999,11,31,23,59,59,999) );
66 array[item++] = new TestCase( SECTION, "Date(2000,0,1,0,0,0,0)", (new Date()).toString(), Date(2000,0,0,0,0,0,0) );
67 array[item++] = new TestCase( SECTION, "Date(2000,0,1,0,0,0,1)", (new Date()).toString(), Dat
[all...]
/external/v8/test/mjsunit/regress/
H A Dregress-crbug-18639.js30 toString = toString;
H A Dregress-682649.js30 assertEquals(this.toString(), eval("this.toString()"));
H A Dshort-circuit.js31 arr.push(new RegExp("prefix" + i.toString() + i.toString() + i.toString()));
H A Dregress-1218.js29 assertFalse(Error.prototype.toString.hasOwnProperty("prototype"));
H A Dregress-57.js31 print(e.toString());
H A Dregress-124.js28 assertEquals("[object global]", this.toString());
29 assertEquals("[object Undefined]", toString());
31 assertEquals("[object global]", eval("this.toString()"));
32 assertEquals("[object Undefined]", eval("toString()"));
34 assertEquals("[object global]", eval("var f; this.toString()"));
35 assertEquals("[object Undefined]", eval("var f; toString()"));
39 assertEquals("[object global]", this.toString());
40 assertEquals("[object Undefined]", toString());
42 assertEquals("[object global]", eval("this.toString()"));
43 assertEquals("[object Undefined]", eval("toString()"));
[all...]
H A Dregress-1177518.js39 assertEquals('string', typeof (new Date(9999)).toString());
H A Dregress-877615.js35 Number.prototype.toString = function() { return 'invalid' };
37 assertEquals([1].toString(), '1'); // Uses ToString directly on elements.
/external/v8/test/mjsunit/
H A Dfunction-arguments-null.js30 assertTrue(toString.arguments === null);
H A Dnumber-tostring-small.js33 // toString
34 (NaN).toString();
35 (1/0).toString();
36 (-1/0).toString();
37 (0).toString();
38 (9).toString();
39 (90).toString();
40 (90.12).toString();
41 (0.1).toString();
42 (0.01).toString();
[all...]
H A Dnumber-tostring.js29 // toString
30 assertEquals("NaN", (NaN).toString());
31 assertEquals("Infinity", (1/0).toString());
32 assertEquals("-Infinity", (-1/0).toString());
33 assertEquals("0", (0).toString());
34 assertEquals("9", (9).toString());
35 assertEquals("90", (90).toString());
36 assertEquals("90.12", (90.12).toString());
37 assertEquals("0.1", (0.1).toString());
38 assertEquals("0.01", (0.01).toString());
[all...]
H A Dfun-name.js32 assertEquals('function(){}', strip((function () { }).toString()));
33 assertEquals('functionanonymous(){}', strip(new Function().toString()));
H A Darray-tostring.js28 // Array's toString should call the object's own join method, if one exists and
29 // is callable. Otherwise, just use the original Object.toString function.
44 assertEquals(a1.join(), a1.toString());
50 assertEquals(success, a2.toString());
52 // Non-callable join function is ignored and Object.prototype.toString is
56 assertEquals("[object Array]", a3.toString());
60 a4.__proto__ = { toString: Array.prototype.toString };
62 assertEquals("[object Array]", a4.toString());
69 toString
[all...]
H A Dvalue-callic-prototype-change.js33 var result = s.toString();
42 String.prototype.toString = function() { return "ostehaps"; };
54 Number.prototype.toString = function() { return 0; };
57 var result = n.toString();
65 Number.prototype.toString = function() { return 42; };
76 Boolean.prototype.toString = function() { return 0; };
79 var result = b.toString();
87 Boolean.prototype.toString = function() { return 42; };
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/NumberFormatting/
H A Dtostring-001.js36 reportCompare ("1e+23", n0.toString(), "1e23 toString()");
37 reportCompare ("5e+22", n1.toString(), "5e22 toString()");
38 reportCompare ("1.6e+24", n2.toString(), "1.6e24 toString()");
/external/hamcrest/src/org/hamcrest/
H A DBaseMatcher.java20 public String toString() { method in class:BaseMatcher
21 return StringDescription.toString(this);
/external/mockito/src/org/mockito/mock/
H A DMockName.java15 String toString(); method in interface:MockName
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/Exceptions/
H A Dboolean-001.js5 The toString function is not generic; it generates
15 var TITLE = "Boolean.prototype.toString()";
25 var TO_STRING = Boolean.prototype.toString;
29 s.toString = TO_STRING;
30 s.toString();
33 exception = e.toString();
38 "Assigning Boolean.prototype.toString to a String object "+
H A Dexception-003.js31 string.toString = Boolean.prototype.toString;
32 string.toString();
35 exception = e.toString();
40 "string.toString = Boolean.prototype.toString" +
41 "string.toString() [ exception is " + exception +" ]",
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/LexicalConventions/
H A Dregexp-literals-002.js20 (/x*/ instanceof RegExp).toString() );
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Array/
H A D15.4.4.4-001.js57 actual = [].concat(x).toString();
58 expect = x.toString();
63 actual = [].concat(x).toString();
64 expect = x.toString();
69 actual = [].concat(x).toString();
70 expect = x.toString();
75 actual = [].concat(x).toString();
76 expect = x.toString();
81 actual = [].concat(x).toString();
82 expect = x.toString();
[all...]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/
H A D15.6.4.2-1.js24 ECMA Section: 15.6.4.2-1 Boolean.prototype.toString()
29 The toString function is not generic; it generates
41 var TITLE = "Boolean.prototype.toString()"
51 array[item++] = new TestCase( SECTION, "new Boolean(1)", "true", (new Boolean(1)).toString() );
52 array[item++] = new TestCase( SECTION, "new Boolean(0)", "false", (new Boolean(0)).toString() );
53 array[item++] = new TestCase( SECTION, "new Boolean(-1)", "true", (new Boolean(-1)).toString() );
54 array[item++] = new TestCase( SECTION, "new Boolean('1')", "true", (new Boolean("1")).toString() );
55 array[item++] = new TestCase( SECTION, "new Boolean('0')", "true", (new Boolean("0")).toString() );
56 array[item++] = new TestCase( SECTION, "new Boolean(true)", "true", (new Boolean(true)).toString() );
57 array[item++] = new TestCase( SECTION, "new Boolean(false)", "false", (new Boolean(false)).toString() );
[all...]
/external/mockito/src/org/mockito/invocation/
H A DLocation.java18 String toString(); method in interface:Location

Completed in 674 milliseconds

1234567891011>>