Commit 3685676f authored by ggaren's avatar ggaren

LayoutTests:

        Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
        document.plugins doesn't exist

        * fast/dom/HTMLDocument/document-plugins-expected.txt: Added.
        * fast/dom/HTMLDocument/document-plugins.html: Added.

WebCore:

        Reviewed by darin.

        - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
        document.plugins doesn't exist

        * khtml/ecma/kjs_html.cpp: Added 'plugins' as synonym for 'embeds'


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8cc96fbd
2005-01-04 Geoffrey Garen <ggaren@apple.com>
2006-01-04 Geoffrey Garen <ggaren@apple.com>
Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
document.plugins doesn't exist
* fast/dom/HTMLDocument/document-plugins-expected.txt: Added.
* fast/dom/HTMLDocument/document-plugins.html: Added.
2006-01-04 Geoffrey Garen <ggaren@apple.com>
Layout test for <rdar://problem/4214080> document.embeds:
embeds[0].Play() undefined at languageguide.org prevents audio playing
......
This test checks for whether document.plugins matches document.embeds.
If the test passes, you will see a pass message below.
PASS
<html>
<head>
<script>
function print(message) {
var paragraph = document.createElement("p");
paragraph.appendChild(document.createTextNode(message));
document.getElementById("console").appendChild(paragraph);
}
function test() {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
var pass = true;
var embeds = document.embeds;
var plugins = document.plugins;
if (embeds[0].id != 'embed0' || embeds[1].id != 'embed1')
pass = false;
if (plugins[0] != embeds[0] || plugins[1] != embeds[1])
pass = false;
print(pass ? "PASS" : "FAIL");
}
</script>
</head>
<body onload="test();">
<p>This test checks for whether document.plugins matches document.embeds.</p>
<p>If the test passes, you will see a pass message below.</p>
<hr>
<div id='console'></div>
<embed id = 'embed0' width=0 height=0>
<embed id = 'embed1' width=0 height=0>
</body>
</html>
2005-12-30 Geoffrey Garen <ggaren@apple.com>
2006-01-04 Geoffrey Garen <ggaren@apple.com>
Reviewed by darin.
- Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
document.plugins doesn't exist
* khtml/ecma/kjs_html.cpp: Added 'plugins' as synonym for 'embeds'
2006-01-04 Geoffrey Garen <ggaren@apple.com>
Reviewed by darin.
......
......@@ -153,6 +153,7 @@ const ClassInfo KJS::HTMLDocument::info =
cookie HTMLDocument::Cookie DontDelete
images HTMLDocument::Images DontDelete|ReadOnly
embeds HTMLDocument::Embeds DontDelete|ReadOnly
plugins HTMLDocument::Embeds DontDelete|ReadOnly
applets HTMLDocument::Applets DontDelete|ReadOnly
links HTMLDocument::Links DontDelete|ReadOnly
forms HTMLDocument::Forms DontDelete|ReadOnly
......
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