HomeSort by relevance Sort by last modified time
    Searched full:prototype (Results 1 - 25 of 3539) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/v8/test/webkit/fast/js/kde/
inbuilt_function_proto.js 25 shouldBe("Object.prototype.toString.__proto__","Function.prototype");
26 shouldBe("Object.prototype.valueOf.__proto__","Function.prototype");
27 shouldBe("Array.prototype.toString.__proto__","Function.prototype");
28 shouldBe("Array.prototype.toLocaleString.__proto__","Function.prototype");
29 shouldBe("Array.prototype.concat.__proto__","Function.prototype");
    [all...]
inbuilt_function_proto-expected.txt 29 PASS Object.prototype.toString.__proto__ is Function.prototype
30 PASS Object.prototype.valueOf.__proto__ is Function.prototype
31 PASS Array.prototype.toString.__proto__ is Function.prototype
32 PASS Array.prototype.toLocaleString.__proto__ is Function.prototype
33 PASS Array.prototype.concat.__proto__ is Function.prototype
    [all...]
prototype_proto.js 25 shouldBe("Object.prototype.__proto__ == Object.prototype","false");
26 shouldBe("Function.prototype.__proto__","Object.prototype");
27 shouldBe("Array.prototype.__proto__","Object.prototype");
28 shouldBe("String.prototype.__proto__","Object.prototype");
29 shouldBe("Boolean.prototype.__proto__","Object.prototype");
    [all...]
prototype_length.js 25 shouldBe("Object.prototype.length","undefined");
26 shouldBe("Function.prototype.length","0");
27 shouldBe("Array.prototype.length","0");
28 shouldBe("String.prototype.length","0");
29 shouldBe("Boolean.prototype.length","undefined");
30 shouldBe("Number.prototype.length","undefined");
31 shouldBe("Date.prototype.length","undefined");
32 shouldBe("RegExp.prototype.length","undefined");
33 shouldBe("Error.prototype.length","undefined");
36 Array.prototype.length = 6
    [all...]
object_prototype.js 25 // Object.prototype.hasOwnProperty
32 MyClass.prototype = { x : 1 };
48 // Object.prototype.isPrototypeOf
54 Class1.prototype = new Object();
55 Class1.prototype.hasClass1 = true;
56 Class2.prototype = new Class1();
57 Class2.prototype.hasClass2 = true;
58 Class3.prototype = new Class2();
59 Class3.prototype.hasClass3 = true;
66 shouldBe("Class1.prototype.isPrototypeOf(obj)","true")
    [all...]
  /external/chromium-trace/catapult/third_party/polymer/components/core-focusable/
