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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Test improvements Created 4 years, 1 month 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
OLDNEW
1 Test what happens when you set the window's prototype to various values. 1 Test what happens when you set the window's prototype to various values.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS __proto__ = window; __proto threw exception TypeError: Cyclic __proto__ val ue. 6 PASS __proto__ = window; __proto__ threw exception TypeError: Immutable prototyp e object '#<Window>' cannot have their prototype set.
7 PASS __proto__ = chainPointingBackToWindow; __proto__ threw exception TypeError: Cyclic __proto__ value. 7 PASS __proto__ = chainPointingBackToWindow; __proto__ threw exception TypeError: Immutable prototype object '#<Window>' cannot have their prototype set.
8 PASS __proto__ = 1; __proto__ is originalWindowPrototype 8 PASS __proto__ = 1; __proto__ is originalWindowPrototype
9 PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype 9 PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype
10 PASS __proto__ = anotherObject; __proto__ is anotherObject 10 PASS __proto__ = anotherObject; __proto__ threw exception TypeError: Immutable p rototype object '#<Window>' cannot have their prototype set.
11 PASS anotherObject.__proto__ = window; __proto__ threw exception TypeError: Cycl ic __proto__ value. 11 PASS anotherObject.__proto__ = window; __proto__ is originalWindowPrototype
12 PASS __proto__ = 1; __proto__ is anotherObject 12 PASS __proto__ = 1; __proto__ is originalWindowPrototype
13 PASS __proto__ = 'a string'; __proto__ is anotherObject 13 PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype
14 PASS __proto__ = anotherObject; __proto__ is anotherObject 14 PASS __proto__ = anotherObject; __proto__ threw exception TypeError: Immutable p rototype object '#<Window>' cannot have their prototype set.
15 PASS __proto__ = originalWindowPrototype; __proto__ is originalWindowPrototype 15 PASS __proto__ = originalWindowPrototype; __proto__ is originalWindowPrototype
16 PASS anotherObject.__proto__ = window; anotherObject.__proto__ is window 16 PASS anotherObject.__proto__ = window; anotherObject.__proto__ is window
17 PASS __proto__ = null; window.__proto__ is undefined 17 PASS __proto__ = null; __proto__ threw exception TypeError: Immutable prototype object '#<Window>' cannot have their prototype set.
18 PASS location.__proto__.__proto__ = location threw exception TypeError: Cyclic _ _proto__ value.
18 PASS successfullyParsed is true 19 PASS successfullyParsed is true
19 20
20 TEST COMPLETE 21 TEST COMPLETE
21 22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698