Home
last modified time | relevance | path

Searched refs:assertTrue (Results 1 – 25 of 2796) sorted by relevance

12345678910>>...112

/external/v8/test/mjsunit/
Darray-natives-elements.js37 assertTrue(%HasFastSmiElements([]));
38 assertTrue(%HasFastSmiElements([1]));
39 assertTrue(%HasFastSmiElements([1,2]));
40 assertTrue(%HasFastDoubleElements([1.1]));
41 assertTrue(%HasFastDoubleElements([1.1,2]));
55 assertTrue(%HasFastSmiElements(a0));
57 assertTrue(%HasFastSmiElements(a0));
59 assertTrue(%HasFastDoubleElements(a0));
61 assertTrue(%HasFastDoubleElements(a0));
63 assertTrue(%HasFastObjectElements(a0));
[all …]
Ddelete.js32 assertTrue(delete null);
33 assertTrue(delete 2);
34 assertTrue(delete 'foo');
35 assertTrue(delete Number(7));
36 assertTrue(delete new Number(8));
38 assertTrue(delete {}.x);
39 assertTrue(delete {}.y);
40 assertTrue(delete {}.toString);
44 assertTrue(delete x);
45 assertTrue(typeof x === 'undefined', "x is gone");
[all …]
Dregexp-multiline.js33 assertTrue(/^bar/.test("bar"));
34 assertTrue(/^bar/.test("bar\nfoo"));
36 assertTrue(/^bar/m.test("bar"));
37 assertTrue(/^bar/m.test("bar\nfoo"));
38 assertTrue(/^bar/m.test("foo\nbar"));
40 assertTrue(/bar$/.test("bar"));
42 assertTrue(/bar$/.test("foo\nbar"));
43 assertTrue(/bar$/m.test("bar"));
44 assertTrue(/bar$/m.test("bar\nfoo"));
45 assertTrue(/bar$/m.test("foo\nbar"));
[all …]
Din.js35 assertTrue('toString' in o, "toString");
39 assertTrue('x' in o);
41 assertTrue('toString' in o, "toString");
45 assertTrue('x' in o);
46 assertTrue('y' in o);
47 assertTrue('toString' in o, "toString");
58 assertTrue('toString' in a, "toString");
61 assertTrue(0 in a);
63 assertTrue('0' in a);
65 assertTrue('toString' in a, "toString");
[all …]
Dregexp.js90 assertTrue(/\ca/.test( "\x01" ));
93 assertTrue(/\c[a/]/.test( "\\ca" ));
94 assertTrue(/\c[a/]/.test( "\\c/" ));
98 assertTrue(re.test("\r"));
105 assertTrue(re.test("c]"));
106 assertTrue(re.test("\\]"));
111 assertTrue(re.test("\x11"));
117 assertTrue(re.test("\x1f"));
124 assertTrue(re.test("\\"));
125 assertTrue(re.test("c"));
[all …]
Dobject-freeze.js41 assertTrue(Object.isFrozen(non_objects[key]));
47 assertTrue(desc.writable);
48 assertTrue(desc.configurable);
52 assertTrue(desc.writable);
53 assertTrue(desc.configurable);
56 assertTrue(Object.isExtensible(obj));
63 assertTrue(Object.isFrozen(obj));
92 assertTrue(desc.configurable);
97 assertTrue(Object.isExtensible(obj2));
100 assertTrue(Object.isFrozen(obj2));
[all …]
Dgenerated-transition-stub.js51 assertTrue(%HasFastSmiElements(a3));
60 assertTrue(%HasFastSmiElements(a4));
72 assertTrue(%HasFastSmiElements(a5) || %HasFastDoubleElements(a5));
89 assertTrue(%HasFastHoleyElements(b2));
93 assertTrue(%HasFastSmiElements(b3));
94 assertTrue(%HasFastHoleyElements(b3));
96 assertTrue(%HasFastHoleyElements(b3));
106 assertTrue(%HasFastSmiElements(b4));
123 assertTrue(%HasFastObjectElements(c2));
124 assertTrue(!%HasFastHoleyElements(c2));
[all …]
Dstrict-equals.js30 assertTrue(null === null);
31 assertTrue(null === n);
32 assertTrue(n === null);
33 assertTrue(n === n);
40 assertTrue(void 0 === void 0);
41 assertTrue(u === u);
42 assertTrue(u === void 0);
43 assertTrue(void 0 === u);
45 assertTrue('foo' === 'foo');
50 assertTrue(s === s);
[all …]
/external/v8/test/mjsunit/regress/
Dregress-674753.js29 assertTrue(typeof 0 == 'number');
30 assertTrue(typeof 0 === 'number');
31 assertTrue(typeof 1.2 == 'number');
32 assertTrue(typeof 1.2 === 'number');
37 assertTrue(typeof 'x' == 'string');
38 assertTrue(typeof 'x' === 'string');
39 assertTrue(typeof ('x' + 'x') == 'string');
40 assertTrue(typeof ('x' + 'x') === 'string');
47 assertTrue(typeof true == 'boolean');
48 assertTrue(typeof true === 'boolean');
[all …]
Dregress-2416.js31 assertTrue(2147483647 >= -2147483648)
32 assertTrue(2147483647 > -2147483648)
34 assertTrue(-2147483648 < 2147483647)
35 assertTrue(-2147483648 <= 2147483647)
41 assertTrue(2147483647 <= 2147483647)
42 assertTrue(2147483647 == 2147483647)
43 assertTrue(2147483647 >= 2147483647)
47 assertTrue(-2147483648 <= -2147483648)
48 assertTrue(-2147483648 == -2147483648)
49 assertTrue(-2147483648 >= -2147483648)
[all …]
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/
DUnixFileTest.java134 assertTrue(testFile.setExecutable(true, false)); in test_canExecute()
135 assertTrue(testFile.canExecute()); in test_canExecute()
136 assertTrue(testFile.setExecutable(true, true)); in test_canExecute()
137 assertTrue(testFile.canExecute()); in test_canExecute()
139 assertTrue(testFile.setExecutable(false, false)); in test_canExecute()
141 assertTrue(testFile.setExecutable(false, true)); in test_canExecute()
144 assertTrue(testFile.setExecutable(true, false)); in test_canExecute()
145 assertTrue(testFile.canExecute()); in test_canExecute()
148 assertTrue(testDir.canExecute()); in test_canExecute()
149 assertTrue(testDir.setExecutable(false, true)); in test_canExecute()
[all …]
/external/smali/smali/src/test/java/
DLongLiteralTest.java37 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0); in SuccessHexTests()
38 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0); in SuccessHexTests()
39 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1); in SuccessHexTests()
40 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseLong("-0x1234567890123456L") == -0x1234567890123456L); in SuccessHexTests()
[all …]
DShortLiteralTest.java39 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0); in SuccessHexTests()
40 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1); in SuccessHexTests()
49 Assert.assertTrue(LiteralTools.parseShort("-0x1234") == -0x1234); in SuccessHexTests()
[all …]
DByteLiteralTest.java39 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0); in SuccessHexTests()
40 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1); in SuccessHexTests()
49 Assert.assertTrue(LiteralTools.parseByte("-0x12") == -0x12); in SuccessHexTests()
[all …]
DIntLiteralTest.java38 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0); in SuccessHexTests()
39 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0); in SuccessHexTests()
40 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseInt("-0x12345678") == -0x12345678); in SuccessHexTests()
[all …]
/external/v8/test/mjsunit/harmony/
Dunicode-escapes-in-regexps.js10 assertTrue(r.test("foo"));
11 assertTrue(r.test("boo"));
64 assertTrue(r.test("fuubar"));
72 assertTrue(r.test("fubar"));
73 assertTrue(r.test("fuubar"));
81 assertTrue(r.test("u"));
82 assertTrue(r.test("{"));
83 assertTrue(r.test("2"));
84 assertTrue(r.test("}"));
98 assertTrue(r.test("firstuxz89second"));
[all …]
Dmodule-linking.js66 assertTrue("v" in R)
67 assertTrue("v" in RR)
68 assertTrue("v" in M)
69 assertTrue("v" in MM)
70 assertTrue("v" in F)
71 assertTrue("v" in G)
72 assertTrue("l" in R)
73 assertTrue("l" in RR)
74 assertTrue("l" in M)
75 assertTrue("l" in MM)
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_ListTest.java45 assertTrue("ListTest - get failed", elem in runTest()
48 assertTrue("ListTest - hashCode failed", hashCode == list.hashCode()); in runTest()
51 assertTrue("ListTest - a) add with index failed--did not insert", list in runTest()
53 assertTrue( in runTest()
56 assertTrue( in runTest()
61 assertTrue("ListTest - a) set failed--did not set", list.get(50) in runTest()
63 assertTrue("ListTest - b) set failed--affected following elements", in runTest()
65 assertTrue("ListTest - c) set failed--affected previous elements", list in runTest()
69 assertTrue("ListTest - a) remove with index failed--did not remove", in runTest()
71 assertTrue( in runTest()
[all …]
/external/v8/test/intl/date-format/
Dresolved-options.js34 assertTrue(resolved.hasOwnProperty('locale'));
36 assertTrue(resolved.hasOwnProperty('numberingSystem'));
38 assertTrue(resolved.hasOwnProperty('calendar'));
40 assertTrue(resolved.hasOwnProperty('timeZone'));
44 assertTrue(resolved.hasOwnProperty('year'));
46 assertTrue(resolved.hasOwnProperty('month'));
48 assertTrue(resolved.hasOwnProperty('day'));
64 assertTrue(resolved.hasOwnProperty('locale'));
65 assertTrue(resolved.hasOwnProperty('numberingSystem'));
66 assertTrue(resolved.hasOwnProperty('calendar'));
[all …]
/external/chromium-trace/catapult/telemetry/third_party/altgraph/altgraph_tests/
Dtest_object_graph.py32 self.assertTrue(isinstance(graph, ObjectGraph))
36 self.assertTrue(graph.graph is g)
57 self.assertTrue(graph.getIdent(graph) is graph)
58 self.assertTrue(graph.getRawIdent(graph) is graph)
64 self.assertTrue(n1 in graph)
66 self.assertTrue("n1" in graph)
69 self.assertTrue(graph.findNode(n1) is n1)
70 self.assertTrue(graph.findNode(n1b) is n1)
71 self.assertTrue(graph.findNode(n2) is n2)
72 self.assertTrue(graph.findNode(n4) is None)
[all …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DXMLFormatterTest.java60 assertTrue(result.indexOf("<message>" + rb.getString("pattern") in testLocalFormat()
62 assertTrue(result.indexOf("<key>pattern</key>") > 0); in testLocalFormat()
66 assertTrue(result.indexOf("<message>" + rb.getString("msg") in testLocalFormat()
68 assertTrue(result.indexOf("<key>msg</key>") > 0); in testLocalFormat()
72 assertTrue(result.indexOf("<message>pattern {0, number}</message>") > 0); in testLocalFormat()
73 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
78 assertTrue(result.indexOf("<message>bad key</message>") > 0); in testLocalFormat()
79 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
96 assertTrue(output.indexOf("<record>") >= 0);
97 assertTrue(output.indexOf("<date>") >= 0);
[all …]
/external/v8/test/mjsunit/es6/
Dclasses-subclass-builtins.js33 assertTrue(s instanceof Object);
34 assertTrue(s instanceof A);
42 assertTrue(%HaveSameMap(s, s1));
46 assertTrue(n instanceof Object);
47 assertTrue(n instanceof A);
55 assertTrue(%HaveSameMap(n, n1));
56 assertTrue(%HaveSameMap(n, s));
60 assertTrue(b instanceof Object);
61 assertTrue(b instanceof A);
69 assertTrue(%HaveSameMap(b, b1));
[all …]
Dstring-includes.js31 assertTrue(reString.includes("[a-z]+"));
32 assertTrue(reString.includes("(asdf)?"));
38 assertTrue(twoByteString.includes("\u039a"), "Lamda");
39 assertTrue(twoByteString.includes("\u0391"), "Alpha");
40 assertTrue(twoByteString.includes("\u03a3"), "First Sigma");
41 assertTrue(twoByteString.includes("\u03a3",3), "Second Sigma");
42 assertTrue(twoByteString.includes("\u0395"), "Epsilon");
46 assertTrue(twoByteString.includes("\u039a\u0391"), "lambda Alpha");
47 assertTrue(twoByteString.includes("\u0391\u03a3"), "Alpha Sigma");
48 assertTrue(twoByteString.includes("\u03a3\u03a3"), "Sigma Sigma");
[all …]
/external/smali/util/src/test/java/org/jf/util/
DNumberUtilsTest.java40 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.23f))); in isLikelyFloatTest()
41 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.0f))); in isLikelyFloatTest()
42 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NaN))); in isLikelyFloatTest()
43 … Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NEGATIVE_INFINITY))); in isLikelyFloatTest()
44 … Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.POSITIVE_INFINITY))); in isLikelyFloatTest()
45 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1e-30f))); in isLikelyFloatTest()
46 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1000f))); in isLikelyFloatTest()
47 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1f))); in isLikelyFloatTest()
48 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(-1f))); in isLikelyFloatTest()
49 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(-5f))); in isLikelyFloatTest()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DHostnameVerifierTest.java32 import static org.junit.Assert.assertTrue;
74 assertTrue(verifier.verify("foo.com", session)); in verifyCn()
107 assertTrue(verifier.verify("\u82b1\u5b50.co.jp", session)); in verifyNonAsciiCn()
142 assertTrue(verifier.verify("bar.com", session)); in verifySubjectAlt()
181 assertTrue(verifier.verify("foo.com", session)); in verifyNonAsciiSubjectAlt()
221 assertTrue(verifier.verify("foo.com", session)); in verifySubjectAltOnly()
223 assertTrue(verifier.verify("foo.com", session)); in verifySubjectAltOnly()
260 assertTrue(verifier.verify("\u82b1\u5b50.co.jp", session)); in verifyMultipleCn()
293 assertTrue(verifier.verify("www.foo.com", session)); in verifyWilcardCn()
294 assertTrue(verifier.verify("\u82b1\u5b50.foo.com", session)); in verifyWilcardCn()
[all …]

12345678910>>...112