polymer-mixin.js 1 Polymer.mixin2 = function(prototype, mixin) {
3 // adds a single mixin to prototype
6 prototype.publish = prototype.publish || {};
7 Polymer.mixin(prototype.publish, mixin.mixinPublish);
11 prototype.eventDelegates = prototype.eventDelegates || {};
13 if (!prototype.eventDelegates[e]) {
14 prototype.eventDelegates[e] = mixin.mixinDelegates[e];
20 prototype.observe = prototype.observe || {}
    [all...]
  /external/v8/test/mjsunit/
function-call.js 30 [Object.prototype.toLocaleString,
31 Object.prototype.valueOf,
32 Object.prototype.hasOwnProperty,
33 Object.prototype.isPrototypeOf,
34 Object.prototype.propertyIsEnumerable,
35 Array.prototype.concat,
36 Array.prototype.join,
37 Array.prototype.pop,
38 Array.prototype.push,
39 Array.prototype.reverse
    [all...]
length.js 32 assertEquals(0, Array.prototype.length, "Array.prototype.length");
34 assertEquals(1, Array.prototype.concat.length, "Array.prototype.concat.length");
35 assertEquals(1, Array.prototype.join.length, "Array.prototype.join.length");
36 assertEquals(1, Array.prototype.push.length, "Array.prototype.push.length");
37 assertEquals(1, Array.prototype.unshift.length, "Array.prototype.unshift.length")
    [all...]
  /external/v8/test/mjsunit/regress/
regress-builtinbust-6.js 9 Array.prototype.join.call(v);
10 Array.prototype.pop.call(v);
11 Array.prototype.push.call(v);
12 Array.prototype.reverse.call(v);
13 Array.prototype.shift.call(v);
14 Array.prototype.slice.call(v);
15 Array.prototype.splice.call(v);
16 Array.prototype.unshift.call(v);
23 Object.defineProperty(Number.prototype, "length", { get:length, set:length });
24 Object.defineProperty(Number.prototype, "0", { get:element, set:element })
    [all...]
regress-3334.js 6 Object.defineProperty(foo, "prototype", { value: 2 });
7 assertEquals(2, foo.prototype);
10 Object.defineProperty(bar, "prototype", { value: 2, writable: false });
11 assertEquals(2, bar.prototype);
12 assertThrows(function() { "use strict"; bar.prototype = 10; }, TypeError);
13 assertEquals(false, Object.getOwnPropertyDescriptor(bar,"prototype").writable);
regress-3462.js 9 o.prototype = 42;
10 assertEquals(42, o.prototype);
11 assertTrue(o.hasOwnProperty('prototype'));
18 var fp = f.prototype;
19 Number.prototype.__proto__ = f;
22 n.prototype = o;
23 assertEquals(fp, n.prototype);
24 assertEquals(fp, f.prototype);
25 assertFalse(Number.prototype.hasOwnProperty('prototype'));
    [all...]
regress-crbug-571064.js 7 Array.prototype.__proto__ = null;
8 var func = Array.prototype.push;
9 var prototype = Array.prototype;
14 CallFunc(prototype);
regress-1530.js 28 // Test that redefining the 'prototype' property of a function object
34 // Verify that normal assignment of 'prototype' property works properly
37 f.prototype = a;
38 assertSame(f.prototype, a);
39 assertSame(f.prototype.foo, 'bar');
42 assertSame(Object.getOwnPropertyDescriptor(f, 'prototype').value, a);
43 assertTrue(Object.getOwnPropertyDescriptor(f, 'prototype').writable);
45 // Verify that 'prototype' behaves like a data property when it comes to
49 Object.defineProperty(f, 'prototype', { value: b, writable: true });
50 assertSame(f.prototype, b)
    [all...]
  /external/v8/test/mjsunit/es6/
string-html.js 12 assertEquals(String.prototype.anchor.call(0x2A, 0x2A), '<a name="42">42</a>');
14 String.prototype.anchor.call(undefined);
17 String.prototype.anchor.call(null);
19 assertEquals(String.prototype.anchor.length, 1);
23 assertEquals(String.prototype.big.call(0x2A), '<big>42</big>');
25 String.prototype.big.call(undefined);
28 String.prototype.big.call(null);
30 assertEquals(String.prototype.big.length, 0);
34 assertEquals(String.prototype.blink.call(0x2A), '<blink>42</blink>');
36 String.prototype.blink.call(undefined)
    [all...]
built-in-accessor-names.js 21 assertGetterName('get byteLength', ArrayBuffer.prototype, 'byteLength');
22 assertGetterName('get size', Set.prototype, 'size');
23 assertGetterName('get size', Map.prototype, 'size');
28 assertGetterName('get buffer', TypedArray.prototype, 'buffer');
29 assertGetterName('get byteOffset', TypedArray.prototype, 'byteOffset');
30 assertGetterName('get byteLength', TypedArray.prototype, 'byteLength');
31 assertGetterName('get length', TypedArray.prototype, 'length');
32 assertGetterName('get [Symbol.toStringTag]', TypedArray.prototype, Symbol.toStringTag);
35 assertGetterName('get buffer', DataView.prototype, 'buffer');
36 assertGetterName('get byteOffset', DataView.prototype, 'byteOffset')
    [all...]
  /external/v8/test/webkit/
class-syntax-prototype-expected.txt 6 PASS class A {}; descriptor(A, "prototype").writable is false
7 PASS class A {}; var x = A.prototype; A.prototype = 3; A.prototype is x
8 PASS class A {}; descriptor(A, "prototype").enumerable is false
10 PASS class A {}; enumeratedProperties(A).includes("prototype") is false
11 PASS class A {}; descriptor(A, "prototype").configurable is false
12 PASS class A {}; Object.defineProperty(A, "prototype", {value: "foo"}) threw exception TypeError: Cannot redefine property: prototype.
26 PASS class A { foo() {} }; descriptor(A.prototype, "foo").writable is tru
    [all...]
prototypes.js 28 shouldBe("('').__proto__", "String.prototype");
29 shouldBe("(0).__proto__", "Number.prototype");
30 shouldBe("([]).__proto__", "Array.prototype");
31 shouldBe("({}).__proto__", "Object.prototype");
32 shouldBe("(new Date).__proto__", "Date.prototype");
33 shouldBe("(new Number).__proto__", "Number.prototype");
34 shouldBe("(new Object).__proto__", "Object.prototype");
35 shouldBe("(new String).__proto__", "String.prototype");
36 shouldBe("Array.prototype.__proto__", "Object.prototype");
    [all...]
prototypes-expected.txt 29 PASS ('').__proto__ is String.prototype
30 PASS (0).__proto__ is Number.prototype
31 PASS ([]).__proto__ is Array.prototype
32 PASS ({}).__proto__ is Object.prototype
33 PASS (new Date).__proto__ is Date.prototype
34 PASS (new Number).__proto__ is Number.prototype
35 PASS (new Object).__proto__ is Object.prototype
36 PASS (new String).__proto__ is String.prototype
37 PASS Array.prototype.__proto__ is Object.prototype
    [all...]
array-proto-func-length-getter-except-expected.txt 24 This test checks that functions on the array prototype correctly handle exceptions from length getters when called on non-array objects.
29 PASS test(Array.prototype.join) is true
30 PASS test(Array.prototype.pop) is true
31 PASS test(Array.prototype.push) is true
32 PASS test(Array.prototype.reverse) is true
33 PASS test(Array.prototype.shift) is true
34 PASS test(Array.prototype.slice) is true
35 PASS test(Array.prototype.sort) is true
36 PASS test(Array.prototype.splice) is true
37 PASS test(Array.prototype.unshift) is tru
    [all...]
array-proto-func-length-getter-except.js 25 "This test checks that functions on the array prototype correctly handle exceptions from length getters when called on non-array objects."
47 shouldBeTrue("test(Array.prototype.join)");
48 shouldBeTrue("test(Array.prototype.pop)");
49 shouldBeTrue("test(Array.prototype.push)");
50 shouldBeTrue("test(Array.prototype.reverse)");
51 shouldBeTrue("test(Array.prototype.shift)");
52 shouldBeTrue("test(Array.prototype.slice)");
53 shouldBeTrue("test(Array.prototype.sort)");
54 shouldBeTrue("test(Array.prototype.splice)");
55 shouldBeTrue("test(Array.prototype.unshift)")
    [all...]
array-proto-func-property-getter-except-expected.txt 24 This test checks that functions on the array prototype correctly handle exceptions from property getters when called on non-array objects.
29 PASS test(Array.prototype.sort) is true
30 PASS test(Array.prototype.every) is true
31 PASS test(Array.prototype.some) is true
32 PASS test(Array.prototype.forEach) is true
33 PASS test(Array.prototype.map) is true
34 PASS test(Array.prototype.filter) is true
35 PASS test(Array.prototype.reduce) is true
36 PASS test(Array.prototype.reduceRight) is true
37 PASS test(Array.prototype.join) is tru
    [all...]
array-proto-func-property-getter-except.js 25 "This test checks that functions on the array prototype correctly handle exceptions from property getters when called on non-array objects."
49 shouldBeTrue("test(Array.prototype.sort)");
50 shouldBeTrue("test(Array.prototype.every)");
51 shouldBeTrue("test(Array.prototype.some)");
52 shouldBeTrue("test(Array.prototype.forEach)");
53 shouldBeTrue("test(Array.prototype.map)");
54 shouldBeTrue("test(Array.prototype.filter)");
55 shouldBeTrue("test(Array.prototype.reduce)");
56 shouldBeTrue("test(Array.prototype.reduceRight)");
59 shouldBeTrue("test(Array.prototype.join)")
    [all...]
  /external/v8/test/mjsunit/harmony/
proxies-set-prototype-of.js 18 var prototype = [1]; variable
19 assertSame(proxy, Object.setPrototypeOf(proxy, prototype));
20 assertSame(prototype, Object.getPrototypeOf(proxy));
21 assertSame(prototype, Object.getPrototypeOf(target));
24 assertSame(pair.proxy, Object.setPrototypeOf(pair.proxy, prototype));
25 assertSame(prototype, Object.getPrototypeOf(pair.proxy));
27 assertThrows('Object.setPrototypeOf(pair.proxy, prototype)', TypeError);
67 var prototype = [2,3]; variable
68 assertSame(proxy2, Object.setPrototypeOf(proxy2, prototype));
69 assertSame(prototype, Object.getPrototypeOf(proxy2))
84 var prototype = [1]; variable
    [all...]
  /external/v8/test/mjsunit/es7/
array-includes-to-object-sloppy.js 6 // https://github.com/tc39/Array.prototype.includes/blob/master/test/number-this.js
9 // Array.prototype.includes should use ToObject on this, so that when called
10 // with a number, it picks up numeric properties from Number.prototype
12 Number.prototype[0] = "a";
13 Number.prototype[1] = "b";
15 Object.defineProperty(Number.prototype, 2, {
22 Number.prototype.length = 3;
23 assertTrue(Array.prototype.includes.call(5, "a"));
24 assertTrue(Array.prototype.includes.call(5, "b"));
25 assertTrue(Array.prototype.includes.call(5, "c"))
    [all...]
array-includes-to-object-strict.js 6 // https://github.com/tc39/Array.prototype.includes/blob/master/test/number-this.js
9 // Array.prototype.includes should use ToObject on this, so that when called
10 // with a number, it picks up numeric properties from Number.prototype (even in
15 Number.prototype[0] = "a";
16 Number.prototype[1] = "b";
18 Object.defineProperty(Number.prototype, 2, {
25 Number.prototype.length = 3;
26 assertTrue(Array.prototype.includes.call(5, "a"));
27 assertTrue(Array.prototype.includes.call(5, "b"));
28 assertTrue(Array.prototype.includes.call(5, "c"))
    [all...]

Completed in 829 milliseconds

1 2 3 4 5 6 7 8 91011>>