/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/regexp/ |
hexadecimal.js | 44 var testString = "12345ABCDEFGHIJKLMNOPQRSTUVWXYZ67890"; 47 "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 48 String(["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]), String(testString.match(new RegExp(testPattern)))); 52 testString = "12345AabcdefghijklmnopqrstuvwxyzZ67890"; 55 "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 56 String(["abcdefghijklmnopqrstuvwxyz"]), String(testString.match(new RegExp(testPattern)))); 60 testString = "abc !\"#$%&'()*+,-./0123ZBC"; 63 "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 64 String([" !\"#$%&'()*+,-./0123"]), String(testString.match(new RegExp(testPattern)))); 68 testString = "123456789:;<=>?@ABC" [all...] |
octal.js | 44 var testString = "12345ABCDEFGHIJKLMNOPQRSTUVWXYZ67890"; 47 "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 48 String(["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]), String(testString.match(new RegExp(testPattern)))); 52 testString = "12345AabcdefghijklmnopqrstuvwxyzZ67890"; 55 "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 56 String(["abcdefghijklmnopqrstuvwxyz"]), String(testString.match(new RegExp(testPattern)))); 60 testString = "abc !\"#$%&'()*+,-./0123ZBC"; 63 "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 64 String([" !\"#$%&'()*+,-./0123"]), String(testString.match(new RegExp(testPattern)))); 68 testString = "123456789:;<=>?@ABC" [all...] |
/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/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) {
|
/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());
|
OldBufferedWriterTest.java | 33 public String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutputStream\nTest_java_io_ByteArrayInputStream\nTest_java_io_ByteArrayOutputStream\nTest_java_io_DataInputStream\nTest_java_io_File\nTest_java_io_FileDescriptor\nTest_java_io_FileInputStream\nTest_java_io_FileNotFoundException\nTest_java_io_FileOutputStream\nTest_java_io_FilterInputStream\nTest_java_io_FilterOutputStream\nTest_java_io_InputStream\nTest_java_io_IOException\nTest_java_io_OutputStream\nTest_java_io_PrintStream\nTest_java_io_RandomAccessFile\nTest_java_io_SyncFailedException\nTest_java_lang_AbstractMethodError\nTest_java_lang_ArithmeticException\nTest_java_lang_ArrayIndexOutOfBoundsException\nTest_java_lang_ArrayStoreException\nTest_java_lang_Boolean\nTest_java_lang_Byte\nTest_java_lang_Character\nTest_java_lang_Class\nTest_java_lang_ClassCastException\nTest_java_lang_ClassCircularityError\nTest_java_lang_ClassFormatError\nTest_java_lang_ClassLoader\nTest_java_lang_ClassNotFoundException\nTest_java_lang_CloneNotSupportedException\nTest_java_lang_Double\nTest_java_lang_Error\nTest_java_lang_Exception\nTest_java_lang_ExceptionInInitializerError\nTest_java_lang_Float\nTest_java_lang_IllegalAccessError\nTest_java_lang_IllegalAccessException\nTest_java_lang_IllegalArgumentException\nTest_java_lang_IllegalMonitorStateException\nTest_java_lang_IllegalThreadStateException\nTest_java_lang_IncompatibleClassChangeError\nTest_java_lang_IndexOutOfBoundsException\nTest_java_lang_InstantiationError\nTest_java_lang_InstantiationException\nTest_java_lang_Integer\nTest_java_lang_InternalError\nTest_java_lang_InterruptedException\nTest_java_lang_LinkageError\nTest_java_lang_Long\nTest_java_lang_Math\nTest_java_lang_NegativeArraySizeException\nTest_java_lang_NoClassDefFoundError\nTest_java_lang_NoSuchFieldError\nTest_java_lang_NoSuchMethodError\nTest_java_lang_NullPointerException\nTest_java_lang_Number\nTest_java_lang_NumberFormatException\nTest_java_lang_Object\nTest_java_lang_OutOfMemoryError\nTest_java_lang_RuntimeException\nTest_java_lang_SecurityManager\nTest_java_lang_Short\nTest_java_lang_StackOverflowError\nTest_java_lang_String\nTest_java_lang_StringBuffer\nTest_java_lang_StringIndexOutOfBoundsException\nTest_java_lang_System\nTest_java_lang_Thread\nTest_java_lang_ThreadDeath\nTest_java_lang_ThreadGroup\nTest_java_lang_Throwable\nTest_java_lang_UnknownError\nTest_java_lang_UnsatisfiedLinkError\nTest_java_lang_VerifyError\nTest_java_lang_VirtualMachineError\nTest_java_lang_vm_Image\nTest_java_lang_vm_MemorySegment\nTest_java_lang_vm_ROMStoreException\nTest_java_lang_vm_VM\nTest_java_lang_Void\nTest_java_net_BindException\nTest_java_net_ConnectException\nTest_java_net_DatagramPacket\nTest_java_net_DatagramSocket\nTest_java_net_DatagramSocketImpl\nTest_java_net_InetAddress\nTest_java_net_NoRouteToHostException\nTest_java_net_PlainDatagramSocketImpl\nTest_java_net_PlainSocketImpl\nTest_java_net_Socket\nTest_java_net_SocketException\nTest_java_net_SocketImpl\nTest_java_net_SocketInputStream\nTest_java_net_SocketOutputStream\nTest_java_net_UnknownHostException\nTest_java_util_ArrayEnumerator\nTest_java_util_Date\nTest_java_util_EventObject\nTest_java_util_HashEnumerator\nTest_java_util_Hashtable\nTest_java_util_Properties\nTest_java_util_ResourceBundle\nTest_java_util_tm\nTest_java_util_Vector\n"; 70 bw.write(testString); 75 assertFalse("Test 2: Write after close.", sw.toString().equals(testString)); 126 char[] testCharArray = testString.toCharArray(); 130 testString.substring(500, 1500))); 147 char[] charArray = testString.toCharArray(); 248 bw.write(testString); 251 testString)); 272 bw.write(testString, -1, 1); 279 bw.write(testString, 1, testString.length()) [all...] |
OldCharArrayWriterTest.java | 94 String testString = "My Test String"; 99 writer.append(testString, -1, 0); 105 writer.append(testString, 0, -1); 111 writer.append(testString, 1, 0); 117 writer.append(testString, 1, testString.length() + 1); 123 writer.append(testString, 1, 3); 126 testString.substring(1, 3), writer.toString());
|
OldOutputStreamWriterTest.java | 38 public String testString = "This is a test message with Unicode characters. \u4e2d\u56fd is China's name in Chinese"; 248 char[] buf = new char[testString.length()]; 249 osw.write(testString, 0, testString.length()); 254 new String(buf, 0, buf.length).equals(testString)); 339 char[] chars = testString.toCharArray(); 422 "hi" + testString, baos.toString("utf-8")); 443 for (int j = 0; j < testString.length(); j++) { 444 writer.write(testString.charAt(j)); 513 writer.write(testString, 1, testString.length()) [all...] |
/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/webkit/Source/WebCore/bridge/ |
testqtbindings.cpp | 43 Q_PROPERTY(QString testString READ testString WRITE setTestString) 57 QString testString() const { 58 qDebug() << "called testString" << string; 84 "myInterface.testString = \"Hello\";\n" 85 "str = myInterface.testString;\n"
|
/cts/tests/tests/content/src/android/content/cts/ |
ContextTest.java | 47 String testString = mContext.getString(R.string.context_test_string1); 48 assertEquals("This is %s string.", testString); 50 testString = mContext.getString(R.string.context_test_string1, "expected"); 51 assertEquals("This is expected string.", testString); 53 testString = mContext.getString(R.string.context_test_string2); 54 assertEquals("This is test string.", testString); 58 testString = mContext.getString(0, "expected"); 65 testString = mContext.getString(0);
|
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
TestHeteroAST.java | 170 @Test public void testString() throws Exception {
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
StringReaderTest.java | 25 String testString = "This is a test string"; 43 sr = new StringReader(testString); 58 sr = new StringReader(testString); 66 .equals(testString.substring(5, 7))); 75 sr = new StringReader(testString); 84 sr = new StringReader(testString); 96 sr = new StringReader(testString); 97 char[] buf = new char[testString.length()]; 98 int r = sr.read(buf, 0, testString.length()); 99 assertTrue("Failed to read chars", r == testString.length()) [all...] |
/external/icu4c/test/intltest/ |
trnserr.cpp | 59 UnicodeString testString="A quick fox jumped over the lazy dog."; 73 len = testString.length(); 74 stoppedAt = t->transliterate(testString, 0, 100); 77 } else if (testString.length() != len) { 78 testString="A quick fox jumped over the lazy dog."; 81 stoppedAt = t->transliterate(testString, 100, testString.length()-1); 84 else if (testString.length() != len) { 85 testString="A quick fox jumped over the lazy dog."; 89 pos.limit = testString.length() [all...] |
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/ |
OverlayBaseTest.java | 89 public void testString() throws Throwable {
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
URLConnectionTest.java | 65 private static final String testString = "Hello World"; 346 byte[] ba = new byte[testString.getBytes().length]; 353 testString.equals(buf.trim())); 356 BufferedReader r = new BufferedReader(new InputStreamReader(i),testString.getBytes().length); 359 testString.equals(buf.trim())); 394 BufferedReader r = new BufferedReader(new InputStreamReader(helloWorld2),testString.getBytes().length); 396 testString.equals(r.readLine().trim())); 471 assertEquals(testString.getBytes().length, fileURLCon.getContentLength()); [all...] |