HomeSort by relevance Sort by last modified time
    Searched full:prototype (Results 1 - 25 of 2760) 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...]
prototype_proto-expected.txt 29 PASS Object.prototype.__proto__ == Object.prototype is false
30 PASS Function.prototype.__proto__ is Object.prototype
31 PASS Array.prototype.__proto__ is Object.prototype
32 PASS String.prototype.__proto__ is Object.prototype
33 PASS Boolean.prototype.__proto__ is Object.prototype
    [all...]
  /external/v8/test/mjsunit/es6/
typed-array-iterator.js 13 assertTrue(constructor.prototype.hasOwnProperty('entries'));
14 assertTrue(constructor.prototype.hasOwnProperty('values'));
15 assertTrue(constructor.prototype.hasOwnProperty('keys'));
16 assertTrue(constructor.prototype.hasOwnProperty(Symbol.iterator));
18 assertFalse(constructor.prototype.propertyIsEnumerable('entries'));
19 assertFalse(constructor.prototype.propertyIsEnumerable('values'));
20 assertFalse(constructor.prototype.propertyIsEnumerable('keys'));
21 assertFalse(constructor.prototype.propertyIsEnumerable(Symbol.iterator));
23 assertEquals(Array.prototype.entries, constructor.prototype.entries)
    [all...]
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...]
  /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...]
value-wrapper.js 104 // Test with normal setup of prototype.
105 String.prototype.TypeOfThis = TypeOfThis;
106 Boolean.prototype.TypeOfThis = TypeOfThis;
107 Number.prototype.TypeOfThis = TypeOfThis;
108 Boolean.prototype[7] = TypeOfThis;
109 Number.prototype[7] = TypeOfThis;
111 String.prototype.ObjectValueOf = Object.prototype.valueOf;
112 Boolean.prototype.ObjectValueOf = Object.prototype.valueOf
    [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-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/harmony/
super.js 13 Derived.prototype = Object.create(Base.prototype);
17 Base.prototype.f = fBase.toMethod(Base.prototype);
27 Base.prototype.x = 15;
28 Base.prototype.toString = function() { return "this is Base"; };
29 Derived.prototype.toString = function() { return "this is Derived"; };
30 Derived.prototype.x = 27;
31 Derived.prototype.f = fDerived.toMethod(Derived.prototype);
    [all...]
  /external/v8/test/webkit/
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/webkit/fast/js/
toString-number-expected.txt 24 Test the conversion performed by the function Number.prototype.toString.
30 PASS Number.prototype.toString.call(0) is "0"
31 PASS Number.prototype.toString.call(new Number(0)) is "0"
35 PASS Number.prototype.toString.call(0, 2) is "0"
36 PASS Number.prototype.toString.call(new Number(0), 2) is "0"
38 PASS Number.prototype.toString.call(0, 36) is "0"
39 PASS Number.prototype.toString.call(new Number(0), 36) is "0"
41 PASS Number.prototype.toString.call(-1) is "-1"
42 PASS Number.prototype.toString.call(new Number(-1)) is "-1"
46 PASS Number.prototype.toString.call(-1, 2) is "-1
    [all...]
array-prototype-properties-expected.txt 29 PASS Array.prototype.toString.call(undefined) threw exception TypeError: Cannot convert undefined or null to object.
30 PASS Array.prototype.toLocaleString.call(undefined) threw exception TypeError: Cannot convert undefined or null to object.
31 PASS Array.prototype.concat.call(undefined, []) threw exception TypeError: Array.prototype.concat called on null or undefined.
32 PASS Array.prototype.join.call(undefined, []) threw exception TypeError: Array.prototype.join called on null or undefined.
33 PASS Array.prototype.pop.call(undefined) threw exception TypeError: Array.prototype.pop called on null or undefined.
34 PASS Array.prototype.push.call(undefined, {}) threw exception TypeError: Array.prototype.push called on null or undefined
    [all...]
array-functions-non-arrays.js 88 OneItemConstructor.prototype = oneItemPrototype;
94 TwoItemConstructor.prototype = twoItemPrototype;
102 shouldBe("Array.prototype.toString.call({})", '"' + ({}).toString() + '"');
103 shouldBe("Array.prototype.toString.call(new Date)", '"' + Object.prototype.toString.call(new Date) + '"');
104 shouldBe("Array.prototype.toString.call({sort: function() { return 'sort' }})", '"' + Object.prototype.toString.call({}) + '"');
105 shouldBe("Array.prototype.toString.call({join: function() { return 'join' }})", '"join"');
106 shouldBe("Array.prototype.toString.call({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3})", '"a,b,c"')
    [all...]

Completed in 908 milliseconds

1 2 3 4 5 6 7 8 91011>>