Searched defs:assertEquals (Results 1 - 25 of 41) sorted by relevance

12

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-crbug-349079.js7 function assertEquals(expected, found) { function
10 %NeverOptimizeFunction(assertEquals);
16 assertEquals(b, Math.max(b++, c++));
17 assertEquals(c, Math.min(b++, c++));
18 assertEquals(b, Math.max(b++, a++));
H A Dregress-put-prototype-transition.js8 assertSame = function assertSame(expected, found, name_opt) { if (found === expected) { if (expected !== 0 || (1 / expected) == (1 / found)) return; } else if ((expected !== expected) && (found !== found)) { return; } fail(PrettyPrint(expected), found, name_opt); }; assertEquals = function assertEquals(expected, found, name_opt) { if (!deepEquals(found, expected)) { fail(PrettyPrint(expected), found, name_opt); } }; function
9 assertEqualsDelta = function assertEqualsDelta(expected, found, delta, name_opt) { assertTrue(Math.abs(expected - found) <= delta, name_opt); }; assertArrayEquals = function assertArrayEquals(expected, found, name_opt) { var start = ""; if (name_opt) { start = name_opt + " - "; } assertEquals(expected.length, found.length, start + "array length"); if (expected.length == found.length) { for (var i = 0; i < expected.length; ++i) { assertEquals(expected[i], found[i], start + "array element at index " + i); } } };
10 assertTrue = function assertTrue(value, name_opt) { assertEquals(true, value, name_opt); };
11 assertFalse = function assertFalse(value, name_opt) { assertEquals(false, value, name_opt); };
H A Dregress-347914.js11 var assertEquals; variable
33 assertSame = function assertSame(expected, found, name_opt) { if (found === expected) { if (expected !== 0 || (1 / expected) == (1 / found)) return; } else if ((expected !== expected) && (found !== found)) { return; } fail(PrettyPrint(expected), found, name_opt); }; assertEquals = function assertEquals(expected, found, name_opt) { if (!deepEquals(found, expected)) { fail(PrettyPrint(expected), found, name_opt); } }; function
34 assertEqualsDelta = function assertEqualsDelta(expected, found, delta, name_opt) { assertTrue(Math.abs(expected - found) <= delta, name_opt); }; assertArrayEquals = function assertArrayEquals(expected, found, name_opt) { var start = ""; if (name_opt) { start = name_opt + " - "; } assertEquals(expected.length, found.length, start + "array length"); if (expected.length == found.length) { for (var i = 0; i < expected.length; ++i) { assertEquals(expected[i], found[i], start + "array element at index " + i); } } };
37 assertTrue = function assertTrue(value, name_opt) { assertEquals(true, value, name_opt); };
38 assertFalse = function assertFalse(value, name_opt) { assertEquals(false, value, name_opt); };
42 as1sertThrows = function assertThrows(code, type_opt, cause_opt) { var threwException = true; try { if (typeof code == 'function') { code(); } else { eval(code); } threwException = false; } catch (e) { if (typeof type_opt == 'function') { assertInstanceof(e, type_opt); } if (arguments.length >= 3) { assertEquals(e.type, cause_opt); } return; } };
64 assertEquals('fisk', __v_0);
66 assertEquals('fis
[all...]
H A Dregress-410912.js18 assertSame = function assertSame(expected, found, name_opt) { if (found === expected) { if (expected !== 0 || (1 / expected) == (1 / found)) return; } else if ((expected !== expected) && (found !== found)) { return; } fail(PrettyPrint(expected), found, name_opt); }; assertEquals = function assertEquals(expected, found, name_opt) { if (!deepEquals(found, expected)) { fail(PrettyPrint(expected), found, name_opt); } }; function
20 assertArrayEquals = function assertArrayEquals(expected, found, name_opt) { var start = ""; if (name_opt) { start = name_opt + " - "; } assertEquals(expected.length, found.length, start + "array length"); if (expected.length == found.length) { for (var i = 0; i < expected.length; ++i) { assertEquals(expected[i], found[i], start + "array element at index " + i); } } };
23 assertTrue = function assertTrue(value, name_opt) { assertEquals(true, value, name_opt); };
24 assertFalse = function assertFalse(value, name_opt) { assertEquals(false, value, name_opt); };
46 assertEquals(undefined, __v_1.a);
61 assertEquals(~12, __f_5(12.45));
62 assertEquals(~46, __f_5(42.87));
71 assertEquals(1
[all...]
/external/chromium_org/v8/test/intl/
H A Dassert.js105 function assertEquals(expected, found) { function
116 assertEquals(true, value)
124 assertEquals(false, value);
145 assertEquals(e.type, cause_opt);
/external/chromium_org/v8/test/mjsunit/
H A Dstring-replace.js35 assertEquals(result, subject.replace(pattern, replacement), name);
125 assertEquals(3, arguments.length, "replace('x',func) func-args");
126 assertEquals("x", m, "replace('x',func(m,..))");
127 assertEquals(0, i, "replace('x',func(..,i,..))");
128 assertEquals(short, s, "replace('x',func(..,s))");
131 assertEquals(1, ctr, "replace('x',func) num-match");
135 assertEquals(3, arguments.length, "replace(/x/,func) func-args");
136 assertEquals("x", m, "replace(/x/,func(m,..))");
137 assertEquals(0, i, "replace(/x/,func(..,i,..))");
138 assertEquals(shor
[all...]
H A Dgetters-on-elements.js55 assertEquals = function(expected, val) {
94 assertEquals(0, calls);
97 assertEquals(1, calls);
100 assertEquals(2, calls);
117 assertEquals(0, calls);
125 assertEquals(3, calls);
146 assertEquals(1, calls);
162 assertEquals(0, calls);
167 assertEquals(1, calls);
220 assertEquals(
53 assertEquals = function(expected, val) { function
[all...]
H A Dsetters-on-elements.js48 assertEquals = function(expected, val) {
87 assertEquals(0, calls);
90 assertEquals(1, calls);
93 assertEquals(2, calls);
112 assertEquals(3, calls);
128 assertEquals(0, calls);
136 assertEquals(3, calls);
157 assertEquals(1, calls);
173 assertEquals(0, calls);
178 assertEquals(
46 assertEquals = function(expected, val) { function
[all...]
H A Dmjsunit.js48 // For known primitive values, please use assertEquals.
55 var assertEquals; variable
83 // please just use assertEquals(null, expected).
255 assertEquals = function assertEquals(expected, found, name_opt) {
256 checkArity(arguments, 2, "assertEquals");
275 assertEquals(expected.length, found.length, start + "array length");
278 assertEquals(expected[i], found[i],
303 assertEquals(true, value, name_opt);
308 assertEquals(fals
252 assertEquals = function assertEquals(expected, found, name_opt) { function
[all...]
/external/chromium_org/chrome/test/chromedriver/js/
H A Dtest.js18 function assertEquals(x, y) { function
/external/chromium_org/tools/telemetry/telemetry/results/
H A Dbase_test_results_unittest.py31 def assertEquals(self, ex, res): member in class:BaseTestResultsUnittest
66 super(BaseTestResultsUnittest, self).assertEquals(ex, res)
/external/chromium_org/ui/webui/resources/js/
H A Dwebui_resource_test.js12 function assertEquals(expected, observed, opt_message) { function
29 assertEquals(true, observed, opt_message);
39 assertEquals(false, observed, opt_message);
114 assertEquals(expected, observed, opt_message);
/external/guava/guava-tests/test/com/google/common/io/
H A DLittleEndianDataOutputStreamTest.java66 assertEquals(-100, b[0]);
67 assertEquals(100, b[1]);
68 assertEquals(true, in.readBoolean());
69 assertEquals(false, in.readBoolean());
70 assertEquals(100, in.readByte());
71 assertEquals(-100, in.readByte());
72 assertEquals(200, in.readUnsignedByte());
73 assertEquals('\u6100', in.readChar());
74 assertEquals(-12150, in.readShort());
75 assertEquals(2067
145 private static void assertEquals(byte[] expected, byte[] actual) { method in class:LittleEndianDataOutputStreamTest
[all...]
/external/apache-harmony/support/src/test/java/tests/util/
H A DSerializationTester.java102 public static boolean assertEquals(Object inputObject) throws Exception { method in class:SerializationTester
/external/chromium_org/content/test/data/media/
H A Dwebrtc_test_utilities.js92 assertEquals(expected_width, width);
93 assertEquals(expected_height, height);
202 function assertEquals(expected, actual) { function
/external/chromium_org/v8/test/mjsunit/harmony/
H A Dproxies-function.js55 assertEquals(42, callTrap(5, 37))
68 assertEquals(42, f(11, 31))
71 assertEquals(42, o.f(10, 32))
74 assertEquals(42, o["f"](9, 33))
77 assertEquals(42, (1, o).f(8, 34))
80 assertEquals(42, (1, o)["f"](7, 35))
83 assertEquals(42, f.call(o, 32, 10))
86 assertEquals(42, f.call(undefined, 33, 9))
89 assertEquals(42, f.call(null, 33, 9))
92 assertEquals(4
[all...]
/external/junit/src/junit/framework/
H A DAssert.java62 static public void assertEquals(String message, Object expected, Object actual) { method in class:Assert
73 static public void assertEquals(Object expected, Object actual) { method in class:Assert
74 assertEquals(null, expected, actual);
79 static public void assertEquals(String message, String expected, String actual) { method in class:Assert
90 static public void assertEquals(String expected, String actual) { method in class:Assert
91 assertEquals(null, expected, actual);
98 static public void assertEquals(String message, double expected, double actual, double delta) { method in class:Assert
108 static public void assertEquals(double expected, double actual, double delta) { method in class:Assert
109 assertEquals(null, expected, actual, delta);
116 static public void assertEquals(Strin method in class:Assert
126 static public void assertEquals(float expected, float actual, float delta) { method in class:Assert
133 static public void assertEquals(String message, long expected, long actual) { method in class:Assert
139 static public void assertEquals(long expected, long actual) { method in class:Assert
146 static public void assertEquals(String message, boolean expected, boolean actual) { method in class:Assert
152 static public void assertEquals(boolean expected, boolean actual) { method in class:Assert
159 static public void assertEquals(String message, byte expected, byte actual) { method in class:Assert
165 static public void assertEquals(byte expected, byte actual) { method in class:Assert
172 static public void assertEquals(String message, char expected, char actual) { method in class:Assert
178 static public void assertEquals(char expected, char actual) { method in class:Assert
185 static public void assertEquals(String message, short expected, short actual) { method in class:Assert
191 static public void assertEquals(short expected, short actual) { method in class:Assert
198 static public void assertEquals(String message, int expected, int actual) { method in class:Assert
204 static public void assertEquals(int expected, int actual) { method in class:Assert
[all...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
H A DTestUtil.java16 public static void assertEquals(Collection<?> expected, Collection<?> actual) { method in class:TestUtil
17 org.junit.Assert.assertEquals(stringify(expected), stringify(actual));
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Davailability_finder_test.py193 def assertEquals(found, channel_info, actual, scheduled=None): function in function:AvailabilityFinderTest.testGetAPINodeAvailability
196 self.assertEquals(lookup_result(found, None), actual)
198 self.assertEquals(lookup_result(found, AvailabilityInfo(channel_info,
210 assertEquals(True, self._branch_utility.GetChannelInfo('master'),
212 assertEquals(True, self._branch_utility.GetChannelInfo('dev'),
215 assertEquals(True, self._branch_utility.GetChannelInfo('dev'),
218 assertEquals(True, self._branch_utility.GetChannelInfo('beta'),
220 assertEquals(True, self._branch_utility.GetChannelInfo('beta'),
223 assertEquals(True, self._branch_utility.GetChannelInfo('stable'),
226 assertEquals(Tru
[all...]
H A Djsc_view_test.py95 self.assertEquals('1,234,567', _FormatValue(1234567))
96 self.assertEquals('67', _FormatValue(67))
97 self.assertEquals('234,567', _FormatValue(234567))
129 self.assertEquals('type-TypeA', dict_['types'][0]['id'])
130 self.assertEquals('property-TypeA-b',
132 self.assertEquals('method-get', dict_['functions'][0]['id'])
133 self.assertEquals('event-EventA', dict_['events'][0]['id'])
147 self.assertEquals(expected_json, dict_)
161 self.assertEquals('add_rules_tester', dict_['name'])
162 self.assertEquals('rule
347 def assertEquals(node, actual): function in function:JSCViewWithNodeAvailabilityTest.testGetAPINodeAvailability
[all...]
/external/junit/src/org/junit/
H A DAssert.java13 * <code>Assert.assertEquals(...)</code>, however, they read better if they
19 * assertEquals(...);
117 static public void assertEquals(String message, Object expected, method in class:Assert
146 static public void assertEquals(Object expected, Object actual) { method in class:Assert
147 assertEquals(null, expected, actual);
424 * <code>assertEquals(Double.NaN, Double.NaN, *)</code> passes
438 static public void assertEquals(String message, double expected, method in class:Assert
455 static public void assertEquals(long expected, long actual) { method in class:Assert
456 assertEquals(null, expected, actual);
471 static public void assertEquals(Strin method in class:Assert
481 static public void assertEquals(double expected, double actual) { method in class:Assert
491 static public void assertEquals(String message, double expected, method in class:Assert
511 static public void assertEquals(double expected, double actual, double delta) { method in class:Assert
688 public static void assertEquals(String message, Object[] expecteds, method in class:Assert
708 public static void assertEquals(Object[] expecteds, Object[] actuals) { method in class:Assert
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/
H A DJDWPTestCase.java319 assertEquals("Invalid number of classes for reference type: "
328 assertEquals("", JDWPConstants.TypeTag.CLASS, refTypeTag);
493 assertEquals(
682 protected void assertEquals(String message, long expected, long actual, method in class:JDWPTestCase
/external/chromium_org/third_party/skia/src/core/
H A DSkFloat.h64 void assertEquals(float f, int tolerance = 0) function in class:SkFloat
/external/skia/src/core/
H A DSkFloat.h64 void assertEquals(float f, int tolerance = 0) function in class:SkFloat
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dcintltst.c687 U_CFUNC UBool assertEquals(const char* message, const char* expected, function

Completed in 696 milliseconds

12