Opened 14 years ago
Closed 14 years ago
#3198 closed defect (fixed)
0.9: Failures in dojo.html on WebKit.
Reported by: | Jared Jurkiewicz | Owned by: | sjmiles |
---|---|---|---|
Priority: | high | Milestone: | 0.9beta |
Component: | HTML | Version: | 0.9 |
Keywords: | Cc: | alex | |
Blocked By: | Blocking: |
Description
PASSED test: ../../dojo/tests/_base/html.html::t::t.is(100, dojo.contentBox('sq100border10margin10pad10').w);
PASSED test: ../../dojo/tests/_base/html.html::t::t.is(100, dojo.contentBox('sq100border10margin10pad10').h);
_AssertFailure: doh._AssertFailure: assertEqual() failed: expected |100| but got |547|: assertEqual() failed: expected |100| but got |547|
doh._AssertFailure: assertEqual() failed: expected |100| but got |547|
ERROR IN:
function anonymous(t)
t.is(100, dojo.marginBox("sq100nopos").w);
FAILED test: ../../dojo/tests/_base/html.html::t::t.is(100, dojo.marginBox('sq100nopos').w); PASSED test: ../../dojo/tests/_base/html.html::t::t.is(100, dojo.marginBox('sq100nopos').h); PASSED test: ../../dojo/tests/_base/html.html::t::coordsBasic PASSED test: ../../dojo/tests/_base/html.html::t::coordsMargin
_AssertFailure: doh._AssertFailure: assertEqual() failed: expected |100| but got |547|: assertEqual() failed: expected |100| but got |547|
doh._AssertFailure: assertEqual() failed: expected |100| but got |547|
ERROR IN:
function sq100nopos(t)
{
var pos = dojo.coords("sq100nopos", false); t.is(0, pos.x); t.t(pos.y > 0); t.is(100, pos.w); t.is(100, pos.h);
}
FAILED test: ../../dojo/tests/_base/html.html::t::sq100nopos
Change History (5)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Cc: | alex added |
---|---|
Owner: | changed from Bryan Forbes to sjmiles |
comment:3 Changed 14 years ago by
On WebKit? the margin-box for the non-positioned nodes spans the width of the document. The assertion the test is making is simply not true on WebKit?. The box functions work consistently however.
I'm not sure how to resolve it. Probably simplest is to remove those exact assertions (it turns out not to be true in general that the width of the marginBox will be 100px).
comment:4 Changed 14 years ago by
comment:5 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
There are also failures in quirks mode:
t.is(100, dojo.marginBox("sq100nopos").w);
{
}