[webkit-changes] cvs commit: WebCore/layout-tests/fast/js
object-prototype-constructor-expected.txt
object-prototype-constructor.html
Eric
eseidel at opensource.apple.com
Tue Sep 27 16:36:09 PDT 2005
eseidel 05/09/27 16:36:08
Modified: . ChangeLog
Added: layout-tests/fast/js
object-prototype-constructor-expected.txt
object-prototype-constructor.html
Log:
Bug #: 3537
Submitted by: eseidel
Reviewed by: mjs
Test cases for JSC fix:
http://bugzilla.opendarwin.org/show_bug.cgi?id=3537
Test cases added:
* layout-tests/fast/js/object-prototype-constructor-expected.txt: Added.
* layout-tests/fast/js/object-prototype-constructor.html: Added.
Revision Changes Path
1.168 +11 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -r1.167 -r1.168
--- ChangeLog 27 Sep 2005 22:36:55 -0000 1.167
+++ ChangeLog 27 Sep 2005 23:36:06 -0000 1.168
@@ -1,3 +1,14 @@
+2005-09-27 Eric Seidel <eseidel at apple.com>
+
+ Reviewed by mjs.
+
+ Test cases for JSC fix:
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=3537
+
+ Test cases added:
+ * layout-tests/fast/js/object-prototype-constructor-expected.txt: Added.
+ * layout-tests/fast/js/object-prototype-constructor.html: Added.
+
2005-09-26 Maciej Stachowiak <mjs at apple.com>
Reviewed by John.
1.1 WebCore/layout-tests/fast/js/object-prototype-constructor-expected.txt
Index: object-prototype-constructor-expected.txt
===================================================================
This is a test case for http://bugzilla.opendarwin.org/show_bug.cgi?id=3537. Below you should see 3 tests, each of which should evaluate true.
f.constructor == Foo.Bar : true
f.constructor: function () { }
f2.constructor == Foo2.Bar : true
f2.constructor: function F() { }
f3.constructor == Foo3.Bar : true
f3.constructor: function () { ; }
1.1 WebCore/layout-tests/fast/js/object-prototype-constructor.html
Index: object-prototype-constructor.html
===================================================================
<html>
<head>
<title>Testcase for bug 3537</title>
</head>
<body>
This is a test case for http://bugzilla.opendarwin.org/show_bug.cgi?id=3537. Below you should see 3 tests, each of which should evaluate true.
<br><br>
<script type="text/javascript">
if (window.layoutTestController)
layoutTestController.dumpAsText();
var Foo = { Bar: function () {}};
var f = new Foo.Bar();
document.write("f.constructor == Foo.Bar : " + (f.constructor == Foo.Bar) + "<br>");
document.write("f.constructor: " + f.constructor + "<br>");
document.write("<br>");
function F() {};
var Foo2 = { Bar: F};
var f2 = new Foo2.Bar();
document.write("f2.constructor == Foo2.Bar : " + (f2.constructor == Foo2.Bar) + "<br>");
document.write("f2.constructor: " + f2.constructor + "<br>");
document.write("<br>");
var Foo3 = { Bar: new Function("")};
var f3 = new Foo3.Bar();
document.write("f3.constructor == Foo3.Bar : " + (f3.constructor == Foo3.Bar) + "<br>");
document.write("f3.constructor: " + f3.constructor + "<br>");
</script>
</body>
</html>
More information about the webkit-changes
mailing list