HomeSort by relevance Sort by last modified time
    Searched full:assertthrows (Results 276 - 300 of 458) sorted by null

<<111213141516171819

  /external/v8/test/mjsunit/regress/
regress-95920.js 38 assertThrows(function() {
46 assertThrows(function() {
regress-crbug-168545.js 30 assertThrows("new Int16Array(o);");
34 assertThrows("new Int16Array(a);");
regress-crbug-325225.js 36 assertThrows(do1, TypeError);
46 assertThrows(do2, TypeError);
regress-splice-large-index.js 30 assertThrows("a.unshift(1);", RangeError);
38 assertThrows("a.splice(1,1,7,7,7,7,7);", RangeError);
  /external/v8/test/intl/string/
normalization.js 69 assertThrows('"".normalize(1234)', RangeError);
70 assertThrows('"".normalize("BAD")', RangeError);
74 assertThrows('s.normalize()'); // s is not defined
75 assertThrows('var s = null; s.normalize()');
76 assertThrows('var s = undefined; s.normalize()');
77 assertThrows('var s = 1234; s.normalize()'); // no normalize for non-strings
  /external/v8/test/mjsunit/
array-join.js 57 assertThrows("a.join('')");
58 assertThrows("a.join('*')");
59 assertThrows("a.join('**')");
60 assertThrows("a.join('****')");
61 assertThrows("a.join('********')");
62 assertThrows("a.join('**********')");
proto-accessor.js 42 assertThrows(function() {
94 assertThrows(function() {
111 assertThrows(function() { getProto.call(null); }, TypeError);
112 assertThrows(function() { getProto.call(undefined); }, TypeError);
126 assertThrows(function() { setProto.call(null, proto); }, TypeError);
127 assertThrows(function() { setProto.call(undefined, proto); }, TypeError);
object-toprimitive.js 83 assertThrows("Number(ot)", TypeError);
96 assertThrows("String(ot)", TypeError);
106 assertThrows('Number(Symbol())', TypeError);
  /external/v8/test/mjsunit/es6/
object-assign.js 44 assertThrows(function() { return Object.assign(null, null); }, TypeError);
45 assertThrows(function() { return Object.assign(null, {}); }, TypeError);
46 assertThrows(function() { return Object.assign(undefined); }, TypeError);
47 assertThrows(function() { return Object.assign(); }, TypeError);
95 assertThrows(function() { return Object.assign(target, source); }, TypeError);
138 assertThrows(function() { return Object.assign(target, source); }, ErrorB);
collections.js 76 assertThrows(function () { m.set(undefined, 0) }, TypeError);
77 assertThrows(function () { m.set(null, 0) }, TypeError);
78 assertThrows(function () { m.set(0, 0) }, TypeError);
79 assertThrows(function () { m.set('a-key', 0) }, TypeError);
80 assertThrows(function () { m.set(Symbol(), 0) }, TypeError);
249 assertThrows(function() { Set(); }, TypeError);
250 assertThrows(function() { Map(); }, TypeError);
251 assertThrows(function() { WeakMap(); }, TypeError);
252 assertThrows(function() { WeakSet(); }, TypeError);
424 assertThrows(function () { func.call(receivers[k], {}) }, TypeError)
    [all...]
array-copywithin.js 52 assertThrows(function() {
59 assertThrows(function() {
69 // assertThrows(function() {
187 assertThrows(function() {
192 assertThrows(function() {
197 assertThrows(function() {
205 assertThrows(function() {
210 assertThrows(function() {
215 assertThrows(function() {
230 assertThrows(function()
    [all...]
symbols.js 59 assertThrows(function () { Symbol(Symbol()) }, TypeError)
60 assertThrows(function () { new Symbol(66) }, TypeError)
115 assertThrows(function() { new String(symbols[i]) }, TypeError)
117 assertThrows(function() { symbols[i] + "" }, TypeError)
118 assertThrows(function() { String(Object(symbols[i])) }, TypeError)
151 assertThrows(function() { Number(Object(symbols[i])) }, TypeError)
152 assertThrows(function() { +Object(symbols[i]) }, TypeError)
153 assertThrows(function() { Number(symbols[i]) }, TypeError)
154 assertThrows(function() { symbols[i] + 0 }, TypeError)
476 assertThrows(function() { Symbol.keyFor("bla") }, TypeError
    [all...]
generators-debug-liveedit.js 69 assertThrows(function() { patch(generator, "'Cat'", "'Capybara'") },
89 assertThrows(function() { patch(generator, "'Capybara'", "'Tapir'") },
108 assertThrows(function() { patch(fun_outside, "'Cat'", "'Cobra'") },
generators-objects.js 84 assertThrows(function() { iter.next.call(non_generator); }, TypeError);
85 assertThrows(function() { iter.next.call(non_generator, 1); }, TypeError);
86 assertThrows(function() { iter.throw.call(non_generator, 1); }, TypeError);
block-for.js 95 assertThrows("function foo() { 'use strict'; for (let in {}) { } }", SyntaxError);
96 assertThrows("function foo() { 'use strict'; for (let x = 3 in {}) { } }", SyntaxError);
97 assertThrows("function foo() { 'use strict'; for (let x, y in {}) { } }", SyntaxError);
98 assertThrows("function foo() { 'use strict'; for (let x = 3, y in {}) { } }", SyntaxError);
99 assertThrows("function foo() { 'use strict'; for (let x, y = 4 in {}) { } }", SyntaxError);
100 assertThrows("function foo() { 'use strict'; for (let x = 3, y = 4 in {}) { } }", SyntaxError);
  /external/v8/test/mjsunit/es7/
typed-array-includes.js 35 assertThrows(function() {
43 assertThrows(function() {
47 assertThrows(function() {
51 assertThrows(function() {
63 assertThrows(function() {
84 assertThrows(function() {
  /external/v8/test/mjsunit/harmony/
array-species.js 85 assertThrows(() => new MyThrowingArray().map(()=>{}), SpeciesError);
89 assertThrows(() => new MyThrowingArray().map(()=>{}), ConstructorError);
99 assertThrows(() => new FrozenArray([1]).map(()=>0), TypeError);
100 assertThrows(() => new FrozenArray([1]).filter(()=>true), TypeError);
101 assertThrows(() => new FrozenArray([1]).slice(0, 1), TypeError);
102 assertThrows(() => new FrozenArray([1]).splice(0, 1), TypeError);
simd.js 163 assertThrows(function() { Number(Object(instance)) }, TypeError)
164 assertThrows(function() { +Object(instance) }, TypeError)
165 assertThrows(function() { Number(instance) }, TypeError)
166 assertThrows(function() { instance + 0 }, TypeError)
477 assertThrows(f, TypeError);
479 assertThrows(f, TypeError);
480 assertThrows(f, TypeError);
515 assertThrows(function() { set.add(key) });
541 assertThrows(function() { map.set(key, value) });
570 assertThrows(
    [all...]
proxies-bind.js 129 assertThrows(() => Function.prototype.bind.call(new Proxy({}, {})), TypeError);
130 assertThrows(() => Function.prototype.bind.call(new Proxy([], {})), TypeError);
137 assertThrows(() => new result());
reflect-own-keys.js 87 assertThrows(function() { Reflect.ownKeys(4) }, TypeError);
88 assertThrows(function() { Reflect.ownKeys("foo") }, TypeError);
89 assertThrows(function() { Reflect.ownKeys(true) }, TypeError);
block-for-sloppy.js 94 assertThrows("function foo() { 'use strict'; for (let in {}) { } }", SyntaxError);
95 assertThrows("function foo() { 'use strict'; for (let x = 3 in {}) { } }", SyntaxError);
96 assertThrows("function foo() { 'use strict'; for (let x, y in {}) { } }", SyntaxError);
97 assertThrows("function foo() { 'use strict'; for (let x = 3, y in {}) { } }", SyntaxError);
98 assertThrows("function foo() { 'use strict'; for (let x, y = 4 in {}) { } }", SyntaxError);
99 assertThrows("function foo() { 'use strict'; for (let x = 3, y = 4 in {}) { } }", SyntaxError);
  /external/v8/test/mjsunit/strong/
classes.js 13 function assertTypeError(script) { assertThrows(script, TypeError) }
14 function assertSyntaxError(script) { assertThrows(script, SyntaxError) }
15 function assertReferenceError(script) { assertThrows(script, ReferenceError) }
  /external/v8/test/mjsunit/wasm/
stackwalk.js 79 assertThrows(builder(throwadd));
80 assertThrows(builder(throwa));
81 assertThrows(builder(throwstr));
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
EvenMoreAsserts.java 39 public static <T extends Exception> void assertThrows(Class<T> exception, Runnable r) {
40 assertThrows(null, exception, r);
43 public static <T extends Exception> void assertThrows(String message, Class<T> exception,
  /external/v8/test/mjsunit/bugs/
bug-proto.js 41 assertThrows("Realm.eval(realmB, 'x')");
46 assertThrows("y");

Completed in 1542 milliseconds

<<111213141516171819