Opened 12 years ago

Closed 12 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 12 years ago by Jared Jurkiewicz

There are also failures in quirks mode:

PASSED test: ../../dojo/tests/_base/html_quirks.html::t::t.is(100, dojo.contentBox('sq100margin10').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_quirks.html::t::t.is(100, dojo.marginBox('sq100nopos').w); PASSED test: ../../dojo/tests/_base/html_quirks.html::t::t.is(100, dojo.marginBox('sq100nopos').h); PASSED test: ../../dojo/tests/_base/html_quirks.html::t::coordsBasic PASSED test: ../../dojo/tests/_base/html_quirks.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_quirks.html::t::sq100nopos PASSED test: ../../dojo/tests/_base/html_quirks.html::t::t.is(140, dojo.marginBox('sq100margin10pad10').w); PASSED test: ../../dojo/tests/_base/html_quirks.html::t::t.is(140, dojo.marginBox('sq100margin10pad10').h); PASSED test: ../../dojo/tests/_base/html_quirks.html::t::t.is(12s

comment:2 Changed 12 years ago by Adam Peller

Cc: alex added
Owner: changed from Bryan Forbes to sjmiles

comment:3 Changed 12 years ago by sjmiles

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 12 years ago by sjmiles

(In [8944]) Non-ideally, remove assertions that are not be on WebKit?, allow tests to pass. Refs #3198.

comment:5 Changed 12 years ago by sjmiles

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.