зеркало из https://github.com/mozilla/pjs.git
Second attempt at mochitests for bug 375003.
This commit is contained in:
Родитель
ab146d7c9e
Коммит
1db7455f04
|
@ -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)
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Загрузка…
Ссылка в новой задаче