/external/v8/test/mjsunit/ |
mul-exhaustive-part3.js | 36 function f(expected, y) { 41 function mulTest(expected, x, y) { 42 assertEquals(expected, x * y); 43 assertEquals(expected, testEval(stringify(x) + " * y", x, y)); 44 assertEquals(expected, testEval("x * " + stringify(y), x, y)); 45 assertEquals(expected, testEval(stringify(x) + " * " + stringify(y), x, y)); 47 mulTest(expected, x, y); 48 mulTest(-expected, -x, y); 49 mulTest(-expected, x, -y); 50 mulTest(expected, -x, -y) [all...] |
mul-exhaustive-part4.js | 36 function f(expected, y) { 41 function mulTest(expected, x, y) { 42 assertEquals(expected, x * y); 43 assertEquals(expected, testEval(stringify(x) + " * y", x, y)); 44 assertEquals(expected, testEval("x * " + stringify(y), x, y)); 45 assertEquals(expected, testEval(stringify(x) + " * " + stringify(y), x, y)); 47 mulTest(expected, x, y); 48 mulTest(-expected, -x, y); 49 mulTest(-expected, x, -y); 50 mulTest(expected, -x, -y) [all...] |
mul-exhaustive-part5.js | 36 function f(expected, y) { 41 function mulTest(expected, x, y) { 42 assertEquals(expected, x * y); 43 assertEquals(expected, testEval(stringify(x) + " * y", x, y)); 44 assertEquals(expected, testEval("x * " + stringify(y), x, y)); 45 assertEquals(expected, testEval(stringify(x) + " * " + stringify(y), x, y)); 47 mulTest(expected, x, y); 48 mulTest(-expected, -x, y); 49 mulTest(-expected, x, -y); 50 mulTest(expected, -x, -y) [all...] |
mul-exhaustive-part6.js | 36 function f(expected, y) { 41 function mulTest(expected, x, y) { 42 assertEquals(expected, x * y); 43 assertEquals(expected, testEval(stringify(x) + " * y", x, y)); 44 assertEquals(expected, testEval("x * " + stringify(y), x, y)); 45 assertEquals(expected, testEval(stringify(x) + " * " + stringify(y), x, y)); 47 mulTest(expected, x, y); 48 mulTest(-expected, -x, y); 49 mulTest(-expected, x, -y); 50 mulTest(expected, -x, -y) [all...] |
mul-exhaustive-part7.js | 36 function f(expected, y) { 41 function mulTest(expected, x, y) { 42 assertEquals(expected, x * y); 43 assertEquals(expected, testEval(stringify(x) + " * y", x, y)); 44 assertEquals(expected, testEval("x * " + stringify(y), x, y)); 45 assertEquals(expected, testEval(stringify(x) + " * " + stringify(y), x, y)); 47 mulTest(expected, x, y); 48 mulTest(-expected, -x, y); 49 mulTest(-expected, x, -y); 50 mulTest(expected, -x, -y) [all...] |
mul-exhaustive-part8.js | 36 function f(expected, y) { 41 function mulTest(expected, x, y) { 42 assertEquals(expected, x * y); 43 assertEquals(expected, testEval(stringify(x) + " * y", x, y)); 44 assertEquals(expected, testEval("x * " + stringify(y), x, y)); 45 assertEquals(expected, testEval(stringify(x) + " * " + stringify(y), x, y)); 47 mulTest(expected, x, y); 48 mulTest(-expected, -x, y); 49 mulTest(-expected, x, -y); 50 mulTest(expected, -x, -y) [all...] |
mul-exhaustive-part9.js | 36 function f(expected, y) { 41 function mulTest(expected, x, y) { 42 assertEquals(expected, x * y); 43 assertEquals(expected, testEval(stringify(x) + " * y", x, y)); 44 assertEquals(expected, testEval("x * " + stringify(y), x, y)); 45 assertEquals(expected, testEval(stringify(x) + " * " + stringify(y), x, y)); 47 mulTest(expected, x, y); 48 mulTest(-expected, -x, y); 49 mulTest(-expected, x, -y); 50 mulTest(expected, -x, -y) [all...] |
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
hc_noderemovechildnode.java | 76 java.util.List expected = new java.util.ArrayList(); local 77 expected.add("strong"); 78 expected.add("code"); 79 expected.add("sup"); 80 expected.add("var"); 81 expected.add("acronym"); 107 assertEqualsAutoCase("element", "childNames", expected, actual);
|
hc_nodereplacechildnewchildexists.java | 74 java.util.List expected = new java.util.ArrayList(); local 75 expected.add("strong"); 76 expected.add("code"); 77 expected.add("sup"); 78 expected.add("var"); 79 expected.add("em"); 104 assertEqualsAutoCase("element", "childNames", expected, actual);
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
SecretKeyFactoryTest.java | 56 } catch (InvalidKeySpecException expected) { 62 } catch (InvalidKeySpecException expected) { 68 } catch (InvalidKeySpecException expected) { 77 } catch (InvalidKeySpecException expected) { 83 } catch (InvalidKeySpecException expected) { 89 } catch (InvalidKeySpecException expected) { 96 } catch (IllegalArgumentException expected) { 103 } catch (IllegalArgumentException expected) { 111 byte[] expected = new byte[] { 117 test_PBKDF2_UTF8(PASSWORD, SALT, ITERATIONS, KEY_LENGTH, expected); [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
CycleDetectingLockFactoryTest.java | 112 fail("Expected PotentialDeadlockException"); 113 } catch (PotentialDeadlockException expected) { 114 checkMessage(expected, "LockB -> LockA", "LockA -> LockB"); 115 firstException = expected; 121 fail("Expected PotentialDeadlockException"); 122 } catch (PotentialDeadlockException expected) { 123 checkMessage(expected, "LockB -> LockA", "LockA -> LockB"); 125 assertSame(firstException.getCause(), expected.getCause()); 149 fail("Expected PotentialDeadlockException"); 150 } catch (PotentialDeadlockException expected) { [all...] |
/cts/tests/tests/text/src/android/text/format/cts/ |
TimeTest.java | 150 // expected 159 } catch (NullPointerException expected) { 165 } catch (NullPointerException expected) { 178 } catch (TimeFormatException expected) { 192 } catch (TimeFormatException expected) { 363 Time expected = new Time(tz); local 364 Fields.setDateTime(expected, test.year2, test.month2, test.day2, test.hour2, 367 Fields.MAIN_DATE_TIME, expected, local); 376 expected = new Time(tz); 377 Fields.setDateTime(expected, test.year2, test.month2, test.day2, test.hour2 394 Time expected = new Time(tz); local 545 Time expected = new Time(tz); local 616 Time expected = new Time(Time.TIMEZONE_UTC); local 1161 String expected = t.format("%Y%m%dT%H%M%SZ"); local 1576 Time expected = new Time(nonUtcTz); local 1596 Time expected = new Time(Time.TIMEZONE_UTC); local 1605 Time expected = new Time(nonUtcTz); local 1664 Time expected = new Time(tz); local 1747 Time expected = new Time(tz); local 1769 Time expected = new Time(tz); local 1788 Time expected = new Time(tz); local 1952 Time expected = new Time(Time.TIMEZONE_UTC); local 2009 Time expected = new Time(PstPdt.ID); local 2103 Time expected = new Time(timezone); local 2252 Time expected = new Time(PstPdt.ID); local 2412 Time expected = new Time(timezone); local 2473 Time expected = new Time(timezone); local 2524 Time expected = new Time(timezone); local 2575 Time expected = new Time(timezone); local 2663 Time expected = new Time(timezone); local 2685 Time expected = new Time(Time.TIMEZONE_UTC); local 2713 Time expected = new Time(unknownTimezoneId); local [all...] |
/cts/tests/tests/accounts/src/android/accounts/cts/ |
AccountManagerUnaffiliatedAuthenticatorTests.java | 78 fail("Expected to just barf if the caller doesn't share a signature."); 79 } catch (SecurityException expected) {} 90 } catch (SecurityException expected) { 102 } catch (SecurityException expected) {} 112 } catch (SecurityException expected) {} 123 } catch (SecurityException expected) {} 131 } catch (SecurityException expected) {} 139 } catch (SecurityException expected) {} 148 } catch (SecurityException expected) {} 156 } catch (SecurityException expected) {} [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
IntentTest.java | 116 final CharSequence expected = "CharSequencetest"; local 117 mIntent.putExtra(TEST_EXTRA_NAME, expected); 118 assertEquals(expected, mIntent.getCharSequenceExtra(TEST_EXTRA_NAME)); 142 final ArrayList<Intent> expected = new ArrayList<Intent>(); local 144 expected.add(intent); 146 mIntent.putParcelableArrayListExtra(TEST_EXTRA_NAME, expected); 148 assertEquals(expected.size(), target.size()); 149 assertEquals(expected, target); 169 final ArrayList<Integer> expected = new ArrayList<Integer>(); local 170 expected.add(0) 183 final int[] expected = { 1, 2, 3 }; local 201 final int expected = 0; local 210 final ArrayList<Integer> expected = new ArrayList<Integer>(); local 223 final Bundle expected = new Bundle(); local 232 final char[] expected = { 'a', 'b', 'c' }; local 242 final double[] expected = { 1d, 2d }; local 248 final ArrayList<String> expected = new ArrayList<String>(); local 296 final long[] expected = { 1l, 2l, 3l }; local 390 final char expected = 'a'; local 396 final Short expected = Short.valueOf("2"); local 404 final int expected = 2; local 411 final long expected = 2l; local 418 final float expected = 2f; local 425 final double expected = 2d; local 432 final String expected = "testString"; local 439 final CharSequence expected = "testString"; local 446 final Intent expected = new Intent(TEST_ACTION); local 452 final Intent[] expected = { new Intent(TEST_ACTION), new Intent(mContext, MockActivity.class) }; local 458 final TestSerializable expected = new TestSerializable(); local 479 final short[] expected = { 1, 2, 3 }; local 485 final char[] expected = { '1', '2', '3' }; local 491 final int[] expected = { 1, 2, 3 }; local 497 final long[] expected = { 1l, 2l, 3l }; local 503 final float[] expected = { 1f, 2f, 3f }; local 509 final double[] expected = { 1d, 2d, 3d }; local 515 final String[] expected = { "1d", "2d", "3d" }; local 521 final Bundle expected = new Bundle(); local 529 final IBinder expected = ServiceManager.getService("activity"); local 541 ArrayList<Intent> expected = new ArrayList<Intent>(); local 559 final ArrayList<String> expected = new ArrayList<String>(); local 566 final ArrayList<CharSequence> expected = new ArrayList<CharSequence>(); local 583 final Intent expected = new Intent(TEST_ACTION); local 595 int expected = 0; local 602 final int expected = 0; local 610 final Short expected = Short.valueOf("2"); local 637 final double expected = 2d; local 709 final Intent[] expected = { new Intent(TEST_ACTION), new Intent(mContext, MockActivity.class) }; local 763 final char expected = 'b'; local 1257 int expected = 1; local 1275 final float[] expected = { 1f, 2f, 3f }; local 1309 final String expected = "testString"; local 1560 final String expected = "testString"; local 1575 float expected = 2f; local 1582 final short[] expected = { 1, 2, 3 }; local 1588 final String[] expected = { "1d", "2d", "3d" }; local 1594 final String[] expected = { "1d", "2d", "3d" }; local 1621 final long expected = 2l; local 1700 String expected = "testString"; local 1716 TestSerializable expected = new TestSerializable(); local [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
TestLocaleNamePackaging.java | 84 String[] expected = LocaleDisplayNamesImpl.haveData(REGION) ? local 92 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 93 if (n == expected.length) { 105 assertEquals(targetLocale + " in " + displayJavaLocale, expected[n++], result); 106 if (n == expected.length) { 149 String[] expected = LocaleDisplayNamesImpl.haveData(LANG) ? local 157 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 158 if (n == expected.length) { 170 assertEquals(targetLocale + " in " + displayJavaLocale, expected[n++], result); 171 if (n == expected.length) 191 String[] expected = LocaleDisplayNamesImpl.haveData(LANG) ? local [all...] |
/external/icu/icu4j/main/tests/packaging/src/com/ibm/icu/dev/test/ |
TestLocaleNamePackaging.java | 80 String[] expected = LocaleDisplayNamesImpl.haveData(REGION) ? local 88 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 89 if (n == expected.length) { 101 assertEquals(targetLocale + " in " + displayJavaLocale, expected[n++], result); 102 if (n == expected.length) { 145 String[] expected = LocaleDisplayNamesImpl.haveData(LANG) ? local 153 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 154 if (n == expected.length) { 166 assertEquals(targetLocale + " in " + displayJavaLocale, expected[n++], result); 167 if (n == expected.length) 187 String[] expected = LocaleDisplayNamesImpl.haveData(LANG) ? local [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
MultipartBuilderTest.java | 28 @Test(expected = IllegalStateException.class) 34 String expected = "" local 51 assertEquals(expected, buffer.readUtf8()); 55 String expected = "" local 82 assertEquals(expected, buffer.readUtf8()); 86 String expected = "" local 139 assertEquals(expected, buffer.readUtf8()); 143 String expected = "" local 178 assertEquals(expected, buffer.readUtf8()); 198 String expected = " local [all...] |
/external/jemalloc/test/unit/ |
hash.c | 71 uint32_t computed, expected; local 127 case hash_variant_x86_32: expected = 0x6213303eU; break; 128 case hash_variant_x86_128: expected = 0x266820caU; break; 129 case hash_variant_x64_128: expected = 0xcc622b6fU; break; 131 case hash_variant_x86_32: expected = 0xb0f57ee3U; break; 132 case hash_variant_x86_128: expected = 0xb3ece62aU; break; 133 case hash_variant_x64_128: expected = 0x6384ba69U; break; 138 assert_u32_eq(computed, expected, 139 "Hash mismatch for %s(): expected %#x but got %#x", 140 hash_variant_string(variant), expected, computed) [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
ArraysTest.java | 41 } catch (NullPointerException expected) { 47 } catch (NullPointerException expected) { 68 } catch (NullPointerException expected) { 74 } catch (NullPointerException expected) { 95 } catch (NullPointerException expected) { 101 } catch (NullPointerException expected) { 122 } catch (NullPointerException expected) { 128 } catch (NullPointerException expected) { 149 } catch (NullPointerException expected) { 155 } catch (NullPointerException expected) { [all...] |
/libcore/ojluni/src/main/java/sun/net/www/http/ |
KeepAliveStream.java | 56 public KeepAliveStream(InputStream is, ProgressSource pi, long expected, HttpClient hc) { 57 super(is, pi, expected); 83 if (expected > count) { 84 long nskip = (long) (expected - count); 91 } else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) { 131 if (closed || count >= expected) { 133 } else if (in.available() < (expected - count)) { 140 int size = (int) (expected - count); 200 return expected - count;
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
HelpersTest.java | 43 final File expected = new File(getContext().getFilesDir(), "file.mp4"); local 47 assertEquals(expected.getAbsolutePath(), actual); 64 final File expected = new File(getContext().getFilesDir(), "file.mp4"); local 68 assertEquals(expected.getAbsolutePath(), actual); 72 final File expected = new File(getContext().getFilesDir(), "meow"); local 73 final String hint = Uri.fromFile(expected).toString(); 78 assertEquals(expected.getAbsolutePath(), actual); 82 final File expected = new File(getContext().getFilesDir(), "real.mp4"); local 86 assertEquals(expected.getAbsolutePath(), actual);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_dis.py | 87 def do_disassembly_test(self, func, expected): 97 expected = expected.split("\n") 99 if expected != lines: 102 "\n".join(difflib.ndiff(expected, 138 expected = _BIG_LINENO_FORMAT % (i + 2) 139 self.do_disassembly_test(func(i), expected) 143 expected = _BIG_LINENO_FORMAT % (i + 2) 144 self.do_disassembly_test(func(i), expected)
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_dis.py | 87 def do_disassembly_test(self, func, expected): 97 expected = expected.split("\n") 99 if expected != lines: 102 "\n".join(difflib.ndiff(expected, 138 expected = _BIG_LINENO_FORMAT % (i + 2) 139 self.do_disassembly_test(func(i), expected) 143 expected = _BIG_LINENO_FORMAT % (i + 2) 144 self.do_disassembly_test(func(i), expected)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_dis.py | 87 def do_disassembly_test(self, func, expected): 97 expected = expected.split("\n") 99 if expected != lines: 102 "\n".join(difflib.ndiff(expected, 138 expected = _BIG_LINENO_FORMAT % (i + 2) 139 self.do_disassembly_test(func(i), expected) 143 expected = _BIG_LINENO_FORMAT % (i + 2) 144 self.do_disassembly_test(func(i), expected)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_dis.py | 87 def do_disassembly_test(self, func, expected): 97 expected = expected.split("\n") 99 if expected != lines: 102 "\n".join(difflib.ndiff(expected, 138 expected = _BIG_LINENO_FORMAT % (i + 2) 139 self.do_disassembly_test(func(i), expected) 143 expected = _BIG_LINENO_FORMAT % (i + 2) 144 self.do_disassembly_test(func(i), expected)
|