HomeSort by relevance Sort by last modified time
    Searched defs:testString (Results 1 - 25 of 100) sorted by null

1 2 3 4

  /external/chromium_org/v8/test/mjsunit/harmony/
string-endswith.js 32 var testString = "Hello World";
33 assertTrue(testString.endsWith(""));
34 assertTrue(testString.endsWith("World"));
35 assertFalse(testString.endsWith("world"));
36 assertFalse(testString.endsWith("Hello World!"));
37 assertFalse(testString.endsWith(null));
38 assertFalse(testString.endsWith(undefined));
string-startswith.js 32 var testString = "Hello World";
33 assertTrue(testString.startsWith(""));
34 assertTrue(testString.startsWith("Hello"));
35 assertFalse(testString.startsWith("hello"));
36 assertFalse(testString.startsWith("Hello World!"));
37 assertFalse(testString.startsWith(null));
38 assertFalse(testString.startsWith(undefined));
  /external/chromium_org/third_party/WebKit/Source/wtf/tests/
WTFString.cpp 120 String testString = "1224";
121 ASSERT_TRUE(testString.is8Bit());
122 testString.replaceWithLiteral('2', "");
123 ASSERT_STREQ("14", testString.utf8().data());
125 testString = "1224";
126 ASSERT_TRUE(testString.is8Bit());
127 testString.replaceWithLiteral('2', "3");
128 ASSERT_STREQ("1334", testString.utf8().data());
130 testString = "1224";
131 ASSERT_TRUE(testString.is8Bit())
    [all...]
  /external/chromium_org/v8/test/mjsunit/third_party/
string-trim.js 41 var testString = 'foo bar';
79 trimString = wsString + testString + wsString;
80 leftTrimString = testString + wsString; // Trimmed from the left.
81 rightTrimString = wsString + testString; // Trimmed from the right.
87 assertEquals(trimString.trim(), testString);
91 assertEquals(leftTrimString.trim(), testString);
93 assertEquals(leftTrimString.trimRight(), testString);
95 assertEquals(rightTrimString.trim(), testString);
96 assertEquals(rightTrimString.trimLeft(), testString);
  /external/chromium_org/v8/test/webkit/
string-trim.js 31 var testString = 'foo bar';
69 trimString = wsString + testString + wsString;
70 leftTrimString = testString + wsString; //trimmed from the left
71 rightTrimString = wsString + testString; //trimmed from the right
77 shouldBe("trimString.trim()", "testString");
81 shouldBe("leftTrimString.trim()", "testString");
83 shouldBe("leftTrimString.trimRight()", "testString");
85 shouldBe("rightTrimString.trim()", "testString");
86 shouldBe("rightTrimString.trimLeft()", "testString");
  /external/stlport/test/eh/
test_string.cpp 30 typedef EH_STD::basic_string<char, EH_STD::char_traits<char>, eh_allocator(char) > TestString;
33 container_category(const TestString&)
39 TestString testString, testString2;
42 while ( testString.size() < ropeSize ) {
43 TestString::value_type x = TestString::value_type(random_number(random_base)) ; // initialize before use
44 testString.append(1, x );
45 testString2.append(1, TestString::value_type() );
47 WeakCheck( testString, test_insert_one<TestString>(testString) )
    [all...]
  /external/v8/test/mjsunit/third_party/
string-trim.js 41 var testString = 'foo bar';
79 trimString = wsString + testString + wsString;
80 leftTrimString = testString + wsString; // Trimmed from the left.
81 rightTrimString = wsString + testString; // Trimmed from the right.
87 assertEquals(trimString.trim(), testString);
91 assertEquals(leftTrimString.trim(), testString);
93 assertEquals(leftTrimString.trimRight(), testString);
95 assertEquals(rightTrimString.trim(), testString);
96 assertEquals(rightTrimString.trimLeft(), testString);
  /external/chromium_org/v8/test/mjsunit/
value-callic-prototype-change.js 31 function testString() {
50 testString();
  /external/v8/test/mjsunit/
value-callic-prototype-change.js 31 function testString() {
50 testString();
  /external/guava/guava-tests/test/com/google/common/io/
MultiReaderTest.java 34 String testString = "abcdefgh";
35 final InputSupplier<Reader> supplier = newReader(testString);
54 assertEquals(testString.length() * 3, result.length());
70 String testString = "abcdefgh";
71 InputSupplier<Reader> supplier = newReader(testString);
75 String expectedString = testString + testString;
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/
TSuper.java 47 public void testString(String s) {
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/
TSuper.java 47 public void testString(String s) {
  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
EncodeHtmlDataUriTest.java 31 String testString = "><#%\"'";
32 String encodedUri = UrlUtils.encodeHtmlDataUri(testString);
34 assertEquals("Delimiters are not properly encoded", decodedUri, testString);
39 String testString = "{}|\\^[]`";
40 String encodedUri = UrlUtils.encodeHtmlDataUri(testString);
42 assertEquals("Unwise characters are not properly encoded", decodedUri, testString);
47 String testString = " \n\t";
48 String encodedUri = UrlUtils.encodeHtmlDataUri(testString);
50 assertEquals("Whitespace characters are not properly encoded", decodedUri, testString);
56 String testString = "<html><body onload=\"alert('Hello \\\"world\\\"');\"></body></html>"
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/chromium/
ThreadSafeDataTransportTest.cpp 41 const char testString[] = "123456789";
42 RefPtr<SharedBuffer> buffer = SharedBuffer::create(testString, sizeof(testString));
  /external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
BoundedByteStringTest.java 58 String testString = "I love unicode \u1234\u5678 characters";
59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8));
66 testString.substring(2, testString.length() - 6), roundTripString);
RopeByteStringSubstringTest.java 81 String testString = builder.toString();
84 testString = testString.substring(2, testString.length() - 6);
91 testString, roundTripString);
92 ByteString flatString = ByteString.copyFromUtf8(testString);
RopeByteStringTest.java 81 ByteString testString = ByteString.copyFrom(testBytes);
83 concatenated.equals(testString));
85 testString.equals(concatenated));
87 testString.hashCode(), concatenated.hashCode());
103 String testString = builder.toString();
109 testString, roundTripString);
110 ByteString flatString = ByteString.copyFromUtf8(testString);
  /libcore/luni/src/test/java/libcore/java/io/
