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

1234567891011>>

/external/chromium_org/v8/test/webkit/fast/js/kde/
H A Dobject_prototype_tostring.js26 _array.toString = Object.prototype.toString;
27 shouldBe("_array.toString()","\"[object Array]\"");
29 _string.toString = Object.prototype.toString;
30 shouldBe("_string.toString()","\"[object String]\"");
32 _boolean.toString = Object.prototype.toString;
33 shouldBe("_boolean.toString()","\"[object Boolean]\"");
35 _number.toString
[all...]
/external/chromium_org/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...]
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-682649.js30 assertEquals(this.toString(), eval("this.toString()"));
H A Dregress-3116.js6 var str = (new Date(2014, 0, 10)).toString();
21 (new Date(2014, 2, 29, 22, 59)).toString());
25 (new Date(2014, 2, 29, 23, 0)).toString());
29 (new Date(2014, 2, 29, 23, 59)).toString());
33 (new Date(2014, 2, 30, 0, 0)).toString());
37 (new Date(2014, 2, 30, 0, 59)).toString());
41 (new Date(2014, 2, 30, 1, 0)).toString());
45 (new Date(2014, 2, 30, 1, 59)).toString());
49 (new Date(2014, 2, 30, 2, 0)).toString());
53 (new Date(2014, 2, 30, 2, 59)).toString());
[all...]
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-136048.js33 e.toString());
H A Dregress-crbug-18639.js31 toString = toString;
H A Dregress-store-global-proxy.js8 this.toString = 1;
H A Dregress-166553.js30 JSON.stringify(String.fromCharCode(1, -11).toString())
H A Dregress-877615.js35 Number.prototype.toString = function() { return 'invalid' };
37 assertEquals([1].toString(), '1'); // Uses ToString directly on elements.
/external/chromium_org/v8/test/webkit/fast/js/
H A DtoString-exception.js25 'This test checks for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=7343">7343: REGRESSION: fast/js/toString-overrides.html fails when run multiple times</a>.'
28 var a = [{ toString : 0 }];
31 a.toString();
38 a.toString();
H A Ddate-preserve-milliseconds.js34 shouldBe("d.getMilliseconds()", oldValue.toString());
36 shouldBe("d.getMilliseconds()", oldValue.toString());
38 shouldBe("d.getMilliseconds()", oldValue.toString());
40 shouldBe("d.getMilliseconds()", oldValue.toString());
42 shouldBe("d.getMilliseconds()", oldValue.toString());
44 shouldBe("d.getMilliseconds()", oldValue.toString());
H A DtoString-overrides.js28 'This test checks for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=4147">4147: Array.toString() and toLocaleString() improvements from KDE KJS</a>.'
32 var backupNumberToString = Number.prototype.toString;
34 var backupRegExpToString = RegExp.prototype.toString;
38 Number.prototype.toString = function() { return "toString"; }
40 RegExp.prototype.toString = function() { return "toString2"; }
44 shouldBe("[1].toString()", "'1'");
48 shouldBe("[/r/].toString()", "'toString2'");
55 [{ toString : 0 }].toString();
[all...]
/external/hamcrest/src/org/hamcrest/
H A DBaseMatcher.java20 public String toString() { method in class:BaseMatcher
21 return StringDescription.toString(this);
/external/chromium_org/third_party/WebKit/Source/platform/exported/
H A DWebSerializedOrigin.cpp13 : m_string(origin.toString())
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/serialization/
H A DNullSoapObject.java5 * A class that implements only {@link NullSoapObject#toString()}.
13 * return person.getPropertySafely("age").toString();
22 * returns a NullSoapObject, which in turn returns {@code null} for {@link NullSoapObject#toString()}.
37 public String toString() { method in class:NullSoapObject
/external/mockito/src/org/mockito/mock/
H A DMockName.java15 String toString(); method in interface:MockName

Completed in 349 milliseconds

1234567891011>>