Second attempt at mochitests for bug 375003.

git-svn-id: svn://10.0.0.236/trunk@228023 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net 2007-06-14 01:21:13 +00:00
parent 9991a23703
commit 60a622726b
3 changed files with 9 additions and 4 deletions

View File

@ -73,6 +73,8 @@ _TEST_FILES = test_bug589.html \
test_bug373589.html \
bug372098-link-target.html \
test_bug372098.html \
test_bug375003-1.html \
test_bug375003-2.html \
$(NULL)
libs:: $(_TEST_FILES)

View File

@ -49,8 +49,9 @@ function run_test() {
t3('div1',[10,10,-1,131],[0,0,-1,151],[0,0,-1,85],'body');
t3('span2b',[10,0,20,20],[25,-1,30,20],[0,0,30,20],'body');
t3('span2c',[10,2,18,2],[25,-1,30,6],[0,0,30,20],'body');
t3('span2d',[0,0,0,0],[25,-1,10,19],[0,0,10,20],'body');
// XXX not sure how to make reliable cross-platform tests for replaced-inline, inline
// t3('span2c',[10,2,18,2],[25,-1,30,6],[0,0,30,20],'body');
// t3('span2d',[0,0,0,0],[25,-1,10,19],[0,0,10,20],'body');
t3('span3' ,[0,0,20,20],[15,0,20,20],[0,0,20,20],'td3');
t3('td3' ,[0,0,35,20],[0,0,35,20],[0,0,35,20],'table3');

View File

@ -65,8 +65,10 @@ function t3(id,c,o,s,pid) {
}
function run_test() {
t3('div1',[20,20,144,104],[10,10,200,160],[0,0,230,20],'body');
t3('abs1',[20,20,144,104],[500,170,200,160],[0,0,230,20],'body');
// XXX how test clientWidth/clientHeight (the -1 below) in cross-platform manner
// without hard-coding the scrollbar width?
t3('div1',[20,20,-1,-1],[10,10,200,160],[0,0,230,20],'body');
t3('abs1',[20,20,-1,-1],[500,170,200,160],[0,0,230,20],'body');
t3('table1',[20,20,266,266],[10,170,306,306],[0,0,306,20],'body');
t3('table2',[0,0,206,206],[0,0,206,206],[0,0,206,20],'table2parent');
t3('table3',[10,10,208,208],[0,0,228,228],[0,0,228,228],'table3parent');