[webkit-changes] cvs commit: WebCore/layout-tests/fast/dom/resources
replaceChildHelper.html
Maciej
mjs at opensource.apple.com
Tue Sep 20 21:47:43 PDT 2005
mjs 05/09/20 21:47:43
Modified: layout-tests/fast/dom replaceChild.html
Added: layout-tests/fast/dom replaceChild-expected.txt
layout-tests/fast/dom/resources replaceChildHelper.html
Removed: layout-tests/fast/dom replaceChildHelper.html
Log:
Add results for new replaceChild test.
Revision Changes Path
1.2 +1 -1 WebCore/layout-tests/fast/dom/replaceChild.html
Index: replaceChild.html
===================================================================
RCS file: /cvs/root/WebCore/layout-tests/fast/dom/replaceChild.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- replaceChild.html 20 Sep 2005 23:38:51 -0000 1.1
+++ replaceChild.html 21 Sep 2005 04:47:42 -0000 1.2
@@ -1 +1 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>main window</title>
<style type="text/css" media="screen">
body{
margin:0px;
padding:0px;
background-color:#CCFFCC;
}
iframe#menu_import{
width: 150px;
height:150px;
border:1px solid #000;
}
</style>
<script language="javascript" type="text/javascript">
function loadMenu(m){
var w = document.getElementById("menu_content_area");
w.replaceChild(m, document.getElementById("menu_import"));
}
</script>
</head>
<body>
<div id="menu_content_area"><iframe src="replaceChildHelper.html" id="menu_import" name="menu_import" ></iframe></div>
</body>
</html>
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>main window</title>
<style type="text/css" media="screen">
body{
margin:0px;
padding:0px;
background-color:#CCFFCC;
}
iframe#menu_import{
width: 150px;
height:150px;
border:1px solid #000;
}
</style>
<script language="javascript" type="text/javascript">
function loadMenu(m){
var w = document.getElementById("menu_content_area");
w.replaceChild(m, document.getElementById("menu_import"));
}
</script>
</head>
<body>
<div id="menu_content_area"><iframe src="resources/replaceChildHelper.html" id="menu_import" name="menu_import" ></iframe></div>
</body>
</html>
\ No newline at end of file
1.1 WebCore/layout-tests/fast/dom/replaceChild-expected.txt
Index: replaceChild-expected.txt
===================================================================
layer at (0,0) size 800x600
RenderCanvas at (0,0) size 800x600
layer at (0,0) size 800x152
RenderBlock {HTML} at (0,0) size 800x152
RenderBody {BODY} at (0,0) size 800x152 [bgcolor=#CCFFCC]
RenderBlock {DIV} at (0,0) size 800x152
RenderPartObject {IFRAME} at (0,0) size 152x152 [border: (1px solid #000000)]
layer at (0,0) size 150x150
RenderCanvas at (0,0) size 150x150
layer at (0,0) size 150x52
RenderBlock {HTML} at (0,0) size 150x52
RenderBody {BODY} at (8,8) size 134x36
RenderBlock {DIV} at (0,0) size 134x36
RenderBlock {DIV} at (0,0) size 134x18
RenderText {TEXT} at (0,0) size 33x18
text run at (0,0) width 33: "test 1"
RenderBlock {DIV} at (0,18) size 134x18
RenderText {TEXT} at (0,0) size 33x18
text run at (0,0) width 33: "test 2"
1.1 WebCore/layout-tests/fast/dom/resources/replaceChildHelper.html
Index: replaceChildHelper.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>menu window</title>
<script language="javascript" type="text/javascript">
function doLoad(){
if(window.parent){
var menu = document.getElementById("menu").cloneNode(true);
parent.loadMenu(menu);
}
}
window.onload = doLoad;
</script>
</head>
<div id="menu">
<div>test 1</div>
<div>test 2</div>
</div>
<body>
</body>
</html>
More information about the webkit-changes
mailing list