Commit 27a0cb17 authored by eseidel's avatar eseidel

Bug #: 5710

Submitted by: mitz
Reviewed by: ggaren
        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5710
        item(i) should return the same result as [i]

        * fast/js/array-special-accessors-should-ignore-items-expected.txt: Added.
        * fast/js/array-special-accessors-should-ignore-items.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ca2e8144
2005-11-26 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by ggaren.
Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5710
item(i) should return the same result as [i]
* fast/js/array-special-accessors-should-ignore-items-expected.txt: Added.
* fast/js/array-special-accessors-should-ignore-items.html: Added.
2005-11-26 Alexey Proskuryakov <ap@nypop.com>
Reviewed by mjs.
......
<html>
<head>
<title>item(i) vs. [i]</title>
</head>
<body>
<select id="select" style="display:none">
<option value="1">1</option>
</select>
<script type="text/javascript">
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
var sel = document.getElementById("select");
var bracketZero = sel[0];
var itemZero = sel.item(0);
if ( itemZero == bracketZero )
document.write("PASS");
else
document.write("FAIL: item(0) is "+itemZero);
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment