Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 3085) sorted by relevance

12345678910>>...124

/external/chromium_org/v8/test/mjsunit/
Dnumber-tostring-small.js34 (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();
43 (0.0123).toString();
[all …]
Dnumber-tostring.js30 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());
39 assertEquals("0.0123", (0.0123).toString());
[all …]
Darray-tostring.js44 assertEquals(a1.join(), a1.toString());
50 assertEquals(success, a2.toString());
56 assertEquals("[object Array]", a3.toString());
60 a4.__proto__ = { toString: Array.prototype.toString }; property
62 assertEquals("[object Array]", a4.toString());
69 toString: Array.prototype.toString, property
71 assertEquals(o1.join(), o1.toString());
76 var o2 = {toString : Array.prototype.toString, property
81 assertEquals(success, o2.toString());
85 toString: Array.prototype.toString, property
[all …]
/external/v8/test/mjsunit/
Dnumber-tostring-small.js34 (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();
43 (0.0123).toString();
[all …]
Dnumber-tostring.js30 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());
39 assertEquals("0.0123", (0.0123).toString());
[all …]
Darray-tostring.js44 assertEquals(a1.join(), a1.toString());
50 assertEquals(success, a2.toString());
56 assertEquals("[object Array]", a3.toString());
60 a4.__proto__ = { toString: Array.prototype.toString }; property
62 assertEquals("[object Array]", a4.toString());
69 toString: Array.prototype.toString, property
71 assertEquals(o1.join(), o1.toString());
76 var o2 = {toString : Array.prototype.toString, property
81 assertEquals(success, o2.toString());
85 toString: Array.prototype.toString, property
[all …]
/external/chromium_org/v8/test/webkit/
Dinteger-extremes-expected.txt29 PASS (-1).toString() is "-1"
30 PASS (0).toString() is "0"
31 PASS (-0).toString() is "0"
34 PASS min.toString() is "-128"
35 PASS (min - 1).toString() is "-129"
36 PASS max.toString() is "127"
37 PASS (max + 1).toString() is "128"
39 PASS min.toString() is "-256"
40 PASS (min - 1).toString() is "-257"
41 PASS max.toString() is "255"
[all …]
Ddfg-to-string-side-effect-expected.txt30 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
32 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
34 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
36 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
38 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
40 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
42 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
44 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
46 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
48 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
[all …]
/external/chromium_org/v8/test/webkit/fast/js/
DtoString-number-expected.txt24 Test the conversion performed by the function Number.prototype.toString.
29 PASS Number(0).toString() is "0"
30 PASS Number.prototype.toString.call(0) is "0"
31 PASS Number.prototype.toString.call(new Number(0)) is "0"
32 PASS Number("0").toString() is "0"
33 PASS Number(0).toString(10) is "0"
34 PASS Number(0).toString(2) is "0"
35 PASS Number.prototype.toString.call(0, 2) is "0"
36 PASS Number.prototype.toString.call(new Number(0), 2) is "0"
37 PASS Number(0).toString(36) is "0"
[all …]
Dnumber-toString-expected.txt24 PASS (0.0).toString(4) is "0"
25 PASS (-0.0).toString(4) is "0"
26 PASS (0.0).toString() is "0"
27 PASS (-0.0).toString() is "0"
28 PASS (1234.567).toString() is "1234.567"
29 PASS (1234.567).toString(0) threw exception RangeError: toString() radix argument must be between 2…
30 PASS (1234.567).toString(null) threw exception RangeError: toString() radix argument must be betwee…
31 PASS (1234.567).toString(false) threw exception RangeError: toString() radix argument must be betwe…
32 PASS (1234.567).toString('foo') threw exception RangeError: toString() radix argument must be betwe…
33 PASS (1234.567).toString(nan) threw exception RangeError: toString() radix argument must be between…
[all …]
Dregexp-unicode-handling-expected.txt39 PASS inlineRe.toString() is newFromInlineRe.toString()
40 PASS inlineRe.toString() is evalFromInlineRe.toString()
41 PASS inlineRe.toString() is evalInlineRe.toString()
42 PASS inlineRe.toString() is newFromEvalInlineRe.toString()
43 PASS inlineRe.toString() is evalFromEvalInlineRe.toString()
44 PASS inlineRe.toString() is explicitRe.toString()
45 PASS inlineRe.toString() is newFromExplicitRe.toString()
46 PASS inlineRe.toString() is evalFromExplicitRe.toString()
58 PASS binlineRe.toString() is bnewFromInlineRe.toString()
59 PASS binlineRe.toString() is bevalFromInlineRe.toString()
[all …]
Dregexp-no-extensions-expected.txt30 PASS /[\x{41}]/.exec("yA1").toString() is "1"
31 PASS /\x1g/.exec("x1g").toString() is "x1g"
32 PASS /[\x1g]/.exec("x").toString() is "x"
33 PASS /[\x1g]/.exec("1").toString() is "1"
34 PASS /\2147483648/.exec(String.fromCharCode(140) + "7483648").toString() is String.fromCharCode(140…
35 PASS /\4294967296/.exec("\"94967296").toString() is "\"94967296"
36 FAIL /\8589934592/.exec("\\8589934592").toString() should be \8589934592. Was 8589934592.
44 PASS /\060/.exec("y01").toString() is "0"
45 PASS /[\060]/.exec("y01").toString() is "0"
46 PASS /\606/.exec("y06").toString() is "06"
[all …]
Dregexp-ranges-and-escaped-hyphens-expected.txt29 PASS regexp01.toString() is "1235"
30 PASS regexp01a.toString() is "123 5"
31 PASS regexp01b.toString() is "1-3 5"
32 PASS regexp01c.toString() is "1-3 5"
33 PASS regexp01d.toString() is "123 5"
34 PASS regexp01e.toString() is "123 5"
35 PASS regexp01f.toString() is "-3"
36 PASS regexp01g.toString() is "2-"
37 PASS regexp02.toString() is "1-35"
38 PASS regexp02a.toString() is "1-3 5"
[all …]
DtoString-overrides.js32 var backupNumberToString = Number.prototype.toString;
34 var backupRegExpToString = RegExp.prototype.toString;
38 Number.prototype.toString = function() { return "toString"; } method in Number
40 RegExp.prototype.toString = function() { return "toString2"; } method in RegExp
55 [{ toString : 0 }].toString();
62 Number.prototype.toString = backupNumberToString; method in Number
64 RegExp.prototype.toString = backupRegExpToString; method in RegExp
/external/chromium_org/v8/test/webkit/fast/js/kde/
Dobject_prototype_tostring.js26 _array.toString = Object.prototype.toString;
29 _string.toString = Object.prototype.toString;
32 _boolean.toString = Object.prototype.toString;
35 _number.toString = Object.prototype.toString;
38 _object.toString = Object.prototype.toString;
41 _date.toString = Object.prototype.toString;
44 _regexp.toString = Object.prototype.toString;
47 _error.toString = Object.prototype.toString;
50 _function.toString = Object.prototype.toString;
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DStringBuffer2Test.java52 && (sb.toString().equals("HelloWorld"))); in test_ConstructorLjava_lang_String()
73 "This is a test bufferchar", testBuffer.toString()); in test_append$C()
89 assertTrue("Buffer contains invalid chars", (sb.toString() in test_append$CII()
107 (sb.toString().equals("HW"))); in test_appendC()
120 "1.7976931348623157E308", sb.toString()); in test_appendD()
134 assertTrue("Buffer contains invalid characters", sb.toString().equals( in test_appendF()
150 "90001000", sb.toString()); in test_appendI()
165 "927654321098", sb.toString()); in test_appendJ()
179 assertTrue("Buffer contains invalid characters", sb.toString().equals( in test_appendLjava_lang_Object()
180 obj1.toString() + obj2.toString())); in test_appendLjava_lang_Object()
[all …]
DStringBuilderTest.java63 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_CharSequence()
67 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_CharSequence()
83 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_String()
99 assertEquals("true", sb.toString()); in test_appendZ()
102 assertEquals("false", sb.toString()); in test_appendZ()
111 assertEquals("a", sb.toString()); in test_appendC()
114 assertEquals("b", sb.toString()); in test_appendC()
123 assertEquals("ab", sb.toString()); in test_append$C()
126 assertEquals("cd", sb.toString()); in test_append$C()
141 assertEquals("ab", sb.toString()); in test_append$CII()
[all …]
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt048rewrite.py28 result = tokens.toString()
37 result = tokens.toString()
47 result = tokens.toString()
56 result = tokens.toString()
65 result = tokens.toString()
74 result = tokens.toString()
84 result = tokens.toString()
95 result = tokens.toString()
105 result = tokens.toString()
115 tokens.toString()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DTreeMapExtendTest.java143 String key = new Integer(100).toString(); in test_TreeMap_Constructor_Map()
189 key = objArray[counter].toString(); in test_SubMap_containsKey()
203 key = objArray[100].toString(); in test_SubMap_containsKey()
215 key = objArray[109].toString(); in test_SubMap_containsKey()
229 key = objArray[counter].toString(); in test_SubMap_containsKey()
247 key = objArray[100].toString(); in test_SubMap_containsKey()
259 key = objArray[109].toString(); in test_SubMap_containsKey()
349 String firstKey1 = new Integer(100).toString(); in test_SubMap_firstKey()
350 String firstKey2 = new Integer(101).toString(); in test_SubMap_firstKey()
449 String lastKey1 = new Integer(108).toString(); in test_SubMap_lastKey()
[all …]
DTreeMapTest.java122 reversedTreeMap.put(new Integer(1).toString(), new Integer(1)); in test_ConstructorLjava_util_Comparator()
123 reversedTreeMap.put(new Integer(2).toString(), new Integer(2)); in test_ConstructorLjava_util_Comparator()
125 reversedTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_Comparator()
127 reversedTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_Comparator()
140 element.toString()).equals(element)); in test_ConstructorLjava_util_Map()
151 reversedTreeMap.put(new Integer(1).toString(), new Integer(1)); in test_ConstructorLjava_util_SortedMap()
152 reversedTreeMap.put(new Integer(2).toString(), new Integer(2)); in test_ConstructorLjava_util_SortedMap()
157 anotherTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_SortedMap()
159 anotherTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_SortedMap()
184 .get(element.toString()) == tm.get(element.toString())); in test_clone()
[all …]
DArrays2Test.java192 assertEquals("null", Arrays.toString((boolean[])null)); in test_toString$Z()
193 assertEquals("[]", Arrays.toString(new boolean[] {})); in test_toString$Z()
194 assertEquals("[true]", Arrays.toString(new boolean[] {true})); in test_toString$Z()
195 assertEquals("[true, false]", Arrays.toString(new boolean[] {true,false})); in test_toString$Z()
196 assertEquals("[true, false, true]", Arrays.toString(new boolean[] {true,false,true})); in test_toString$Z()
203 assertEquals("null", Arrays.toString((byte[])null)); in test_toString$B()
204 assertEquals("[]", Arrays.toString(new byte[] {})); in test_toString$B()
205 assertEquals("[0]", Arrays.toString(new byte[] {0})); in test_toString$B()
206 assertEquals("[-1, 0]", Arrays.toString(new byte[] {-1,0})); in test_toString$B()
207 assertEquals("[-1, 0, 1]", Arrays.toString(new byte[] {-1,0,1})); in test_toString$B()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DToStringHelperTest.java38 String toTest = Objects.toStringHelper(this).toString(); in testConstructor_instance()
43 String toTest = Objects.toStringHelper(this).toString(); in testConstructorLenient_instance()
49 String toTest = Objects.toStringHelper(new TestClass()).toString(); in testConstructor_innerClass()
54 String toTest = Objects.toStringHelper(new TestClass()).toString(); in testConstructorLenient_innerClass()
60 String toTest = Objects.toStringHelper(new Object() {}).toString(); in testConstructor_anonymousClass()
65 String toTest = Objects.toStringHelper(new Object() {}).toString(); in testConstructorLenient_anonymousClass()
71 String toTest = Objects.toStringHelper(TestClass.class).toString(); in testConstructor_classObject()
76 String toTest = Objects.toStringHelper(TestClass.class).toString(); in testConstructorLenient_classObject()
81 String toTest = Objects.toStringHelper("FooBar").toString(); in testConstructor_stringObject()
89 String toTest = Objects.toStringHelper(new LocalInnerClass()).toString(); in testToStringHelper_localInnerClass()
[all …]
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTreeIterator.java45 StringBuffer buf = toString(it); in testNode()
47 String found = buf.toString(); in testNode()
56 StringBuffer buf = toString(it); in testFlatAB()
58 String found = buf.toString(); in testFlatAB()
67 StringBuffer buf = toString(it); in testAB()
69 String found = buf.toString(); in testAB()
78 StringBuffer buf = toString(it); in testABC()
80 String found = buf.toString(); in testABC()
89 StringBuffer buf = toString(it); in testVerticalList()
91 String found = buf.toString(); in testVerticalList()
[all …]
/external/doclava/src/com/google/doclava/
DInfoBuilder.java58 public String toString() { in toString() method in InfoBuilder
113 System.out.print("Class: " + cl.toString()); in printClassInfo()
344 String payload = tree.payload.toString(); in parseFile()
396 if (child.payload != null && "qualifiedName".equals(child.payload.toString())) { in buildPackage()
416 packageName.append(tree.getChild(j).toString()); in buildQualifiedName()
419 return packageName.toString(); in buildQualifiedName()
430 String part = tree.getChild(i).toString(); in buildImport()
440 return theImport.toString(); in buildImport()
474 if ("typeParameters".equals(child.toString())) { in buildClass()
481 if ("extends".equals(child.toString())) { in buildClass()
[all …]
/external/skia/src/utils/
DSkDumpCanvas.cpp27 static void toString(const SkRect& r, SkString* str) { in toString() function
33 static void toString(const SkIRect& r, SkString* str) { in toString() function
37 static void toString(const SkRRect& rrect, SkString* str) { in toString() function
93 static void toString(const SkPath& path, SkString* str) { in toString() function
97 toString(path.getBounds(), str); in toString()
108 static const char* toString(SkRegion::Op op) { in toString() function
115 static void toString(const SkRegion& rgn, SkString* str) { in toString() function
117 toString(rgn.getBounds(), str); in toString()
124 static const char* toString(SkCanvas::VertexMode vm) { in toString() function
131 static const char* toString(SkCanvas::PointMode pm) { in toString() function
[all …]

12345678910>>...124