Title: [188885] trunk/LayoutTests
Revision
188885
Author
[email protected]
Date
2015-08-24 14:44:32 -0700 (Mon, 24 Aug 2015)

Log Message

NodeList should not have a named getter
https://bugs.webkit.org/show_bug.cgi?id=148117

Reviewed by Geoffrey Garen.

Add a layout test to check that NodeList no longer has a named property
getter after r188829.

* fast/dom/NodeList/no-named-getter-expected.txt: Added.
* fast/dom/NodeList/no-named-getter.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (188884 => 188885)


--- trunk/LayoutTests/ChangeLog	2015-08-24 21:43:13 UTC (rev 188884)
+++ trunk/LayoutTests/ChangeLog	2015-08-24 21:44:32 UTC (rev 188885)
@@ -1,3 +1,16 @@
+2015-08-24  Chris Dumez  <[email protected]>
+
+        NodeList should not have a named getter
+        https://bugs.webkit.org/show_bug.cgi?id=148117
+
+        Reviewed by Geoffrey Garen.
+
+        Add a layout test to check that NodeList no longer has a named property
+        getter after r188829.
+
+        * fast/dom/NodeList/no-named-getter-expected.txt: Added.
+        * fast/dom/NodeList/no-named-getter.html: Added.
+
 2015-08-24  Yusuke Suzuki  <[email protected]>
 
         Create ById IC for ByVal operation only when the specific Id comes more than once

Added: trunk/LayoutTests/fast/dom/NodeList/no-named-getter-expected.txt (0 => 188885)


--- trunk/LayoutTests/fast/dom/NodeList/no-named-getter-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/NodeList/no-named-getter-expected.txt	2015-08-24 21:44:32 UTC (rev 188885)
@@ -0,0 +1,14 @@
+Tests that NodeList does not have a named property getter.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS nodeList.__proto__ is NodeList.prototype
+PASS nodeList['testId'] is undefined.
+PASS nodeList.testId is undefined.
+PASS nodeList['testName'] is undefined.
+PASS nodeList.testName is undefined.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/fast/dom/NodeList/no-named-getter.html (0 => 188885)


--- trunk/LayoutTests/fast/dom/NodeList/no-named-getter.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/NodeList/no-named-getter.html	2015-08-24 21:44:32 UTC (rev 188885)
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<body>
+<div id="testId"></div>
+<div name="testName"></div>
+<script src=""
+<script>
+description("Tests that NodeList does not have a named property getter.");
+
+var nodeList = document.body.childNodes;
+shouldBe("nodeList.__proto__", "NodeList.prototype");
+shouldBeUndefined("nodeList['testId']");
+shouldBeUndefined("nodeList.testId");
+shouldBeUndefined("nodeList['testName']");
+shouldBeUndefined("nodeList.testName");
+</script>
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to