Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: test/webkit/class-syntax-prototype-expected.txt

Issue 1109783003: Import JSC class tests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: git rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/webkit/class-syntax-prototype.js ('k') | test/webkit/class-syntax-scoping.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Tests for the descriptors of the properties implicitly defined by ES6 class synt ax
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
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
9 PASS class A {}; A.foo = "foo"; enumeratedProperties(A).includes("foo") is true
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 exc eption TypeError: Cannot redefine property: prototype.
13 PASS class A { static foo() {} }; descriptor(A, "foo").writable is true
14 PASS class A { static foo() {} }; A.foo = 3; A.foo is 3
15 PASS class A { static foo() {} }; descriptor(A, "foo").enumerable is false
16 PASS class A { static foo() {} }; enumeratedProperties(A).includes("foo") is fal se
17 PASS class A { static foo() {} }; descriptor(A, "foo").configurable is true
18 PASS class A { static foo() {} }; Object.defineProperty(A, "foo", {value: "bar"} ); A.foo is "bar"
19 PASS class A { static get foo() {} }; descriptor(A, "foo").writable is undefined
20 PASS class A { static get foo() { return 5; } }; A.foo = 3; A.foo is 5
21 PASS class A { static get foo() {} }; descriptor(A, "foo").enumerable is false
22 PASS class A { static get foo() {} }; enumeratedProperties(A).includes("foo") is false
23 PASS class A { static get foo() {} }; enumeratedProperties(new A).includes("foo" ) is false
24 PASS class A { static get foo() {} }; descriptor(A, "foo").configurable is true
25 PASS class A { static get foo() {} }; Object.defineProperty(A, "foo", {value: "b ar"}); A.foo is "bar"
26 PASS class A { foo() {} }; descriptor(A.prototype, "foo").writable is true
27 PASS class A { foo() {} }; A.prototype.foo = 3; A.prototype.foo is 3
28 PASS class A { foo() {} }; descriptor(A.prototype, "foo").enumerable is false
29 PASS class A { foo() {} }; enumeratedProperties(A.prototype).includes("foo") is false
30 PASS class A { foo() {} }; enumeratedProperties(new A).includes("foo") is false
31 PASS class A { foo() {} }; descriptor(A.prototype, "foo").configurable is true
32 PASS class A { foo() {} }; Object.defineProperty(A.prototype, "foo", {value: "ba r"}); A.prototype.foo is "bar"
33 PASS class A { get foo() {} }; descriptor(A.prototype, "foo").writable is undefi ned
34 PASS class A { get foo() { return 5; } }; A.prototype.foo = 3; A.prototype.foo i s 5
35 PASS class A { get foo() {} }; descriptor(A.prototype, "foo").enumerable is fals e
36 PASS class A { get foo() {} }; enumeratedProperties(A.prototype).includes("foo") is false
37 PASS class A { get foo() {} }; enumeratedProperties(new A).includes("foo") is fa lse
38 PASS class A { get foo() {} }; descriptor(A.prototype, "foo").configurable is tr ue
39 PASS class A { get foo() {} }; Object.defineProperty(A.prototype, "foo", {value: "bar"}); A.prototype.foo is "bar"
40 PASS class A { }; descriptor(A.prototype, "constructor").writable is true
41 PASS class A { }; A.prototype.constructor = 3; A.prototype.constructor is 3
42 PASS class A { }; x = {}; A.prototype.constructor = function () { return x; }; ( new A) instanceof A is true
43 PASS class A { }; descriptor(A.prototype, "constructor").enumerable is false
44 PASS class A { }; enumeratedProperties(A.prototype).includes("constructor") is f alse
45 PASS class A { }; enumeratedProperties(new A).includes("constructor") is false
46 PASS class A { }; descriptor(A.prototype, "constructor").configurable is true
47 PASS class A { }; Object.defineProperty(A.prototype, "constructor", {value: "bar "}); A.prototype.constructor is "bar"
48 PASS successfullyParsed is true
49
50 TEST COMPLETE
OLDNEW
« no previous file with comments | « test/webkit/class-syntax-prototype.js ('k') | test/webkit/class-syntax-scoping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698