Title: [98998] trunk/LayoutTests
- Revision
- 98998
- Author
- [email protected]
- Date
- 2011-11-01 14:32:51 -0700 (Tue, 01 Nov 2011)
Log Message
Expand prototype setting test to test Object.defineProperty
https://bugs.webkit.org/show_bug.cgi?id=71322
Reviewed by Anders Carlsson.
* fast/js/script-tests/prototypes.js:
Also test setting __proto__ using Object.defineProperty.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (98997 => 98998)
--- trunk/LayoutTests/ChangeLog 2011-11-01 20:55:57 UTC (rev 98997)
+++ trunk/LayoutTests/ChangeLog 2011-11-01 21:32:51 UTC (rev 98998)
@@ -1,3 +1,13 @@
+2011-11-01 Sam Weinig <[email protected]>
+
+ Expand prototype setting test to test Object.defineProperty
+ https://bugs.webkit.org/show_bug.cgi?id=71322
+
+ Reviewed by Anders Carlsson.
+
+ * fast/js/script-tests/prototypes.js:
+ Also test setting __proto__ using Object.defineProperty.
+
2011-11-01 Dominic Cooney <[email protected]>
display: table-cell and box-sizing: border-box calculates content-box height
Modified: trunk/LayoutTests/fast/js/prototypes-expected.txt (98997 => 98998)
--- trunk/LayoutTests/fast/js/prototypes-expected.txt 2011-11-01 20:55:57 UTC (rev 98997)
+++ trunk/LayoutTests/fast/js/prototypes-expected.txt 2011-11-01 21:32:51 UTC (rev 98998)
@@ -55,6 +55,8 @@
PASS Object.__proto__.isPrototypeOf(String) is true
PASS var wasSet = false; var o = { }; o.__defineGetter__("__proto__", function() { wasSet = true }); o.__proto__; wasSet; is false
PASS var wasSet = false; var o = { }; o.__defineSetter__("__proto__", function() { wasSet = true }); o.__proto__ = {}; wasSet; is false
+PASS var wasSet = false; var o = { }; Object.defineProperty(o, "__proto__", { "get": function() { wasSet = true } }); o.__proto__; wasSet; is false
+PASS var wasSet = false; var o = { }; Object.defineProperty(o, "__proto__", { "__proto__": function(x) { wasSet = true } }); o.__proto__ = {}; wasSet; is false
PASS successfullyParsed is true
TEST COMPLETE
Modified: trunk/LayoutTests/fast/js/script-tests/prototypes.js (98997 => 98998)
--- trunk/LayoutTests/fast/js/script-tests/prototypes.js 2011-11-01 20:55:57 UTC (rev 98997)
+++ trunk/LayoutTests/fast/js/script-tests/prototypes.js 2011-11-01 21:32:51 UTC (rev 98998)
@@ -57,3 +57,5 @@
shouldBeFalse("var wasSet = false; var o = { }; o.__defineGetter__(\"__proto__\", function() { wasSet = true }); o.__proto__; wasSet;");
shouldBeFalse("var wasSet = false; var o = { }; o.__defineSetter__(\"__proto__\", function() { wasSet = true }); o.__proto__ = {}; wasSet;");
+shouldBeFalse("var wasSet = false; var o = { }; Object.defineProperty(o, \"__proto__\", { \"get\": function() { wasSet = true } }); o.__proto__; wasSet;");
+shouldBeFalse("var wasSet = false; var o = { }; Object.defineProperty(o, \"__proto__\", { \"__proto__\": function(x) { wasSet = true } }); o.__proto__ = {}; wasSet;");
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes