[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.19-706-ge5415e9

eric at webkit.org eric at webkit.org
Thu Feb 4 21:31:11 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit 28a8af93dce1d21a4cddaf12fc25a5d49e1d2fe4
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jan 28 17:03:50 2010 +0000

    2010-01-28  Anton Muhin  <antonm at google.com>
    
            Reviewed by Alexey Proskuryakov.
    
            Add layout tests to verify assignment to items of NodeList
            https://bugs.webkit.org/show_bug.cgi?id=34213
    
            * fast/dom/NodeList/nodelist-item-assignment-expected.txt: Added.
            * fast/dom/NodeList/nodelist-item-assignment.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54004 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index cb682e2..ae0a3ca 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,13 @@
+2010-01-28  Anton Muhin  <antonm at google.com>
+
+        Reviewed by Alexey Proskuryakov.
+
+        Add layout tests to verify assignment to items of NodeList
+        https://bugs.webkit.org/show_bug.cgi?id=34213
+
+        * fast/dom/NodeList/nodelist-item-assignment-expected.txt: Added.
+        * fast/dom/NodeList/nodelist-item-assignment.html: Added.
+
 2010-01-28  Ben Murdoch  <benm at google.com>
 
         Reviewed by Simon Hausmann.
diff --git a/LayoutTests/fast/dom/NodeList/nodelist-item-assignment-expected.txt b/LayoutTests/fast/dom/NodeList/nodelist-item-assignment-expected.txt
new file mode 100644
index 0000000..814b456
--- /dev/null
+++ b/LayoutTests/fast/dom/NodeList/nodelist-item-assignment-expected.txt
@@ -0,0 +1,23 @@
+This tests that indexed assignments to items of a NodeList do not override original values. See http://code.google.com/p/chromium/issues/detail?id=27967
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS first == null is false
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS nodeList[0] is first
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/dom/NodeList/nodelist-item-assignment.html b/LayoutTests/fast/dom/NodeList/nodelist-item-assignment.html
new file mode 100644
index 0000000..5a5b971
--- /dev/null
+++ b/LayoutTests/fast/dom/NodeList/nodelist-item-assignment.html
@@ -0,0 +1,30 @@
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<ol></ol>
+
+<div id="console"></div>
+
+<script>
+description(
+  'This tests that indexed assignments to items of a NodeList do not override original values. ' +
+  'See http://code.google.com/p/chromium/issues/detail?id=27967');
+
+var nodeList = document.getElementsByTagName('ol');
+var first = nodeList[0];
+shouldBeFalse("first == null");
+
+nodeList[0] = null;
+for (var i = 0; i < 13; i++) {
+  shouldBe("nodeList[0]", "first");
+}
+
+var successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list