OldStringReaderTest.java 25 String testString = "This is a test string";
30 sr = new StringReader(testString);
39 char[] buf = new char[testString.length()];
40 sr = new StringReader(testString);
54 sr.read(buf, 1, testString.length());
OldPipedOutputStreamTest.java 74 static final String testString = "Lorem ipsum dolor sit amet,\n" +
77 static final int testLength = testString.length();
161 out.write(testString.getBytes(), 0, 10);
165 testString.substring(0, 10), reader.read(10));
172 out.write(testString.getBytes(), 0, 5);
181 out.write(testString.getBytes(), -1, 10);
188 out.write(testString.getBytes(), 0, -1);
195 out.write(testString.getBytes(), 5, testString.length());
206 out.write(testString.getBytes(), 0, testString.length())
    [all...]
OldWriterTest.java 40 String testString = "My Test String";
42 tobj.append(testString);
43 assertEquals("Wrong stuff written!", testString, tobj.toString());
45 tobj.append(testString);
53 String testString = "My Test String";
55 testString = "0123456789abcdefghijABCDEFGHIJ";
56 tobj.append(testString, 0, 5);
58 tobj.append(testString, 10, 15);
60 tobj.append(testString, 20, 30);
63 tobj.append(testString, 30, 31)
    [all...]
OldDataOutputStreamTest.java 40 private static final String testString = "Lorem ipsum dolor sit amet,\n" +
44 private static final int testLength = testString.length();
74 os.write(testString.getBytes(), 5, testLength - 7);
84 testString.substring(5, testLength - 2)));
139 os.writeBytes(testString);
147 new String(rbuf, 0, testLength).equals(testString));
151 os.writeBytes(testString);
OldFilterInputStreamTest.java 41 private static final String testString = "Lorem ipsum dolor sit amet,\n" +
45 private static final int testLength = testString.length();
147 testString.charAt(0), c);
164 testString.substring(0, 100)));
284 testString.substring(10, 20)));
306 fos.write(testString.getBytes());
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
GsmAlphabetTest.java 134 StringBuilder testString = new StringBuilder(300);
137 for (int i = 0; i < 9; i++, testString.append('@')) {
138 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0);
139 assertEquals(testString.toString(),
152 testString.append(c);
159 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0);
160 assertEquals(testString.toString(),
165 testString.append(sGsmExtendedChars);
174 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0);
175 assertEquals(testString.toString()
    [all...]
ApnSettingTest.java 59 String testString;
62 testString = "Vodafone IT,web.omnitel.it,,,,,,,,,222,10,,DUN";
66 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString));
69 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14";
73 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString));
76 testString = "[ApnSettingV2] Name,apn, ,,,,,,,,123,45,,mms|*,IPV4V6, IP,true,14";
80 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString));
83 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123, 45,,mms|*";
84 assertEquals(null, ApnSetting.fromString(testString));
86 testString = "Name,apn,,,,,,,,,123, 45,"
    [all...]
  /external/clang/test/Analysis/
initializer.cpp 140 void testString() {

Completed in 698 milliseconds

1 2 3 4